Application Development and Automation 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: 
Read only

selection-screen

Former Member
0 Likes
436

Hi Friends,

Can we have more than one selection-screen for a program and let me know how can we do it..

Thnaks,

Radhika.

1 ACCEPTED SOLUTION
Read only

dani_mn
Active Contributor
0 Likes
400

HI,

Yes we have more than one.

<b>
REPORT ztest.
TABLES: 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-CONNID.
PARAMETERS     PAR2 TYPE I.
SELECTION-SCREEN END OF SCREEN 99.</b>

5 REPLIES 5
Read only

dani_mn
Active Contributor
0 Likes
401

HI,

Yes we have more than one.

<b>
REPORT ztest.
TABLES: 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-CONNID.
PARAMETERS     PAR2 TYPE I.
SELECTION-SCREEN END OF SCREEN 99.</b>

Read only

Former Member
0 Likes
400

S we have more than one selection-screen for a program

FYI...

Example

TABLES: 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-CONNID.

PARAMETERS PAR2 TYPE I.

SELECTION-SCREEN END OF SCREEN 99.

Ramesh.

Read only

Former Member
0 Likes
400

hi

good

yes you can have more than one sclection screen in your report, but instead of declaring multiple sclection screen it would be better to declare one selection screen in a report and under that you can delcare all the select-options and parameter statements,similarly how you can declaring a single slection screen you can declare another selection screen also.

thanks

mrutyun^

Read only

Former Member
0 Likes
400

Hi,

You can do it through SE51...moule pool as every standard selection screen is screen 1000. You can create our own screen and in the screen 1000 attributes you can give next screen as screen 500 or whatever you want. Pls try this and let me know.

Read only

Former Member
0 Likes
400

sol