2007 Sep 04 2:28 PM
SELECTION-SCREEN BEGIN OF SCREEN 111 AS WINDOW TITLE T1.
SELECTION-SCREEN BEGIN OF BLOCK AAA WITH FRAME TITLE T2.
PARAMETER A TYPE I.
PARAMETER B TYPE C.
SELECTION-SCREEN END OF BLOCK AAA.
SELECTION-SCREEN BEGIN OF SCREEN 222 AS WINDOW TITILE T3.
SELECTION-SCREEN BEGIN OF BLOCK BBB WITH FRAME TITLE T4.
PARAMETER S TYPE I.
PARAMETER T TYPE C.
SELECTION-SCREEN END OF BLOCK BBB.
SELECTION-SCREEN END OF SCREEN 222.
SELECTION-SCREEN END OF SCREEN 111.
INITIALIZATION.
T1 = 'FIRST SELECTION SCREEN'.
T2 = 'BLOCK'.
CALL SCREEN 111.
CALL SCREEN 222.
2007 Sep 04 2:39 PM
Hi,
You need to close the 111 screen before open the 222 screen
SELECTION-SCREEN BEGIN OF SCREEN 111 AS WINDOW TITLE T1.
SELECTION-SCREEN BEGIN OF BLOCK AAA WITH FRAME TITLE T2.
PARAMETER A TYPE I.
PARAMETER B TYPE C.
SELECTION-SCREEN END OF BLOCK AAA.
SELECTION-SCREEN END OF SCREEN 111.
SELECTION-SCREEN BEGIN OF SCREEN 222 AS WINDOW TITILE T3.
SELECTION-SCREEN BEGIN OF BLOCK BBB WITH FRAME TITLE T4.
PARAMETER S TYPE I.
PARAMETER T TYPE C.
SELECTION-SCREEN END OF BLOCK BBB.
SELECTION-SCREEN END OF SCREEN 222.
INITIALIZATION.
T1 = 'FIRST SELECTION SCREEN'.
T2 = 'BLOCK'.
CALL SCREEN 111.
CALL SCREEN 222.
Regards
Sudheer
2007 Sep 04 2:38 PM
Hello Balaji -- are you trying to get selection inputs on different tabs? If so unfortunately there is a lot more to do. Please see SAP example program DEMO_SEL_SCREEN_WITH_TABSTRIP
2007 Sep 04 2:39 PM
Hi,
You need to close the 111 screen before open the 222 screen
SELECTION-SCREEN BEGIN OF SCREEN 111 AS WINDOW TITLE T1.
SELECTION-SCREEN BEGIN OF BLOCK AAA WITH FRAME TITLE T2.
PARAMETER A TYPE I.
PARAMETER B TYPE C.
SELECTION-SCREEN END OF BLOCK AAA.
SELECTION-SCREEN END OF SCREEN 111.
SELECTION-SCREEN BEGIN OF SCREEN 222 AS WINDOW TITILE T3.
SELECTION-SCREEN BEGIN OF BLOCK BBB WITH FRAME TITLE T4.
PARAMETER S TYPE I.
PARAMETER T TYPE C.
SELECTION-SCREEN END OF BLOCK BBB.
SELECTION-SCREEN END OF SCREEN 222.
INITIALIZATION.
T1 = 'FIRST SELECTION SCREEN'.
T2 = 'BLOCK'.
CALL SCREEN 111.
CALL SCREEN 222.
Regards
Sudheer
2007 Sep 04 2:48 PM
I am getting different error now....
REPORT ZMYTESTPRG2 .
SELECTION-SCREEN BEGIN OF SCREEN 111 AS WINDOW TITLE T1.
SELECTION-SCREEN BEGIN OF BLOCK AAA WITH FRAME TITLE T2.
PARAMETER A TYPE I.
PARAMETER B TYPE C.
SELECTION-SCREEN END OF BLOCK AAA.
SELECTION-SCREEN END OF SCREEN 111.
SELECTION-SCREEN BEGIN OF SCREEN 222 AS WINDOW title T3.
SELECTION-SCREEN BEGIN OF BLOCK BBB WITH FRAME TITLE T4.
PARAMETER S TYPE I.
PARAMETER T TYPE C.
SELECTION-SCREEN END OF BLOCK BBB.
SELECTION-SCREEN END OF SCREEN 222.
INITIALIZATION.
T1 = 'FIRST SELECTION SCREEN'.
T2 = 'BLOCK1'.
T3 = 'SECOND SELECTION SCREEN'.
T4 = 'BLOCK2'.
CALL SCREEN 111.
CALL SCREEN 222.
2007 Sep 04 2:53 PM
Hi,
Here is the example program
REPORT demo_call_selection_screen.
SELECTION-SCREEN BEGIN OF BLOCK sel1 WITH FRAME TITLE tit1.
PARAMETERS: cityfr TYPE spfli-cityfrom,
cityto TYPE spfli-cityto.
SELECTION-SCREEN END OF BLOCK sel1.
SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
SELECTION-SCREEN INCLUDE BLOCKS sel1.
SELECTION-SCREEN BEGIN OF BLOCK sel2
WITH FRAME TITLE tit2.
PARAMETERS: airpfr TYPE spfli-airpfrom,
airpto TYPE spfli-airpto.
SELECTION-SCREEN END OF BLOCK sel2.
SELECTION-SCREEN END OF SCREEN 500.
INITIALIZATION.
tit1 = 'Cities'.
AT SELECTION-SCREEN.
CASE sy-dynnr.
WHEN '0500'.
MESSAGE w888(SABAPDOCU) WITH 'Screen 500'.
WHEN '1000'.
MESSAGE w888(SABAPDOCU) WITH 'Screen 1000'.
ENDCASE.
START-OF-SELECTION.
tit1 = 'Cities for Airports'.
tit2 = 'Airports'.
CALL SELECTION-SCREEN 500 STARTING AT 10 10.
tit1 = 'Cities again'.
CALL SELECTION-SCREEN 1000 STARTING AT 10 10.
Regards
Sudheer