‎2007 Sep 04 10:04 AM
explain the difference between
call screen
and
call selection-screen
with easy understandable explanation with simple example
thanks guyz
‎2007 Sep 04 10:10 AM
‎2007 Sep 04 10:17 AM
Hi,
<b>CALL SCREEN</b> interrupts the processing of the current screen to call a new screen or a chain of screens, processing of the current screen is resumed directly after the call.
Call selection-screen
Similar to <b>CALL SCREEN</b>, except the screen you are calling must be a selection screen defined using<b> SELECTION-SCREEN BEGIN/END OF SCREEN</b> or the standard selection screen of a report.
It calls the selection screen with in the program.
If you call a selection screen using <b>CALL SCREEN</b> instead of <b>CALL SELECTION-SCREEN</b>, the initialization necessary for selection screens is not carried out, and the screen will not run properly when displayed.
EG:<b>
SELECTION-SCREEN BEGIN OF SCREEN 123 AS WINDOW TITLE TEXT-456.
SELECTION-SCREEN BEGIN OF BLOCK BL1 WITH FRAME TITLE TEXT-BL1
NO INTERVALS.
SELECT-OPTIONS SEL1 FOR SY-SUBRC.
PARAMETERS PAR1 LIKE SPFLI-CARRID.
SELECTION-SCREEN COMMENT /10(20) TEXT-COM.
SELECTION-SCREEN END OF BLOCK BL1.
SELECTION-SCREEN END OF SCREEN 123.
...
CALL SELECTION-SCREEN 123 STARTING AT 20 5.
IF SY-SUBRC = 0.
...
ELSE.
...
ENDIF.</b>
rewards if useful,
regards,
nazeer
‎2007 Sep 04 10:39 AM
hello,
CALL SELECTION-SCREEN
For any program in which selection screens are defined, you can call these screens at any point of the program flow using the following statement:
CALL SELECTION-SCREEN <numb> [STARTING AT <x1> <y 1>]
[ENDING AT <x2> <y 2>].
This statement calls selection screen number <numb>. The selection screen called must be defined in the calling program either as the standard selection screen (screen number 1000) or as a user-defined selection screen (any screen number). You must always use CALL SELECTION-SCREEN to call selection screens.In case of CALL SCREEN, the system will not be able to process the selection screen.
CALL SCREEN.
BY calling CALL SCREEN 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 .
here is also link for further knowledge.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba82335c111d1829f0000e829fbfe/frameset.htm
reward points if helpful,
regards
anuj
.