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

selection screen

Former Member
0 Likes
725

How to disable the text box in the selection screen after clicking a radio button..Can anyone help me with the code

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
705

use screen internal table

under at selection-screen output event.

8 REPLIES 8
Read only

amit_khare
Active Contributor
0 Likes
705

AT SELECTION SCREEN OUTPUT.

if V_RADIO = 'X'.

LOOP at screen.

if screen-name = 'V_CHECK'.

screen-active = '0'.

screen-input='0'.

endif.

modify screen.

endloop.

endif.

regards,

Amit

reward all helpful replies.

Read only

Former Member
0 Likes
706

use screen internal table

under at selection-screen output event.

Read only

Former Member
0 Likes
705

PARAMETERS : R1 RADIOBUTTON GROUP R USER-COMMAND ABC,

R2 RADIOBUTTON GROUP R.

parameters : p_text1(10),

p_text2(10).

AT SELECTION-SCREEN OUTPUT.

if R1 Eq 'X'.

LOOP AT SCREEN.

IF SCREEN-name = 'P_TEXT2'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

elseif R2 = 'X'.

LOOP AT SCREEN.

IF SCREEN-name = 'P_TEXT1'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

endif.

Read only

former_member196299
Active Contributor
0 Likes
705

hi Mahesh,

try this logic ...

AT SELECTION SCREEN OUTPUT.

if radiobutton = 'X'.

loop at screen .

if screen-name = 'CHECK'.

screen-input = '0'.

modify screen.

endif.

endloop.

endif.

hope this helps !

Regards,

Ranjita

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
705

Hi,

Try this code.

PARAMETERS : R1 RADIOBUTTON GROUP Rad USER-COMMAND usr,

R2 RADIOBUTTON GROUP Rad,

p_text.

at selection-screen output.

loop at screen.

if r1 = 'X' and screen-name = 'P_TEXT'.

screen-input = '1'.

modify screen.

elseif r2 = 'X' and screen-name = 'P_TEXT'.

screen-input = '0'.

modify screen.

endif.

endloop.

Read only

Former Member
0 Likes
705

AT SELECTION SCREEN OUTPUT.

if radiobutton = 'X'.

loop at screen .

if ur screen-name = 'CHECK'.

screen-input = '0'.

modify screen.

endif.

endloop.

endif.

i think this will help u.

Read only

Former Member
0 Likes
705

Hi,

Check this..

PARAMETERS: P_C1 AS CHECKBOX USER-COMMAND USR MODIF ID M1.

PARAMETERS: P_INPUT(10).

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'M1' AND P_C1 = 'X'.

<b>* Disable for input.</b>

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Thanks,

Naren

Read only

Former Member
0 Likes
705

thanks guya