Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Table Control Problem

Hello Everyone,

I have two table controls in my Subscreen. Depending on the buttons i click on the Subscreen i need to show the corresponding table control and hide the other. When i hide the first Table Control the second one should occupy the place of the first table control(just like the i/o fields do). But this is not happening..any hints of why it isnt working?

(I didnt find any thread having this kind of problem or may be the search string i gave didnt match with the respective threads if any.)

Best regards,




In PBO you have


IN Top include declare 
data : repid type sy-repid, " This is the Module pool program name
          dynnr type sy-dynnr value '0100'. " This is the first subscreen

in PAI

module call_correct_screen.

in program.

module call_correct_screen.
case Ok_Code.
when 'BUTTON1'.  " This is the perticular Button you are clicking
dynnr = '0200'. Where your second table control is included
when 'BUTTON2' " Another Button which intends call third Subscreen for example
dynnr = '0300'.
when 'BUTTON3'.  " Lets say a nothing should display then call a dummy subscreen without any elements on it
dynnr = 400.

Hope this serve your purpose


Ramchander Rao.K

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question