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: 

Question Regarding Screens

Former Member
0 Kudos

Hi,

I have a customized button on the toolbar. Now when I click this button a screen or subscreen should be displayed with a select option parameter. Based on the value that I select in this screen functionality of the pushbutton which is there on the first screen should be performed. How do I achieve this? Thanks In Advance..

Vicky

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

Define a selection screen with the select option and call the selection screen in the pai section of your original screen.Put a button on the selection screen which is to be pressed once you enter values in the select-options.

sample code to call a selection-screen.

<i><b>DATA SPFLI TYPE SPFLI.

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></i>

Regards,

Ravi

1 REPLY 1

former_member181962
Active Contributor
0 Kudos

Define a selection screen with the select option and call the selection screen in the pai section of your original screen.Put a button on the selection screen which is to be pressed once you enter values in the select-options.

sample code to call a selection-screen.

<i><b>DATA SPFLI TYPE SPFLI.

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></i>

Regards,

Ravi