‎2007 May 23 5:19 AM
hai,
what is the difference between call screen ,set screen leave screen and leave to screen.
Thank you
ASHOK
‎2007 May 23 5:27 AM
Hi
Check This Also........
Call screen:
You can start a screen sequence from an ABAP program using the
CALL SCREEN <dynnr>.
statement. At the end of the screen sequence (next screen 0), the program continues processing directly after the CALL SCREEN statement.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbab2935c111d1829f0000e829fbfe/content.htm
Set Screen:
Every screen has a static next screen that specifies the next screen to be called after the current one, as long as it is not overwritten dynamically. In the processing logic, that is, a dialog module called by the screen, you can use the SET SCREENstatement to overwrite the statically-defined next screen dynamically:
SET SCREEN Folgedynpro.
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.
The SET SCREEN does not interrupt the current screen processing.
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbab1c35c111d1829f0000e829fbfe/content.htm
Leave and Leave to screen:
In a program, you can use one of the two following ABAP statements to leave a screen:
LEAVE SCREEN.
or
LEAVE TO SCREEN Next Screen.
The LEAVE SCREEN statement ends the current screen and calls the subsequent screen. The next screen is either the static next screen or a dynamic next screen. In the second case, you must override the static next screen using the SET SCREEN statement before the LEAVE SCREEN statement.
The LEAVE TO SCREEN statement exits the current screen and calls the dynamic next screen, which you specify as part of the statement. The LEAVE TO SCREEN statement is no more than a contraction of the two statements
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbab3635c111d1829f0000e829fbfe/content.htm
Reward All Helpfull Answers.........
‎2007 May 23 5:22 AM
Hi
CALL SCREEN 200
If we write this statement in screen 100 ,it will goto screen 200 and it will retain screen 100(ie u can come back)
and moreover u have options using this
CALL SCREEN 200 STARTING AT x1 y1 ENDING AT x2 y2
SET SCREEN 200
with the above statement , it will goto screen 200 and screen 100 no more remains
And no additional options for this
LEAVE SCREEN
Leaves the current screen and processes the next screen.
LEAVE TO SCREEN 200
it leaves the current screen and processes screen 200
Award points if helpful
Thanks
venki
‎2007 May 23 5:25 AM
Hi..
1) Call Screen: Calling a single screen can be used for embedding a screen sequence. If you want to prevent the called screen from covering the current screen completely (say u want 2 display both screen) you can use the CALL SCREEN statement with the STARTING AT and ENDING AT
CALL SCREEN 200
If we write this statement in screen 100 ,it will goto screen 200 and it will retain screen 100(ie u can come back)
and moreover u have options using this
CALL SCREEN 200 STARTING AT x1 y1 ENDING AT x2 y2
2) If we use set screen first the processing blocks in the present screen will be executed and control goes to the screen which is called.
in this control remains in that calling screen only, it doesnt come back to our screen.
3)In screen 100,we call screen 200.The PBO and PAI of screen 200 is processed.Now in screen 200,if we use leave to screen 100,the processing starts from screen 100 after the call screen 200 statement.The PBO and the PAI of screen 100 need not be processed again from the beginning in this case.
4) That is if we use leave to screen,the control goes back to the screen from which the present screen was called and continues with the processing.
SET SCREEN 200
1) With the above statement , it will goto screen 200 and screen 100 no more remains
2) Screen No 0 : This special screen number causes the screen to jump back to the calling screen.
set screen 0 used to go back to the previous screen.
Reward All Helpfull Answers...........
‎2007 May 23 5:27 AM
hi,
look this.
CALL SCREEN 200
If we write this statement in screen 100 ,it will goto screen 200 and it will retain screen 100(ie u can come back)
and moreover u have options using this
CALL SCREEN 200 STARTING AT x1 y1 ENDING AT x2 y2
SET SCREEN 200
with the above statement , it will goto screen 200 and screen 100 no more remains
And no additional options for this
LEAVE SCREEN
Leaves the current screen and processes the next screen.
LEAVE TO SCREEN 200
it leaves the current screen and processes screen 200
Regards
Reshma
‎2007 May 23 5:27 AM
Hi
Check This Also........
Call screen:
You can start a screen sequence from an ABAP program using the
CALL SCREEN <dynnr>.
statement. At the end of the screen sequence (next screen 0), the program continues processing directly after the CALL SCREEN statement.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbab2935c111d1829f0000e829fbfe/content.htm
Set Screen:
Every screen has a static next screen that specifies the next screen to be called after the current one, as long as it is not overwritten dynamically. In the processing logic, that is, a dialog module called by the screen, you can use the SET SCREENstatement to overwrite the statically-defined next screen dynamically:
SET SCREEN Folgedynpro.
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.
The SET SCREEN does not interrupt the current screen processing.
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbab1c35c111d1829f0000e829fbfe/content.htm
Leave and Leave to screen:
In a program, you can use one of the two following ABAP statements to leave a screen:
LEAVE SCREEN.
or
LEAVE TO SCREEN Next Screen.
The LEAVE SCREEN statement ends the current screen and calls the subsequent screen. The next screen is either the static next screen or a dynamic next screen. In the second case, you must override the static next screen using the SET SCREEN statement before the LEAVE SCREEN statement.
The LEAVE TO SCREEN statement exits the current screen and calls the dynamic next screen, which you specify as part of the statement. The LEAVE TO SCREEN statement is no more than a contraction of the two statements
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbab3635c111d1829f0000e829fbfe/content.htm
Reward All Helpfull Answers.........
‎2007 May 23 5:29 AM
hi ashok,
call screen used for calling next screens n subscreens. when call screen st is used then current screen processing is stopped n system will navigate to new screen process it n comes back n later restsrts processing the screen from where it left befor.
set screen: when it is used then after processing of current screen then sysyem navigates to new screen n process it.
leave screen: system navigates to the specified screen and never comes back to prevoius screen.
if helpful reward some points.
with regards,
suresh babu aluri.
‎2007 May 23 5:30 AM
hi Ashok,
here is the difference ....
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,
Ranjita