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 help

Former Member
0 Likes
887

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
860

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.

7 REPLIES 7
Read only

FredericGirod
Active Contributor
0 Likes
860

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

Read only

Former Member
0 Likes
860

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.

Read only

Former Member
0 Likes
860

hi,

check this program <b>demo_sel_screen_as_subscreen</b>

<b> demo_sel_screen_with_subscreen</b>

regards

vijay

Read only

Former Member
0 Likes
861

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.

Read only

Former Member
0 Likes
860

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.

Read only

Former Member
0 Likes
860

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

Read only

Former Member
0 Likes
860

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 ..