Skip to Content

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

screen field disable

Hi all,

I am showing two radio buttons in the selection screen and I am disabling the screen field,when ever user click on the 1st radio button.

I am writing the logic like this

PARAMETERS : rad1 RADIOBUTTON GROUP rad1 USER-COMMAND radio DEFAULT 'X'.

PARAMETERS : rad2 RADIOBUTTON GROUP rad1

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF rad1 = 'X'.

IF screen-name = 'p_curr'.

screen-active = 0.

MODIFY SCREEN.

else

screen-active = 1.

MODIFY SCREEN.

ENDIF.

ENDIF.

ENDLOOP.

but the problem is it is disabling the screen field,i want to disable the screen field and selection text.

please tell me how to do that.

regards,

Rakesh.

Tags:
Former Member
replied
AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
IF rad1 = 'X'.
IF screen-name cs 'P_CURR'.  "<====Use CS  and also caps
screen-active = 0.
MODIFY SCREEN.
else
screen-active = 1.
MODIFY SCREEN.
ENDIF.

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