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

screens

Former Member
0 Likes
624

what is the difference between set screen,call screen.plz explain me clearly

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
604

Hi,

What is the difference between SET SCREEN and CALL SCREEN ?

With SET SCREEN, the current screen simply specifies the next screen in the chain. control branches to this next screen as soon as the 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 (or screen chain) is called in. The called screen can then return to the suspended chain with the statement LEAVE SCREEN TO SCREEN 0. Sometimes we might want to let an user call a popup screen from the main application screen to let them enter secondary information. After they have completed their entries, 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 into the current one.

Regards,

Ferry Lianto

what is the difference between set screen,call screen.plz explain me clearly

2 REPLIES 2
Read only

Former Member
0 Likes
605

Hi,

What is the difference between SET SCREEN and CALL SCREEN ?

With SET SCREEN, the current screen simply specifies the next screen in the chain. control branches to this next screen as soon as the 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 (or screen chain) is called in. The called screen can then return to the suspended chain with the statement LEAVE SCREEN TO SCREEN 0. Sometimes we might want to let an user call a popup screen from the main application screen to let them enter secondary information. After they have completed their entries, 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 into the current one.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
604

hi,

<b> SET SCREEN <next screen no>.</b>

This statement defines a new next screen for the current program run. You can also specify the number of the next screen as a field containing a screen number. The statically-defined next screen is ignored. However, this only overrides the static screen sequence temporarily. The static value for the next screen, as defined in the Screen Painter, is always retained.After the screen has been processed, control returns to the point from which the screen sequence was called.

To leave a screen, use the ABAP statement LEAVE .

LEAVE SCREEN.

or

LEAVE TO SCREEN <next screen>.

<b>CALL SCREEN <screen no>.</b>

You can start a screen sequence from an ABAP program At the end of the screen sequence (next screen 0), the program continues processing directly after the CALL SCREEN statement. If you use the CALL SCREEN statement within a screen sequence that is already running, the new screen sequence is inserted into the current sequence.

This works as a kind of stack, since the CALL SCREEN statement interrupts the current screen sequence and starts a new one. When you start a screen sequence with a transaction code, you can stack up to 50 other screen sequences on top of it.

reward if helpful

ravi