Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Disable Radio button based on T-code

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 ?

Tags:
Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question