1) i have a main screen 100 and a subscreen 200 placed in a main screen.
2) i placed few buttons in sub screen.
3) i have MANUAL button on main screen.
initially this sub screen should not display i.e buttons in subscreen should not be displayed.
after clicking the MANUAL button only these buttons should be displayed i.e subscreen should diaplay.
plz help me with a sample code.
Debarshi Roy replied
Your requirement can be solved by creating another subscreen .
Let us assume ur main screen is 1000 , in that you place a blank subscreen say 2000 and you make another subscreen 3000 in which you place the buttons.
Now place the following codes :
In the top include you declare...
data : var TYPE sy-repid VALUE '2000'.
Now in your main screen i.e. 1000 in the PBO part you call the subscreen like this :
PROCESS BEFORE OUTPUT. MODULE status_1000. CALL SUBSCREEN sub INCLUDING sy-repid VAR.
At this moment var is 2000 i.e.your blank subscreen.
Now when you press the button 'MANNUAL' in the PAI part you write:
CASE ok_code1000 WHEN 'MANNUAL'. var = '3000'.
This will completely solve your rerquirement...