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

Difference between leave to screen & leave screen

Former Member
0 Likes
2,323

Difference between leave to screen & leave screen

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,558

Hi Sir,

Explaining in simple words the difference below.Please go through it.

Plz do reward if useful.

Thankx.

Basically:

- Call screen..... calls a screen.

If you leave this screen with set screen 0, you return to the first

statement after the call screen statement. So this Dynpro is called on top

of the calling screen.

- set screen sets the number of the following dynpro.

- Leave screen: leave the Dynpro directly and start the PBO of the next

Dynpro. This next Dynpro can be set by SET SCREEN.

- Leave to screen nnnn: leaves current Dynpro and starts screen nnnn. You

must consider this as the next Dynpro in a chain of dynpro's

Difference between leave to screen & leave screen

4 REPLIES 4
Read only

Former Member
0 Likes
1,558

leave screen : gets out from ur current screen

this is used in case of calling list from screen and viceversa

leave to screen 100. will move to screen no mentioned

with regards,

muthu.

Read only

paruchuri_nagesh
Active Contributor
0 Likes
1,558

hi

LEAVE TO SCREEN should be use when u r using CALL SCREEN to call a screen statically

let us assume if we are calling screen200 from screen100

in pai of 100 screen we have to call screen 200

to return from screen 200 to screen 100

then we have to use leave to screen 100

LEAVE SCREEN terminates current screen procees immediatly

this shouldbe use with SET SCREEN statement

in SET SCREEN calls next screen dynamically

it sets the next screen after processing of curent screen only

so if we want to use set screen it should be use with LEAVE SCREEN

Reward for use ful points

Regards

Nagesh.Paruchuri

Read only

Former Member
0 Likes
1,558

leave to screen : it leaves the current screen and goto the specified screen.

leave screen : leaves the current screen and the next screen is either pickedup from the def., screen attributes of the current screen or the screen set using the SET SCREEN keyword.

sirish

Read only

Former Member
0 Likes
1,559

Hi Sir,

Explaining in simple words the difference below.Please go through it.

Plz do reward if useful.

Thankx.

Basically:

- Call screen..... calls a screen.

If you leave this screen with set screen 0, you return to the first

statement after the call screen statement. So this Dynpro is called on top

of the calling screen.

- set screen sets the number of the following dynpro.

- Leave screen: leave the Dynpro directly and start the PBO of the next

Dynpro. This next Dynpro can be set by SET SCREEN.

- Leave to screen nnnn: leaves current Dynpro and starts screen nnnn. You

must consider this as the next Dynpro in a chain of dynpro's