<?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: Internal table not getting refreshed in module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462083#M14520</link>
    <description>&lt;P&gt;Just a correction about what you say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;First time when I enter data in table control , there is no issue 
as it triggers the 9001 PAI first and control goes to 9000.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;No, SAP triggers the PAI of the main screen (9000), then it goes to the PAI of the subscreens when it goes through CALL SUBSCREEN in PAI of the main screen.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;in case of erroneous data [...] in table control of 9001 [...] control 
directly goes to 9000 PAI &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;No. After an error or warning message has been triggered (MESSAGE ... TYPE 'E' or 'W'), the screen is displayed, without going through the PBO, and the next user action makes the dynpro flow logic start from the place where the message was triggered (except if the function is of type "Exit", which goes directly to the MODULE ... AT EXIT-COMMAND).&lt;/P&gt;&lt;P&gt;If the behavior is different, then either you didn't trigger the message with MESSAGE ... TYPE 'E' (which is completely different from DISPLAY LIKE 'E'), or your function code is of type "Exit", or many other possibilities, it's impossible to list everything.&lt;/P&gt;&lt;P&gt;Please do a /H after the error message, press B1 and tell us where it goes.&lt;/P&gt;&lt;P&gt;PS: for information, a function code may be of type "Exit" if it has code "E", as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/35926-e7hah.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2017 09:22:07 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2017-05-25T09:22:07Z</dc:date>
    <item>
      <title>Internal table not getting refreshed in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462075#M14512</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;                         Before posting here, I have searched many SCN posts but of  no help.&lt;/P&gt;&lt;P&gt;I have a main screen say 9000 which has a button B1. I have a subscreen which holds a table control say T1.&lt;/P&gt;&lt;P&gt;                                 Now the problem is after entering data in T1 and click on B1, there happens a validation and it throws a message of type E. I have already placed the fields of T1 within chain-endchain and so no problem in feeding new data even after error in table control T1.&lt;/P&gt;&lt;P&gt;                  Now when I change the data in T1 and again click on B1, changes are not reflecting in its internal table say IT_TAB. &lt;/P&gt;&lt;P&gt;                  Please note that T1 is in a subscreen, B1 is in main screen. When I click on B1 after changing data in T1, PAI of main screen 9000 is called. I have tried using 'REFRESH CONTROL 'T1' FROM SCREEN 9001 in the PAI of 9000. 9001 say it refers to the subscreen of T1.&lt;/P&gt;&lt;P&gt;                           Now how do I get the changed values of T1 from screen 9001 to my internal table IT_TAB. &lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 13:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462075#M14512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-04-21T13:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table not getting refreshed in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462076#M14513</link>
      <description>&lt;P&gt;The code to read the table control and update Abap memory must be in the subscreen 9001 PAI logic (LOOP WITH CONTROL), so triggered by some CALL SUBSCREEN &amp;lt;subarea&amp;gt; in the PAI of screen 9000.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 07:07:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462076#M14513</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-04-24T07:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table not getting refreshed in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462077#M14514</link>
      <description>&lt;P&gt;Hi Giuseppi,&lt;/P&gt;&lt;P&gt;                    Thanks for your time. I understand your point. But it doesnt help on this issue. &lt;/P&gt;&lt;P&gt;                    9000 is my main screen, 9001 is my subscreen which holds a table control. Now when I just edit data in the&lt;/P&gt;&lt;P&gt;                    table control and click B1, it doesnt goto PAI of 9001 and goes to PAI of 9000 which we can understand as &lt;/P&gt;&lt;P&gt;                    we dont do any other action on 9001 to trigger its PAI. &lt;/P&gt;&lt;P&gt;                    In my case, there exists a modify statement based on table control in 9001 in the PAI of 9001 but the control &lt;/P&gt;&lt;P&gt;                    skips it and goes to directly to PAI of 9000.&lt;/P&gt;&lt;P&gt;                    I have tried using FM DYNP_VALUES_GET in the PAI of 9000 by passing sy-dynnr as 9001 but still the                             changed value doesnt get updated.&lt;/P&gt;&lt;P&gt;                    &lt;/P&gt;&lt;P&gt;                     Is there any other alternative to tackle this issue?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravindh.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 13:56:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462077#M14514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-24T13:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table not getting refreshed in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462078#M14515</link>
      <description>&lt;P&gt;When a subscreen is included in a main dynpro, the main dynpro PAI logic MUST look like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" exit without check (cancel, exit)
MODULE exit_command AT EXIT-COMMAND.
" every statement that transfer data between dynpro and program
" FIELD, LOOP AT TABLE CONTROL, SUBSCREEN, etc. with check modules
CALL SUBSCREEN subarea.
" only now are you allowed to non-exit function codes...
MODULE user_command.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 May 2017 14:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462078#M14515</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-05-24T14:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table not getting refreshed in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462079#M14516</link>
      <description>&lt;P&gt;Hi Giuseppi,&lt;/P&gt;&lt;P&gt;                     My code for the main screen 9000 PAI is the same as you mentioned:&lt;/P&gt;&lt;P&gt;MODULE EXIT AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;FIELD A1.&lt;/P&gt;&lt;P&gt;FIELD A2.&lt;/P&gt;&lt;P&gt;MODULE ABC ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;CALL SUBSCREEN:&lt;/P&gt;&lt;P&gt;9001_SCA,&lt;/P&gt;&lt;P&gt;SUBAREA.&lt;/P&gt;&lt;P&gt;MODULE ACTIVE_TAB_GET&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND.&lt;/P&gt;&lt;P&gt;                      How do I get the changed value from subscreen 9001 when pressing B1 triggers PAI of 9000??&lt;/P&gt;&lt;P&gt;Sometimes pressing ENTER will trigger PAI of 9001 and then come to main screen 9000. But Users doesnt need it in business.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravindh.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 17:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462079#M14516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-24T17:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table not getting refreshed in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462080#M14517</link>
      <description>&lt;P&gt;When there's a main screen with subscreens, and the user presses any button/function key, then the PAI of the main screen is called, and then the PAI of the subscreens (at the place of CALL SUBSCREEN in the PAI).&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Now when I just edit data in the table control and click B1, it doesnt goto
PAI of 9001 and goes to PAI of 9000 which we can understand as we dont do 
any other action on 9001 to trigger its PAI.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I don't agree about what you said. In a normal flow, it always goes to the PAI of subscreens except if you change the normal flow (LEAVE SCREEN, etc.)&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 18:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462080#M14517</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-05-24T18:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table not getting refreshed in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462081#M14518</link>
      <description>&lt;P&gt;Is your B1 function code of type "Exit" or not? &lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 18:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462081#M14518</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-05-24T18:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table not getting refreshed in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462082#M14519</link>
      <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;                 Thanks for your time. B1 is a button in my main screen 9000 and table control is in subscreen 9001.&lt;/P&gt;&lt;P&gt;                  First time when I enter data in table control , there is no issue as it triggers the 9001 PAI first and control goes to 9000.&lt;/P&gt;&lt;P&gt;                  But in case of erroneous data entered in table control, when I try to change the data in table control of 9001 and click B1 again, control directly goes to 9000 PAI and changed values are not being passed to my program and thats the issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravindh.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 06:21:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462082#M14519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-25T06:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table not getting refreshed in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462083#M14520</link>
      <description>&lt;P&gt;Just a correction about what you say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;First time when I enter data in table control , there is no issue 
as it triggers the 9001 PAI first and control goes to 9000.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;No, SAP triggers the PAI of the main screen (9000), then it goes to the PAI of the subscreens when it goes through CALL SUBSCREEN in PAI of the main screen.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;in case of erroneous data [...] in table control of 9001 [...] control 
directly goes to 9000 PAI &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;No. After an error or warning message has been triggered (MESSAGE ... TYPE 'E' or 'W'), the screen is displayed, without going through the PBO, and the next user action makes the dynpro flow logic start from the place where the message was triggered (except if the function is of type "Exit", which goes directly to the MODULE ... AT EXIT-COMMAND).&lt;/P&gt;&lt;P&gt;If the behavior is different, then either you didn't trigger the message with MESSAGE ... TYPE 'E' (which is completely different from DISPLAY LIKE 'E'), or your function code is of type "Exit", or many other possibilities, it's impossible to list everything.&lt;/P&gt;&lt;P&gt;Please do a /H after the error message, press B1 and tell us where it goes.&lt;/P&gt;&lt;P&gt;PS: for information, a function code may be of type "Exit" if it has code "E", as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/35926-e7hah.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 09:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462083#M14520</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-05-25T09:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table not getting refreshed in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462084#M14521</link>
      <description>&lt;P&gt;So as Sandra wrote, your function code seems to be an "Exit" one like a 'BACK' or 'EXIT' one, so during execution of your code the new input data is not available (&lt;A href="http://help-legacy.sap.com/abapdocu_751/en/dynpmodule.htm#!ABAP_ADDITION_1@1@"&gt;MODULE - AT EXIT-COMMAND&lt;/A&gt;: 'The only dynpro field transported to the ABAP program is the OK field.')&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Convert the function code to a standard application function code type space.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 05:56:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-not-getting-refreshed-in-module-pool/m-p/462084#M14521</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-05-29T05:56:33Z</dc:date>
    </item>
  </channel>
</rss>

