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 as a subscreen

vaibhav_gorde
Explorer
0 Likes
679

Hello friends,

I have created a selection screen as a subscreen and have called it in a main screen. The subscreen is being called in the main screen and I get the expected result.

But the problem is that when I loop the main SCREEN fields then I do no get the design elements available (e.g select-options field) on the SubScreen. Please help me.

Vaibhav

5 REPLIES 5
Read only

Former Member
0 Likes
635

Hi Vaibhav,

chk this program if it can help you

<b>DEMO_SEL_SCREEN_AS_SUBSCREEN</b>

Read only

Former Member
0 Likes
635

i dont know hwere you are looping for selection screen but if you want to get the selection screen fields then do like below code.


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.

at selection-screen output.
loop at screen.
endloop.

regards

shiba dutta

Read only

0 Likes
635

Shiba,

It is SUBSCREEN and not the screen.

SELECTION-SCREEN BEGIN OF SCREEN 9110 AS SUBSCREEN.

SELECT-OPTIONS s_manout FOR erdo-manouts_in NO INTERVALS. SELECTION-SCREEN END OF SCREEN 9110.

This subscreen is called in the PBO PAI of main screen :

PBO

CALL SUBSCREEN subscreen_9110<<i>subscreen work area</i>> INCLUDING sy-repid '9110'.

PAI

CALL SUBSCREEN subscreen_9110.

..........

And I am looping the SCREEN in PAI of main screen where I do NOT get <b>s_manout</b> from subscreen (9110).

Hope, this is much clear than earlier!

Vaibhav

Read only

0 Likes
635

Try this..

CALL SELECTION-SCREEN subscreen_9110.

Read only

Former Member
0 Likes
635

Hello,

Chekc this demo report:

<b>DEMO_SEL_SCREEN_AS_SUBSCREEN</b>

Vasanth