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-set screen

Former Member
0 Likes
682

Hi exports,

Can any body explain me what is the difference between CALL screen and SET screen?

Thanks

6 REPLIES 6
Read only

Former Member
0 Likes
645

call screen will take the control to the called screen's pbo.

set screen will not take the control to the screen specified. BUt the control would go to the screen specified after the processing of the current screen.

Regards,

Ravi

Read only

Former Member
0 Likes
645

- With SET SCREEN the current screen simply specifies the next screen in the chain , control branches to this next screen as sonn as th e current screen has been processed .Return from next screen to current screen is not automatic .It does not interrupt processing of the current screen.If we want to branch to the next screen without finishing the current one ,use LEAVE SCREEN.

- With CALL SCREEN , the current (calling) chain is suspended , and a next screen (screen chain) is called .The called can then return to the suspended chain with the statement LEAVE SCREEN TO SCREEN 0 .Sometime we might want to let an user call a pop up screen from the main application screen to let him enter secondary information.After they have completed their enteries, the users should be able to close the popup and return directly to the place where they left off in the main screen.Here comes CALL SCREEN into picture .This statement lets us insert such a sequence intp the current one.

Regards,

Prakash.

Read only

Former Member
0 Likes
645

CALL SCREEN : Will go to that screen by leaving the current screen.

SET SCREEN we will populate the next screen number based on some condition.if we say LEAVE SCREEN.then the screen will be displayed what we populated thru SET SCREEN.

till we say LEAVE SCREEN,SET SCREEN WILL dont have any effect.

Regards

Srikanth

Read only

Former Member
0 Likes
645

CALL Screen/SET Screen along with LEAVE Screen both are used to move from one screen to another but CALL screen puts an entry in the stack and are not allowed to have more than 9 entries at a time...so it is advisable to use SET Screen and LEAVE.

Read only

Former Member
0 Likes
645

CALL SCREEN scr [STARTING AT x1 y1 ... ENDING AT x2 y2 ]

Effect

Calls the screen scr; scr is the number of a screen of the main program. You use SET SCREEN 0. or LEAVE SCREEN. to define the return from the CALL screen.

====================================================

SET SCREEN scr.

Effect

In ABAP/4 dialogs, this sets the next screen number.

The system processes the screen with the number scr immediately after the current screen.

Example

SET SCREEN 200.

Note: ( Rel btw CALL and SET )

====

To leave a screen called with CALL SCREEN or to return from a branch to the transaction selection screen, you must use the statement

SET SCREEN 0. or LEAVE TO SCREEN 0.

Regs,

Venkat Ramanan N

Read only

Former Member
0 Likes
645

hi,

check this thread

REgards,

Sailaja.