Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CALL SCREEN from a subscreen

giancarla_aguilar
Participant
0 Likes
1,661

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

3 REPLIES 3
Read only

Former Member
0 Likes
971

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

Read only

0 Likes
971

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

Read only

0 Likes
971

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?