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

subscreen in module pool programming

Former Member
0 Likes
908

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.

5 REPLIES 5
Read only

former_member188829
Active Contributor
0 Likes
686

call subscreen 'sub screen name' including progarm 'program name'

Read only

0 Likes
686

call subscreen 'sub1' including 'yprogram'.

where sub1 = subscreen name

yprogram = program name

Read only

0 Likes
686

eg:call subscreen 'sub1' including 'yprogram' screen '110'

where sub1 = subscreen name

yprogram = program name

110 = screen number

Read only

0 Likes
686

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/.

Read only

0 Likes
686

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