Application Development 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: 

ABAP Screen

Former Member
0 Kudos

hi,

what is the diference between leave screen , set screen and call screen?

7 REPLIES 7

Former Member
0 Kudos

go to se38 then take help...it is very simple

Former Member
0 Kudos

call screen : when u give this syntax eg : call screen 100.

the screen 100 gets trigerred when this syntax is called .

leave screen : when u give this syntax eg : leave screen to 100

then the current screen exits and trigerrs to 100 screen.

Former Member
0 Kudos

Hi Baskar,

1. Call Screen

CALL SCREEN scr.

Addition:

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

Note

Please consult Data Area and Modularization Unit Organization documentation as well.

Addition

... STARTING AT x1 y1 ENDING AT x2 y2

Effect

The coordinates x1, y1 (start column and start line in the window) and x2, y2 (end column and end line in the window) define the size and position of the CALL screen ("top left - bottom right"). Besides these coordinates, you can also see the contents of the primary window, but cannot perform any action there.

Note

If "ENDING AT ..." is not specified, suitable values are substituted for x2 and y2, taking into account the size of the called screen.

2. SET 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.

Notes

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.

Please consult Data Area and Modularization Unit Organization documentation as well.

3. Leave Screen

LEAVE SCREEN.

Effect

Leaves the current screen and processes the next screen.

If the next screen has the number 0 (either defined statically or set dynamically by SET SCREEN 0), processing in CALL mode continues after the CALL SCREEN statement. Otherwise, you branch to the transaction selection screen.

Note

If the next screen is specified dynamically, you can use the short form " LEAVE TO SCREEN scr." instead of a combination of the "SET SCREEN scr." and "LEAVE SCREEN." commands.

4. Leave to screen

LEAVE TO SCREEN scr.

Effect

Leaves the current screen and processes the screen scr.

If scr = 0, processing in CALL mode continues after the CALL SCREEN statement. Otherwise, you branch to the transaction selection screen.

Reward If Useful.

Regards,

Chitra

Former Member
0 Kudos

Leave screen: Ends the processing of the current screen, calls the next screen. This is either statically specified in the properties of the current screen or set before using the statement SET SCREEN. . The current processing block of the ABAP program and the current processing block of the dynpro are left immediately.

Hi Baskar,

Set Screen: This statement sets the screen with the screen number specified in dynnr, as the next screen for processing of the current screen. One next screen is always set during the processing of a screen. After you call a screen, the next screen whose characteristics are defined statically, applies; this next screen can be overwritten with the SET SCREEN statement for the duration of the actual next screen processing.

Call Screen: This statement calls the dynpro with the dynpro number specified in dynnr. For dynnr, a data object of type n and length 4 is expected. The call starts a new dynpro sequence, which is embedded into the current dynpro sequence.

Thanks,

Swati

Former Member
0 Kudos

Hi,

try first tcode ABAPDOCU.

Regards, Dieter

Former Member
0 Kudos

Hi Baskar,

The Difference between Leave screen , Set scree and Call screen is as folows:-

<b>Leave Screen </b> - this statement will leave the Current Screen.

<b>Set Screen <scr ></b> - this will processes the screen no. scr as the current screen .

<b>Call Screen <scr> </b> - this will call the screen no. scr .

Further Explainations can be found at ABAP Documentation with Examples.

Reward if useful.

Regrads,

Shilpi

paruchuri_nagesh
Active Contributor
0 Kudos

hi

CALL SCREEN: terminates current screen process temporarly controller goes to next called screen

SET SCREEN: after completion of current screen process controller goes to next screen (sets screen dynamically)

LEAVE SCREEN:immediatly terminates current screen process.

LEAVE TO SCREEN 100:controller returns from called screen to calling screen

if u r calling call screen 200 from 100 screen leave to screen returns controller from called screen to calling screen .

reward if u find useful

regards

Nagesh.Paruchuri