Application Development 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: 

Selection screen field disable

Former Member
0 Kudos

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

Former Member
0 Kudos

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

hymavathi_oruganti
Active Contributor
0 Kudos

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'.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

write it in AT SELECTION-SCREEN event also.

then it will surely work fine

rgds,

bharat.

Message was edited by:

Bharat Kalagara

Former Member
0 Kudos

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