Skip to Content
avatar image
Former Member

Internal table not getting refreshed in module pool

Dear Experts,

Before posting here, I have searched many SCN posts but of no help.

I have a main screen say 9000 which has a button B1. I have a subscreen which holds a table control say T1.

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.

Now when I change the data in T1 and again click on B1, changes are not reflecting in its internal table say IT_TAB.

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.

Now how do I get the changed values of T1 from screen 9001 to my internal table IT_TAB.

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 24, 2017 at 07:07 AM

    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 <subarea> in the PAI of screen 9000.

    Add comment
    10|10000 characters needed characters exceeded

    • 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 (MODULE - AT EXIT-COMMAND: 'The only dynpro field transported to the ABAP program is the OK field.')

      Convert the function code to a standard application function code type space.