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

subscreens

Former Member
0 Likes
1,145

I have designed one main screen 1000 and underthat i have designed two subscreens 2000 and 3000.I want to know the logic for it.First the logic goes to pbo of screen1000 then after that plz explain me clearly.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,032

manjula,

u can't use the screen number 1000. It is meant for the standard screen for selection-screens.

But in ur case, v have to use the following stmts in the first screen.

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

MODULE TEST.

CALL SUBSCREEN: SUB1 INCLUDING 'Ztest' '0200',

SUB2 INCLUDING 'Ztest' '0300'.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

CALL SUBSCREEN SUB1.

CALL SUBSCREEN SUB2.

Regards...

Arun.

Reward points if useful.

I have designed one main screen 1000 and underthat i have designed two subscreens 2000 and 3000.I want to know the logic for it.First the logic goes to pbo of screen1000 then after that plz explain me clearly.

5 REPLIES 5
Read only

Former Member
0 Likes
1,032

Hi Manjula,

At first the control goes to PBO of screen 1000.After that it will go to PAI of Screen 1000.Based on the Condition u wrote in the PAI of the Screen 1000,it will go to the PBO of the Subscreen 2000 or 3000.After that it will go to the PAI of the screen Correspondingly

Regards,

Padmam.

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,032

HI,

in the PBO if your screen 1000 you will have to put CALL SBUSCREEN statements for 2000 and 3000 as per your need.

SO if you call 2000 first then BO of 2000 is called and then PBO of 3000 is called.

Similarly you have to put CALL SUBSCREEN in the PAI of 1000.

@padmam, With out calling the PBO of the subscreens how will you display the screen with all the subscreens so all PBO will be called before you goto any PAI.

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala

Read only

Former Member
0 Likes
1,033

manjula,

u can't use the screen number 1000. It is meant for the standard screen for selection-screens.

But in ur case, v have to use the following stmts in the first screen.

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

MODULE TEST.

CALL SUBSCREEN: SUB1 INCLUDING 'Ztest' '0200',

SUB2 INCLUDING 'Ztest' '0300'.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

CALL SUBSCREEN SUB1.

CALL SUBSCREEN SUB2.

Regards...

Arun.

Reward points if useful.

Read only

Former Member
0 Likes
1,032

first of all the subscreen cannot process ok_code operation.

A subscreen screen may not have a named OK code field. Function codes can only be passed to the OK code field of the main screen.

first conrol will pass to the PBO of the main screen 1000 . then if there is call subscreen stmt in PBO of 1000 it will move to PBO of the corresponding SUbscreen if it 2000 it will go there and return to main screen1000. if there is another call subscreen in the mainscreen for 3000 it will go the PBO of the 3000 subscreen and will return to the main pgm and will start processing the PAI of the main screen 1000.. then till continue with the call subscreen stmt which first appear in the PAI ..if it is2000. it will process that .. then to 3000....

actually subscreen does not have an ok_code.. so it is better process the ok_code in the usercommand module of the main screen...

for calling two subscreen it is better practice to assign one subscreen area in the main screen and based on condition map the corresponding subscreen 2000 or 3000 to this subscreen area instead of creating two different subscreen area for each subscreen . and handle the ok_code ine usercommand module of the main screen 1000..

Read only

Former Member
0 Likes
1,032

Hello Manjula...

screen 1000.

PBO..

call subscreen <sub1> including sy-cprog '2000'.

call subscreen <sub2> including sy-cprog '3000'.

PAI..

call subscreen <sub1>.

call subscreen <sub2>.

if this is the case... see how control goes...

PBO 1000 --> PBO 2000 --> PBO 3000 --> PAI 1000 --> PAI 2000 --> PAI 3000.

<b>ALWAYS REMEMBER THAT FIRST CONTROL GOES TO PBOs FIRST AND THEN PAIs</b>

<b>REWARD POINTS IF HELPFUL</b>

Regards

--

Sasidhar Reddy Matli.