<?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: Table in Module Pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425834#M541878</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;&amp;lt;b&amp;gt;Case 1:&amp;lt;/b&amp;gt; Internal table is not updated&lt;/P&gt;&lt;P&gt;Again as I have given in my previous reply, you need to update the internal table with new values in PAI cause PAI gets fired when you press enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Case 2:&amp;lt;/b&amp;gt; Internal table is getting refreshed&lt;/P&gt;&lt;P&gt;If the initial data i.e data which was showed when the table was displayed for the first time, is getting removed on pressing enter, then you need to change the code in the module that you have written to update the table in PAI. There is some code in PAI which is refreshing the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is neither of above two cases, then please explain it in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if the answer is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2007 21:05:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-03T21:05:21Z</dc:date>
    <item>
      <title>Table in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425830#M541874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had created the table control in module pool,.  My requirement is I will be entering the values in the table and the moment i give executed,  the values will get updated in the database table.  When i enter the values and give enter, the values is getting disappeared.  Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 18:39:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425830#M541874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T18:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425831#M541875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this link -&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1910734"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 18:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425831#M541875</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-07-03T18:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Table in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425832#M541876</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;Every table is associated with an internal table in the program. When you go for execution, PAI is called and once PAI is over, again PBO is called. Now, you have to update the internal table in PAI with new values entered on the screen so that those values will be shown when your table is displayed again after going thorugh PAI and PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in your case, you are not updating your internal table in PAI, so new values entered on the screen are not inserted into your internal table. Hence, your values don't appear again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve this, use following code in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT internal_table.
  MODULE modify_internal_table.
ENDLOOP.

MODULE modify_internal_table.
  MODIFY internal_table INDEX current_loop_index.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Reward points if the answer is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 19:10:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425832#M541876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T19:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425833#M541877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick response.  But my requirements is when enter the values in the table via module pool program and give enter, the value disappears.  Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shan kar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 20:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425833#M541877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T20:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425834#M541878</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;&amp;lt;b&amp;gt;Case 1:&amp;lt;/b&amp;gt; Internal table is not updated&lt;/P&gt;&lt;P&gt;Again as I have given in my previous reply, you need to update the internal table with new values in PAI cause PAI gets fired when you press enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Case 2:&amp;lt;/b&amp;gt; Internal table is getting refreshed&lt;/P&gt;&lt;P&gt;If the initial data i.e data which was showed when the table was displayed for the first time, is getting removed on pressing enter, then you need to change the code in the module that you have written to update the table in PAI. There is some code in PAI which is refreshing the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is neither of above two cases, then please explain it in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if the answer is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2007 21:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425834#M541878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-03T21:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Table in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425835#M541879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the screen attribute, and select the radio button 'HOLD DATA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is set and still have the problem, when pressing enter, in PAI module, write the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 03:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425835#M541879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T03:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Table in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425836#M541880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How you created the table control, manually or  table control with wizard? always use the second option, which will generate the code automatically, keep the necessary code and delete the rest. Hope this will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 03:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425836#M541880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T03:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Table in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425837#M541881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is not resolved.  Please help me in providing examples of similar requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your kind help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 23:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425837#M541881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T23:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425838#M541882</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;Can you paste your code here ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 23:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425838#M541882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T23:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Table in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425839#M541883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to make sure you are pulling the values for the fields in the PBO module of the current screen. it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module PAI input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  when 'ENTER'.&lt;/P&gt;&lt;P&gt;    clear sy-ucomm.&lt;/P&gt;&lt;P&gt;    set screen 'Current screen'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 23:15:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425839#M541883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T23:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table in Module Pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425840#M541884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE STATUS_1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP WITH CONTROL CREATE_TABLE_CONTROL.&lt;/P&gt;&lt;P&gt;    MODULE FILL_CR_TABLECONTROL.&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;&lt;/P&gt;&lt;P&gt;  LOOP WITH CONTROL CREATE_TABLE_CONTROL.&lt;/P&gt;&lt;P&gt;    CHAIN.&lt;/P&gt;&lt;P&gt;      FIELD : ZVMI_BASE_BONUS-SHIPTO,&lt;/P&gt;&lt;P&gt;              ZVMI_BASE_BONUS-BASEUPC,&lt;/P&gt;&lt;P&gt;              ZVMI_BASE_BONUS-BASEACT,&lt;/P&gt;&lt;P&gt;              ZVMI_BASE_BONUS-BONUSUPC,&lt;/P&gt;&lt;P&gt;              ZVMI_BASE_BONUS-BONUSACT.&lt;/P&gt;&lt;P&gt;    ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODULE READ_CR_TABLECONTROL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE USER_COMMAND_1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************&lt;/P&gt;&lt;P&gt;MODULE FILL_CR_TABLECONTROL OUTPUT.&lt;/P&gt;&lt;P&gt;  READ TABLE  ITAB_BASE_BONUS INTO ZVMI_BASE_BONUS INDEX CREATE_TABLE_CONTROL-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " FILL_CR_TABLECONTROL  OUTPUT&lt;/P&gt;&lt;P&gt;***********************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE FILL_CR_TABLECONTROL OUTPUT.&lt;/P&gt;&lt;P&gt;  READ TABLE  ITAB_BASE_BONUS INTO ZVMI_BASE_BONUS INDEX CREATE_TABLE_CONTROL-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " FILL_CR_TABLECONTROL  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wud appreciate if you could help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 23:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-in-module-pool/m-p/2425840#M541884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T23:29:22Z</dc:date>
    </item>
  </channel>
</rss>

