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: 

abap general

Former Member
0 Kudos
116

Hi all,

Wht is the purpose of

SELECTION-SCREEN BEGIN OF SCREEN dynnr [AS WINDOW].

...

SELECTION-SCREEN END OF SCREEN dynnr.

Can anyone sendme the sample code for this.

5 REPLIES 5

Former Member
0 Kudos
90
Hi Alex,

  The below statement creates a new screen

DATA SPFLI_WA TYPE SPFLI. 

SELECT-OPTIONS SEL0 FOR SY-TABIX. 
PARAMETERS PAR0(5). 

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. 

SELECTION-SCREEN ULINE. 

SELECTION-SCREEN BEGIN OF SCREEN 99. 
  SELECTION-SCREEN PUSHBUTTON 15(25) PUBU 
                   USER-COMMAND US01. 
  SELECT-OPTIONS SEL2 FOR SPFLI_WA-CONNID. 
  PARAMETERS     PAR2 TYPE I. 
SELECTION-SCREEN END OF SCREEN 99.

Former Member
0 Kudos
90

say u want a sub screen in the selection-area u need to define it this way...So, when u execute ur report the selection screen comes as well as a Window gets triggered which is been shown up.

Here is an example...

DATA SPFLI_WA TYPE SPFLI.

SELECT-OPTIONS SEL0 FOR SY-TABIX.

PARAMETERS PAR0(5).

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.

SELECTION-SCREEN ULINE.

SELECTION-SCREEN BEGIN OF SCREEN 99.

SELECTION-SCREEN PUSHBUTTON 15(25) PUBU

USER-COMMAND US01.

SELECT-OPTIONS SEL2 FOR SPFLI_WA-CONNID.

PARAMETERS PAR2 TYPE I.

SELECTION-SCREEN END OF SCREEN 99.

Message was edited by:

Ramesh Babu Chirumamilla

Former Member
0 Kudos
90

Hi,

Check the following example.


DATA SPFLI_WA TYPE SPFLI. 

SELECT-OPTIONS SEL0 FOR SY-TABIX. 
PARAMETERS PAR0(5). 

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. 

SELECTION-SCREEN ULINE. 

SELECTION-SCREEN BEGIN OF SCREEN 99. 
  SELECTION-SCREEN PUSHBUTTON 15(25) PUBU 
                   USER-COMMAND US01. 
  SELECT-OPTIONS SEL2 FOR SPFLI_WA-CONNID. 
  PARAMETERS     PAR2 TYPE I. 
SELECTION-SCREEN END OF SCREEN 99. 



Hope it helps.

Regards,

Kinshuk

Former Member
0 Kudos
90

HI,

this will create a pop-up screen for you, i mean if you want a Selection screen as pop-up then you can make use of this,

lets say, there is one Parameter in the Selection screen, if user eneres X in that field, you want to ask him to enter 2 more fields, then you can create a selection screen as subscreen and call that screen .

Regards

Sudheer

Former Member
0 Kudos
90

Alex mark this post as question