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: 

no display for selection

former_member611341
Participant
0 Kudos

hi guys....

In selection screen I have selection options,parameters and radio buttons.

Once I select one of the radio button ,some of the selection options and radio button should not be displayed ( NO DISPLAY).

how can i do that??

I used AT SELECTION-SCREEN OUTPUT and modified the screen but its not serving my purpose.

waiting for inputs....

Thanks,,,,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Follow the below steps.

1). Define a USER-COMMAND to the radio button

2). Define MODIF id to those screen elements for which you would like to hide or no display

3).

AT SELECTION-SCREEN OUTPUT.

  PERFORM f_modify_screen_fields.


FORM f_modify_screen_fields .

  LOOP AT SCREEN INTO e_screen.

    IF  p_ordchk NE c_x
   AND e_screen-group1 EQ c_bl2.

      MOVE c_0 TO e_screen-active.

    ENDIF.

    IF  p_ordsel NE c_x
   AND   e_screen-group1 EQ c_bl1.

      MOVE c_0 TO e_screen-active.

    ENDIF.

    MODIFY SCREEN FROM e_screen.

  ENDLOOP.


ENDFORM.                    " f_modify_screen_fields

Hope this helps
Cheers
VJ

4 REPLIES 4

Former Member
0 Kudos

Hi,

Follow the below steps.

1). Define a USER-COMMAND to the radio button

2). Define MODIF id to those screen elements for which you would like to hide or no display

3).

AT SELECTION-SCREEN OUTPUT.

  PERFORM f_modify_screen_fields.


FORM f_modify_screen_fields .

  LOOP AT SCREEN INTO e_screen.

    IF  p_ordchk NE c_x
   AND e_screen-group1 EQ c_bl2.

      MOVE c_0 TO e_screen-active.

    ENDIF.

    IF  p_ordsel NE c_x
   AND   e_screen-group1 EQ c_bl1.

      MOVE c_0 TO e_screen-active.

    ENDIF.

    MODIFY SCREEN FROM e_screen.

  ENDLOOP.


ENDFORM.                    " f_modify_screen_fields

Hope this helps
Cheers
VJ

Former Member
0 Kudos

Yes, it is possible

you need to use modif-id concept.

here is the sample code

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-000.

PARAMETERS: PX_AS RADIOBUTTON GROUP G1 USER-COMMAND UCOM DEFAULT 'X',

PX_PS RADIOBUTTON GROUP G1 .

SELECT-OPTIONS: S_SPART FOR G_MARA_SPART DEFAULT C_BA OBLIGATORY .

PARAMETERS: P_WERKS LIKE G_T001W_WERKS DEFAULT 4280 OBLIGATORY.

SELECT-OPTIONS: S_MMSTA FOR G_MARC_MMSTA OBLIGATORY.

SELECTION-SCREEN END OF BLOCK B1.

SELECTION-SCREEN SKIP.

SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.

SELECT-OPTIONS: S_DISPO FOR G_MARC_DISPO DEFAULT '172' OBLIGATORY.

PARAMETERS: P_STLAN LIKE G_MAST_STLAN DEFAULT C_1 OBLIGATORY.

PARAMETERS: P_FILE1 LIKE RLGRAP-FILENAME OBLIGATORY MODIF ID SC2.

PARAMETERS: P_FILE4 LIKE RLGRAP-FILENAME OBLIGATORY MODIF ID SC1.

SELECTION-SCREEN END OF BLOCK B2.

SELECTION-SCREEN SKIP.

SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-002.

SELECT-OPTIONS: S_MATKL FOR G_MARA_MATKL OBLIGATORY.

PARAMETERS: P_FILE2 LIKE RLGRAP-FILENAME OBLIGATORY MODIF ID SC2,

P_FILE5 LIKE RLGRAP-FILENAME OBLIGATORY MODIF ID SC1,

P_FILE3 LIKE RLGRAP-FILENAME MODIF ID SC2 OBLIGATORY,

P_FILE6 LIKE RLGRAP-FILENAME MODIF ID SC1 OBLIGATORY.

SELECTION-SCREEN END OF BLOCK B3.

-Pavan

former_member611341
Participant
0 Kudos

Thanks for the reply guys....

closing the thread...

former_member611341
Participant
0 Kudos

answered