2010 Jul 29 5:03 AM
I have a module program with subscreen 100. In this subscreen is buttons and an ALV. This subscreen is being called by another main program, with the main screen composed of many subscreens (of diff. module programs), one of which is mine. My problem is my subscreen needs to call another screen, either a dialog screen or a selection screen (a selection screen for re-selection of data). But on CALL SCREEN or CALL SELECTION-SCREEN from the subscreen button, I always encounter a dump saying that the "Dynpro does not exist" in the main program, which is true. Is there a way that I can call this screen from my subscreen? Fyi, there is no way I can modify the main program, it is a custom program created by SAP for our application.
Thanks in advance
Edited by: Giancarla Daroy on Jul 29, 2010 7:32 AM
I have a module program with subscreen 100. In this subscreen is buttons and an ALV. This subscreen is being called by another main program, with the main screen composed of many subscreens (of diff. module programs), one of which is mine. My problem is my subscreen needs to call another screen, either a dialog screen or a selection screen (a selection screen for re-selection of data). But on CALL SCREEN or CALL SELECTION-SCREEN from the subscreen button, I always encounter a dump saying that the "Dynpro does not exist" in the main program, which is true. Is there a way that I can call this screen from my subscreen? Fyi, there is no way I can modify the main program, it is a custom program created by SAP for our application.
Thanks in advance
Edited by: Giancarla Daroy on Jul 29, 2010 7:32 AM
2010 Jul 29 7:29 AM
Hi
I beleive you need to mention the screen number of to be called screen in the PBO of your calling screen (subscreen)
like
CALL SUBSCREEN <subscreen name> INCLUDING <screen number>.
I hope this will work for you.
Thanks
Lalit Gupta
2010 Jul 29 7:31 AM
Hi
try this
PROCESS BEFORE OUTPUT.
MODULE STATUS_100.
CALL SUBSCREEN: AREA1 INCLUDING SY-REPID NUMBER1,
This should be the PBO of your calling screen,
AREA1 is the name of the next screen (or subscreen whatever type of screen u r trying to call) and metntion the number.
thanks
2010 Jul 29 7:48 AM
That's already in my screen's PBO.
I meant, the main program is diff. from the subscreen's program. Main program is ZPROG_MAIN, while the subscreen's program is ZPROG_SUB. ZPROG_MAIN's subscreen area calls the "subscreen" screen 100 of ZPROG_SUB. In ZPROG_SUB, I have created another screen, 110, a selection-screen actually.
CALL SCREEN or CALL SELECTION-SCREEN does not work, because the systems looks for the dynpro '0110' from the main screen, ZPROG_MAIN, which selection-screen 110 does not exist there. I can not add the selection-screen in the main program. CALL TRANSACTION works, but it blocks the main program screen in the background.
Is there any workaround here where the selection-screen can be called while the main screen is in the background?
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |