<?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 module pool data buffer refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-data-buffer-refresh/m-p/5259398#M1214850</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;I am facing a strange issue in my module pool program for a infotype&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created module pool with different screens.&lt;/P&gt;&lt;P&gt;screen  contains 2 tabs and 2 subscreens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in one subscreen, if i go into edit mode and change the values in screen, If i save (usnig standard SAVE button) it is not holding the new value.  it is refreshing picking the value from old value only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2009 13:58:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-09T13:58:00Z</dc:date>
    <item>
      <title>module pool data buffer refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-data-buffer-refresh/m-p/5259398#M1214850</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;I am facing a strange issue in my module pool program for a infotype&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created module pool with different screens.&lt;/P&gt;&lt;P&gt;screen  contains 2 tabs and 2 subscreens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in one subscreen, if i go into edit mode and change the values in screen, If i save (usnig standard SAVE button) it is not holding the new value.  it is refreshing picking the value from old value only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 13:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-data-buffer-refresh/m-p/5259398#M1214850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T13:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: module pool data buffer refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-data-buffer-refresh/m-p/5259399#M1214851</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;What you need to do is to modify the contents of the table control back into the internal table whenever any user action is performed.&lt;/P&gt;&lt;P&gt;So in PAI of the screen on which you have a table control write code to modify the internal table from the table control.&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 Logic:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
*  MODULE status_8003.
 
  LOOP WITH CONTROL po_tab. "po_tab is table control on screen 8003
    MODULE read_data.
  ENDLOOP.
 
PROCESS AFTER INPUT.
*  MODULE user_command_8003.
 
  LOOP WITH CONTROL po_tab.
    MODULE modify_data.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&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_tab-current_line. "po_tab is table control name
 
  data : line_count type i.
 
  describe it_zekpo
  lines line_count.
 
  po_tab-lines = line_count + 10.
  "to increase the number of lines in table control dynamically
 
ENDMODULE.                 " READ_DATA  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In PAI,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  MODIFY_DATA  INPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE MODIFY_DATA INPUT.
  MODIFY IT_ZEKPO FROM WA_ZEKPO INDEX po_tab-currentline.
  "this will modify the contents of existing line
ENDMODULE.                 " MODIFY_DATA  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now whenever you change contents in table control and perform any user action, PAI will be triggered and data in internal table will be modified. Now when PBO is executed then it will read the data again from internal table (modified in this case) into table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 03:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-data-buffer-refresh/m-p/5259399#M1214851</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-10T03:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: module pool data buffer refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-data-buffer-refresh/m-p/5259400#M1214852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 05:51:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-data-buffer-refresh/m-p/5259400#M1214852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T05:51:42Z</dc:date>
    </item>
  </channel>
</rss>

