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

Disable Radio button based on T-code

Former Member
0 Likes
1,028

There is one selection screen with two t-codes assigned to it. When the first is run , the selection screen should display the radio button and when the second t-code is run , the screen should hide the radio buttons and also disable them .

How to do this ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
692

Like this:

REPORT ztest MESSAGE-ID 00.

PARAMETERS    : r_1     RADIOBUTTON GROUP rad   MODIF ID nch,
                r_2     RADIOBUTTON GROUP rad   MODIF ID nch.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-group1 = 'NCH'.
      IF sy-tcode = 'SE38'.
        screen-invisible = '1'.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
  ENDLOOP.

Rob

1 REPLY 1
Read only

Former Member
0 Likes
693

Like this:

REPORT ztest MESSAGE-ID 00.

PARAMETERS    : r_1     RADIOBUTTON GROUP rad   MODIF ID nch,
                r_2     RADIOBUTTON GROUP rad   MODIF ID nch.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-group1 = 'NCH'.
      IF sy-tcode = 'SE38'.
        screen-invisible = '1'.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
  ENDLOOP.

Rob