2014 Dec 01 11:30 AM
Hi all,
I have a requirement wherein I have to call a subscreen in a screen where a subscreen is already there. But I am unable to figure out where to call it. The select-options and the table control is called via 2 sunscreens. After the user presses 'SUBMIT', the table control should appear below the select-options. Below are the screen shots:
The layout for the select-options and the table control is shown below:
The flow logic for screen 9000 is:
I have called both the subscreens in here.
Now in my output, the table control is appearing along with the select-options which is not correct. It should appear after the user presses 'SUBMIT'.
So where and how do I call the subscreen for the table control so that it appears after PAI?
Regards.
Manish
2014 Dec 02 2:57 AM
Hi Manish,
Why not you put output subscreen to another screen. Then call this screen in 'USER_COMMAND'.
You want selection fields and output in same screen, only this output should appeared after you click submit?
regards,
Archer
Hi Manish,
Why not you put output subscreen to another screen. Then call this screen in 'USER_COMMAND'.
You want selection fields and output in same screen, only this output should appeared after you click submit?
regards,
Archer
2014 Dec 02 2:57 AM
Hi Manish,
Why not you put output subscreen to another screen. Then call this screen in 'USER_COMMAND'.
You want selection fields and output in same screen, only this output should appeared after you click submit?
regards,
Archer
2014 Dec 02 3:22 AM
If yes, then you need another dummy subscreen.
DATA: dynpro01 TYPE c LENGTH 4 VALUE '9003'.
SELECTION-SCREEN BEGIN OF SCREEN 9003 AS SUBSCREEN.
* Nothing in this dummy subscreen.
SELECTION-SCREEN END OF SCREEN 9003.
PROCESS BEFORE OUTPUT.
MODULE STATUS_9000.
CALL SUBSCREEN REF1 INCLUDING sy-repid '9001'.
CALL SUBSCREEN REF2 INCLUDING sy-repid dynpro01.
MODULE user_command_9000 INPUT.
ok_code = sy-ucomm.
CASE ok_code.
WHEN 'SUBMIT'.
dynpro01 = '9002'.
ENDCASE.
ENDMODULE.
regards,
Archer
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |