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: 

Select Options in Subscreen

former_member328919
Participant
0 Kudos
373

Hi all,

Impossible to open extension of the select options.

1. I have pushbutton to select an option

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN PUSHBUTTON /10(30) TEXT-004 USER-COMMAND av3.
SELECTION-SCREEN PUSHBUTTON /10(30) TEXT-003 USER-COMMAND av2.
SELECTION-SCREEN PUSHBUTTON /10(30) TEXT-002 USER-COMMAND av1.
SELECTION-SCREEN PUSHBUTTON /10(30) TEXT-000 USER-COMMAND av0.
SELECTION-SCREEN END OF BLOCK b1.

2. I have selection screen of subscreen

SELECTION-SCREEN BEGIN OF SCREEN 0101 AS SUBSCREEN.
SELECTION-SCREEN : BEGIN OF BLOCK b01 WITH FRAME TITLE TEXT-b01.
SELECT-OPTIONS : s_da_av FOR zxxxxxxxxxxxxxxxxxxx,

s_aedat FOR zxxxx-aedat,

s_xblnr FOR zxxxx-xblnr,
s_bldat FOR zxxxx-bldat,
...
SELECTION-SCREEN : END OF BLOCK b01.
SELECTION-SCREEN END OF SCREEN 0101 .

3. I have AT SELCTION SCREEN

AT SELECTION-SCREEN.
CASE sy-ucomm.
WHEN 'AV0'.
CALL SCREEN '0001'.
WHEN 'AV1'.
MOVE sy-ucomm TO gv_ucomm.
IF save_ok IS INITIAL.
CALL SCREEN '0100'.
ENDIF.
WHEN 'AV2' OR 'AV3'.
MOVE sy-ucomm TO gv_ucomm.
CALL SCREEN '0200'.
ENDCASE.

3. Screen 100

PROCESS BEFORE OUTPUT.
MODULE status_0100.
MODULE pbo_0100.

CALL SUBSCREEN sel INCLUDING sy-repid '0101'.

PROCESS AFTER INPUT.

MODULE save_ok.
CALL SUBSCREEN sel.
MODULE user_command_0100.
MODULE cancel AT EXIT-COMMAND.

4. Impossible to open extension

=> Can you please help me and explain me why the extension can not be opened ?

Thanks in advance for your help.

6 REPLIES 6

matt
Active Contributor
300

Your image isn't visible, and when you post code, please use the handy code button in the editor.

300

https://answers.sap.com/questions/10376006/select-options-in-subscreen.html

Look at this for better understanding, thank you!!

Is that what you want?

If yes, sample code:

DATA spfli_wa TYPE spfli.
************************************************************************
SELECTION-SCREEN BEGIN OF BLOCK sel .
************************************************************************
SELECTION-SCREEN SKIP.
*---------------------------* TABSTRIP *-------------------------------*
SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 7 LINES.
SELECTION-SCREEN TAB (30) title1 USER-COMMAND ucomm1 DEFAULT SCREEN 1001.
SELECTION-SCREEN TAB (30) title2 USER-COMMAND ucomm2 DEFAULT SCREEN 1002.
SELECTION-SCREEN END OF BLOCK tabb1.
*-------------------------* --------- *-------------------------------*
SELECTION-SCREEN END OF BLOCK sel.
*-------------------------* SCREEN 1001 *------------------------------*
SELECTION-SCREEN: BEGIN OF SCREEN 1001 AS SUBSCREEN .
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE title.
SELECT-OPTIONS s_carrid FOR spfli_wa-carrid.
SELECTION-SCREEN: END OF BLOCK b1 .
SELECTION-SCREEN: END OF SCREEN 1001 .
*-------------------------* --------- *-------------------------------*
*-------------------------* SCREEN 1002 *------------------------------*
SELECTION-SCREEN: BEGIN OF SCREEN 1002 AS SUBSCREEN .
SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE titlex.
SELECT-OPTIONS s_carri FOR spfli_wa-carrid.
SELECTION-SCREEN: END OF BLOCK b2 .
SELECTION-SCREEN: END OF SCREEN 1002 .
*-------------------------* --------- *-------------------------------*
************************************************************************
INITIALIZATION.
************************************************************************
title1 = 'Tab 1'.
title2 = 'Tab 2'.
Kind Regards

300

Please edit your answer, select your code and press the button [CODE], which makes the code appear colored/indented, it will be easier for people to look at it. Thank you!

300

Thank you updated.

Sandra_Rossi
Active Contributor
0 Kudos
300

Please edit your question, select your code and press the button [CODE], which makes the code appear colored/indented, it will be easier for people to look at it. Thank you!

raymond_giuseppi
Active Contributor
0 Kudos
300

Read the online help for SELECTION-SCREEN, TABBED BLOCK and look at demo report DEMO_SEL_SCREEN_WITH_TABSTRIP.