‎2007 May 09 6:48 AM
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.
‎2007 May 09 6:51 AM
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
‎2007 May 09 6:51 AM
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'.
‎2007 May 09 6:51 AM
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
‎2007 May 09 6:53 AM
Hi,
write it in AT SELECTION-SCREEN event also.
then it will surely work fine
rgds,
bharat.
Message was edited by:
Bharat Kalagara
‎2007 May 09 6:53 AM
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