‎2007 Mar 07 10:07 AM
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
‎2007 Mar 07 10:12 AM
Hi Vaibhav,
chk this program if it can help you
<b>DEMO_SEL_SCREEN_AS_SUBSCREEN</b>
‎2007 Mar 07 10:13 AM
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
‎2007 Mar 07 10:29 AM
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
‎2007 Mar 07 10:34 AM
‎2007 Mar 07 10:14 AM
Hello,
Chekc this demo report:
<b>DEMO_SEL_SCREEN_AS_SUBSCREEN</b>
Vasanth