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

Regarding MODIF ID

Former Member
0 Kudos
636

The Selection screen will have three Radio Buttons,

1.Create/ Upload Customer

2.Change Customer

3.Extend Customer

Once the authorized person, select the right option, the other two option should become Grayed out/ inactive.

Please let me know if anyboy have some idea.

7 REPLIES 7
Read only

Former Member
0 Kudos
547

Hi!

The requirement appears to be weird!! What happens if the user by mistake, selects the wrong radio-button? He can no more change the selection?!?!?

Technically, I don't think it is possible as all the radio-buttons belong to the same group, hence, cnt be controlled individually.

Cheers!

Read only

Former Member
0 Kudos
547

select-options: s_vkorg for vbak-vkorg modif id org,

s_matkl for vbap-matkl modif id not,

s_erdat for vbak-erdat modif id gre.

AT SELECTION-SCREEN OUTPUT.

loop at screen.

IF cus = ' ' and screen-group1 = 'GRE'.

screen-input = 0.

modify screen.

ENDIF.

endloop.

loop at screen.

IF cu = ' ' and screen-group1 = 'ORG'.

screen-input = 0.

modify screen.

ENDIF.

endloop.

Read only

Former Member
0 Kudos
547

Find below code for 2 radio buttons...

----


  • S E L E C T I O N S C R E E N

----


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

SELECTION-SCREEN : BEGIN OF LINE.

PARAMETERS: RB_APPN RADIOBUTTON GROUP RAD1 DEFAULT 'X' USER-COMMAND RAD.

SELECTION-SCREEN COMMENT 3(25) TEXT-030.

PARAMETERS: RB_PRTN RADIOBUTTON GROUP RAD1.

SELECTION-SCREEN COMMENT 32(20) TEXT-031.

SELECTION-SCREEN : END OF LINE.

SELECTION-SCREEN END OF BLOCK FILE.

----


  • A T S E L E C T I O N - S C R E E N O U T P U T

----


AT SELECTION-SCREEN OUTPUT.

PERFORM F_MODIFY_SCREEN.

&----


*& Form F_MODIFY_SCREEN

&----


  • text

----


FORM F_MODIFY_SCREEN .

*-- For Output Options

IF RB_PRTN = 'X'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'RB_APPN' .

SCREEN-OUTPUT = 1.

SCREEN-INPUT = 0.

SCREEN-ACTIVE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

IF RB_APPN = 'X'.

LOOP AT SCREEN.

IF SCREEN-NAME = 'RB_PRTN' .

SCREEN-OUTPUT = 1.

SCREEN-INPUT = 0.

SCREEN-ACTIVE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

ENDFORM. " F_MODIFY_SCREEN

Read only

asik_shameem
Active Contributor
0 Kudos
547

Hi Try like this...

REPORT  ztest                                   .

PARAMETERS: a RADIOBUTTON GROUP radi USER-COMMAND abcd,
            b RADIOBUTTON GROUP radi,
            c RADIOBUTTON GROUP radi .

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
  IF a = 'X'.
    IF screen-name = 'B' OR screen-name = 'C'.
      screen-input = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDIF.
ENDLOOP.

Read only

Former Member
0 Kudos
547

Hi,

The feature of radiobutton is that only one radiobutton of same group can be selected at a time.

So once you select first button, others will be having ' ' value.

Just execute this code snippet.

PARAMETERS: s_vkorg RADIOBUTTON GROUP r1,

s_matkl RADIOBUTTON GROUP r1,

s_erdat RADIOBUTTON GROUP r1.

Thanks

Nitesh

Read only

Former Member
0 Kudos
547

Hi,

Try like this:

PARAMETERS: A RADIOBUTTON GROUP GP1 MODIF ID AA,

B RADIOBUTTON GROUP GP1 MODIF ID BB,

C RADIOBUTTON GROUP GP1 MODIF ID CC.

AT SELECTION-SCREEN OUTPUT .

LOOP AT SCREEN.

IF A = 'X'.

IF SCREEN-GROUP1 NE 'AA'.

SCREEN-INPUT = '0'.

ENDIF.

ELSEIF B = 'X'.

IF SCREEN-GROUP1 NE 'BB'.

SCREEN-INPUT = '0'.

ENDIF.

ELSEIF C = 'X'.

IF SCREEN-GROUP1 NE 'CC'.

SCREEN-INPUT = '0'.

ENDIF.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Regards,

Bhaskar

Read only

0 Kudos
547

Hi

Thanks a lot Bhaskar.

Thanks

Adaikalaraj.