Table Control Problem
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.)
Ramchander Rao krishnamraju replied
In PBO you have CALL SUBSCREEN SUB INCLUDING REPID DYNNR 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. endmodule.
Hope this serve your purpose