‎2010 Mar 04 5:47 PM
hi all i have a problem with in the subscreen.
i have a button in the sub screen when i press the buttun or press enter
it should be in the same subscreen.
if i write leave to screen, or set screen its not accepting .
how can i call my same subscreen for the particular user command.
‎2010 Mar 04 6:50 PM
You don't leave to subscreen neither you set subscreen. All you do is to provide appropriate number of subscreen which should be displayed in subscreen area of main dynpro. In below example it is dyn_no .
"in main screen
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN: area1 INCLUDING sy-repid dyn_no.
"in subscreen
PROCESS AFTER INPUT.
MODULE user_command.
MODULE user_command INPUT.
if sy-ucomm = "your user command here
dyn_no = '100'. "here just set correct subscreen number, so in PBO of main screen it will process this one
endif.
ENDMODULE.
Regards
Marcin
‎2010 Mar 05 6:00 AM
Hi thank u for ur reply .. its an enhancement so when i try to change dyn_no of main screen its says that variable does not exist,
so i can not change that from my subscreen pai.
Edited by: sudheer b on Mar 5, 2010 7:00 AM
‎2010 Mar 05 7:53 AM
So what variable you have there (in main screen) as your subscreen number and where is its definition? Is it a global one?
If so you should be able to address it directly.