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: 

WHY I am getting error?

Former Member
0 Kudos
117

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
78

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

4 REPLIES 4

Former Member
0 Kudos
78

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

Former Member
0 Kudos
79

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

Former Member
0 Kudos
78

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.

Former Member
0 Kudos
78

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