‎2007 Jan 08 9:28 AM
hello
i want to call to subscreens to subscreen area of main screen dynamically.
i tried using statement under PBO OF MAIN SCREEN flow logic.
<u>call subscreen <sub screen name> including '<program name>' variable1'.</u>
i declared all the things in layout as well as in main program.
data............
....
<u>variable1 type sy-dynnr.
if ( statement).
variable = 'screen number'.
endif.</u>in this way i have three sub screens.
i am not getting any sytatic errors.
but when i execute this . it showing some message.
‎2007 Jan 08 9:33 AM
call subscreen 'sub screen name' including progarm 'program name'
‎2007 Jan 08 9:35 AM
call subscreen 'sub1' including 'yprogram'.
where sub1 = subscreen name
yprogram = program name
‎2007 Jan 08 9:38 AM
eg:call subscreen 'sub1' including 'yprogram' screen '110'
where sub1 = subscreen name
yprogram = program name
110 = screen number
‎2007 Jan 08 9:47 AM
thanks for your answer.
but i want to call subscreen dynamically.
if we hard code ie by providing screen '110'. then it will become calling statistically.
thannk u/.
‎2007 Jan 08 10:12 AM
HI,
CALL SUBSCREEN subscreen_name INCLUDING prog_name dynnr.
where subscreen_name = your subscreen area
prog_name = a variable which holds the name of desired program
dynnr = a variable holding the screen number from the desired program
br