2006 Jan 23 9:19 AM
Hi all,
My requirement is like initially i must not see a particular screen.if i press particular button or check box... i must see the screen.How can i do this one.
Regards,
Lisa
2006 Jan 23 9:25 AM
Loop at screen and depending on their Modif ID display them using screen-active...
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.
PARAMETERS: p1(10) TYPE c,
p2(10) TYPE c,
p3(10) TYPE c.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
PARAMETERS: p4(10) TYPE c MODIF ID bl2,
p5(10) TYPE c MODIF ID bl2,
p6(10) TYPE c MODIF ID bl4.
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF show_all <> 'X' AND
screen-group1 = 'BL2'.
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
LOOP AT SCREEN.
IF screen-group1 = 'BL2'.
screen-intensified = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
2006 Jan 23 9:21 AM
Hi Lisa,
you will need to use the special structure SCREEN. Make a search of the spécial command "loop at screen".
Rgd
Frédéric
2006 Jan 23 9:22 AM
hai,
use At selection-scree poutput,
the code will be like this.
at selection-screen output.
if <Condition>.
<here you can enable or disable the screen>
modify screen.
endif.
cheers.
2006 Jan 23 9:24 AM
hi,
check this program <b>demo_sel_screen_as_subscreen</b>
<b> demo_sel_screen_with_subscreen</b>
regards
vijay
2006 Jan 23 9:25 AM
Loop at screen and depending on their Modif ID display them using screen-active...
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.
PARAMETERS: p1(10) TYPE c,
p2(10) TYPE c,
p3(10) TYPE c.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
PARAMETERS: p4(10) TYPE c MODIF ID bl2,
p5(10) TYPE c MODIF ID bl2,
p6(10) TYPE c MODIF ID bl4.
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF show_all <> 'X' AND
screen-group1 = 'BL2'.
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
LOOP AT SCREEN.
IF screen-group1 = 'BL2'.
screen-intensified = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
2006 Jan 23 9:26 AM
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF R1 = 'X' AND SCREEN-GROUP1 = 'S1'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
IF R2 = 'X' AND SCREEN-GROUP1 = 'S2'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
regards,
PAVAN.
2006 Jan 23 9:27 AM
Hi Lisa,
You can loop at screen and make the fields invisible say, for a screen-group.
Now, when the button is pressed, you can set the property visible for the same.
Regards,
Raj
2006 Jan 23 9:32 AM
Use user command for the check box. and the when it is flagged call a new screen with the fields as desired, or use a subscreen ..