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 field disable

Former Member
0 Likes
734

Hi All,

I have a report with a selection screen having a check box,cost centre,vendor no and other fields. My requirment is when the user clicks the check box the vendor no and the cost centre input should be enabled.I have written the below code but the AT SELECTION-SCREEN OUTPUT is getting triggred only during PBO but not during PAI when the user clicks the check box.plz help.

AT SELECTION-SCREEN OUTPUT.

IF p_check EQ 'X'.

LOOP AT SCREEN.

IF screen-name = 'FLIEF' OR screen-name = 'KOSTL'.

screen-active = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDIF.

Thanks,

Rakesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
693

Hi Rakesh,

Assign a user command to the checkbox

so the event will get triggered

also use screen-Input = '1'.

Hope this will help...

Regards,

Gaurav

4 REPLIES 4
Read only

hymavathi_oruganti
Active Contributor
0 Likes
693

USE THE FUNCTION MODULE

DYPRO_VALUES_GET using which u can the check box value entered,

use the logic, if check box is blank make inactive.

or else insetad of above, u can use radiobuttons logic .

u declare USER-COMMAND with radiobutton declaration and check for value = 'X'.

Read only

Former Member
0 Likes
694

Hi Rakesh,

Assign a user command to the checkbox

so the event will get triggered

also use screen-Input = '1'.

Hope this will help...

Regards,

Gaurav

Read only

Former Member
0 Likes
693

Hi,

write it in AT SELECTION-SCREEN event also.

then it will surely work fine

rgds,

bharat.

Message was edited by:

Bharat Kalagara

Read only

Former Member
0 Likes
693

hi,

Assing modif for the fields and write the relevant code in AT USER COMMAND IT will work

Reward points if it i helpful.

Regards,

Sangeetha.A