Skip to Content

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

Radio button logic required

Hi all,

I have select option and two radio buttons. if i click one radio bution it will allow to enter some value inthe input selection box, if i click 2nd radiobutton that time it wont allow to enter values in the input selection box. pls if anyone having idea of the logic or give me idea.

Point will be sure.

Mohana.

Tags:
Former Member
Former Member replied

Hi

Check this:

This is an example code...on how to grey out the option.

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

*SELECTION-SCREEN SKIP 2.

PARAMETERS: FLATF RADIOBUTTON GROUP RAD1 USER-COMMAND X,
            UNIXF RADIOBUTTON GROUP RAD1 .

*SELECTION-SCREEN SKIP 2.
*
*SELECTION-SCREEN SKIP 2.


parameters: P_FNAME type RLGRAP-FILENAME MODIF ID P1,
            UNIXFILE type RLGRAP-FILENAME MODIF ID P2.
SELECTION-SCREEN SKIP .
selection-screen ULINE.
SELECTION-SCREEN: BEGIN OF LINE.

SELECTION-SCREEN POSITION 20.
parameters TESTRUN AS CHECKBOX default 'X'.

SELECTION-SCREEN: END OF LINE.


SELECTION-SCREEN END OF BLOCK B1.
********************************************


***********AT SELECTION SCREEN
AT SELECTION-SCREEN.


AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF FLATF = 'X'.
      IF SCREEN-GROUP1 = 'P2'.
        SCREEN-INPUT = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.

    IF UNIXF = 'X'.
      IF SCREEN-GROUP1 = 'P1'.
        SCREEN-INPUT = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
  ENDLOOP.

Regards,

VIshwa.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question