‎2008 Mar 19 1:29 PM
Hi!
I would like to solve this problem.
On my screen there is a checkbox and some edit fields.
If the checkbox is checked, the edit fields have to be editable, if unchecked, the edit fields have to be read only.
This is working now, but only if I press ENTER after choosing the checkbox!!!
I would like to use a solution, which makes this functionality, just with clicking on the checkbox.
So if I check the checkbox, all edit fields are set to enabled, without pressing enter or any other buttons.
Any options??
Thank you
Tamá
‎2008 Mar 19 1:43 PM
Hi
U need to assign an OK-CODE to your checkbox field, in this way the PAI and then PBO will be triggered as soon as the user checks the field.
Max
‎2008 Mar 19 1:43 PM
Hi
U need to assign an OK-CODE to your checkbox field, in this way the PAI and then PBO will be triggered as soon as the user checks the field.
Max
‎2008 Mar 19 1:45 PM
hi Tamás,
you have to enter something into the function code field of the checkbox (on the screen definition page), then it will trigger the PBO event (the PAI as well).
hope this helps
ec
‎2008 Mar 19 1:46 PM
In SE51..for the check box in the attributes window u will find FCODE field give some FCODE and write the logic in PAI..
If it is a selection screen then
Parameters: P_CHK as Checkbox User-command ucomm.
should do
santhosh
‎2008 Mar 19 1:48 PM
parameters : v_check as checkbox user-command usr1.
select-options : s_test1 for sy-datum modif id AB.
at selection-screen output .
if v_check = 'X'.
loop at screen.
if screen-group1 = 'AB'.
screen-input = '0'.
endif.
modify screen.
endloop.
endif.