Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Question Regarding Screens

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

Tags:
Former Member
replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question