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: 

Disable Radio button based on T-code

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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