<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193215#M1201781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Servesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the details in the debugging mode...why it is deleting.&lt;/P&gt;&lt;P&gt;may be you are clering out that data holding the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more info look into the documents of the [table control|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5387701"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it is use ful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Feb 2009 14:52:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-13T14:52:16Z</dc:date>
    <item>
      <title>module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193211#M1201777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a table control when i insert the value on table control and when i press the enter button data of the table control are not holding and table contro is get clear give me solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 14:41:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193211#M1201777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T14:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193212#M1201778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just save the transaction and go back. You will see that record:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 14:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193212#M1201778</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2009-02-13T14:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193213#M1201779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check these sample programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_1&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_2&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABCONT_LOOP&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABCONT_LOOP_AT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 14:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193213#M1201779</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-02-13T14:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193214#M1201780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are doing like that you check those records are available in the internal table of the table control.&lt;/P&gt;&lt;P&gt;otherwise if they are not available there u cant find them in the table control once u press any button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to insert those records in the internal table ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Parvathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 14:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193214#M1201780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T14:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193215#M1201781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Servesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the details in the debugging mode...why it is deleting.&lt;/P&gt;&lt;P&gt;may be you are clering out that data holding the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more info look into the documents of the [table control|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5387701"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it is use ful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 14:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193215#M1201781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T14:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193216#M1201782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error is because whatever you are entering into table control is not getting saved.&lt;/P&gt;&lt;P&gt;Follow the below style code to preserve your data of table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE STATUS_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_final into wa_final with CONTROL CTRL.&lt;/P&gt;&lt;P&gt;module move.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;module clear_data.&lt;/P&gt;&lt;P&gt;loop at it_final.&lt;/P&gt;&lt;P&gt;module append.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the flow logic of the screen containing hte table control. It_final is the internal table holding the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Process: In PAI,&lt;/STRONG&gt; module clear_data is just clearing the internal table it_final.&lt;/P&gt;&lt;P&gt;Module append will insert your table control data into internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module APPEND input.&lt;/P&gt;&lt;P&gt;if sflight is not INITIAL.&lt;/P&gt;&lt;P&gt;append sflight to it_final.&lt;/P&gt;&lt;P&gt;clear sflight .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here sflight is the screen work area used to create table control columns. this code checks if table control row has any record, intert in into a internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Process In PBO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module MOVE output.&lt;/P&gt;&lt;P&gt;  if wa_final is not initial.&lt;/P&gt;&lt;P&gt; sflight = wa_final.&lt;/P&gt;&lt;P&gt; clear wa_final.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;endmodule. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this module , I am looping on to the internal table having table control records and passing the data to screen work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the above steps and ur error will be resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vishal Kapoor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 15:44:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193216#M1201782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T15:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193217#M1201783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this code, its working:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it_zekpo is my internal table w/o header line,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zekpo is work area.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Name of input/output fields on screen are:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zekpo-field1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wa_zekpo-field2, and so on...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At screen flow-logic&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
*  MODULE status_8003.
 
  LOOP WITH CONTROL po_tb.
    MODULE read_data.
  ENDLOOP.
 
PROCESS AFTER INPUT.
*  MODULE user_command_8003.
 
  LOOP WITH CONTROL po_tb.
    MODULE insert_data.
  ENDLOOP.
 
  MODULE save_data.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  READ_DATA  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE read_data OUTPUT.
  READ TABLE it_zekpo INTO wa_zekpo INDEX po_tb-current_line. "po_tab is table control name
ENDMODULE.                 " READ_DATA  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  INSERT_DATA  INPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE INSERT_DATA INPUT.
  APPEND WA_ZEKPO TO IT_ZEKPO.
ENDMODULE.                 " INSERT_DATA  INPUT
 
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  SAVE_DATA  INPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE SAVE_DATA INPUT.
  DATA : A LIKE SY-DBCNT.
  OK_CODE = SY-UCOMM.
  CASE OK_CODE.
    WHEN 'SAVE'.
      MODIFY ZEKPO FROM TABLE IT_ZEKPO. "update db table from internal table
      A = SY-DBCNT.
      IF SY-SUBRC = 0.
        MESSAGE S008 WITH A. "success message with no of records modified
      ENDIF.
  ENDCASE.
ENDMODULE.                 " SAVE_DATA  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this code when ant use actin is performed then the data is appended into internal table.&lt;/P&gt;&lt;P&gt;And when you click SAVE button with function code &lt;STRONG&gt;SAVE&lt;/STRONG&gt;, then all the records will be saved into the ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Feb 2009 10:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool/m-p/5193217#M1201783</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-02-14T10:57:36Z</dc:date>
    </item>
  </channel>
</rss>

