‎2007 Apr 26 5:27 PM
Hello experts,
I'm fairly unknown with ABAP so it'll probably be an easy one.
I have a screen which I eddited with screen painter. I added 1 checkbox and 1 field which is a textfield. So far so good.
The idea is that when the checkbox is false the textfield is not visible. But when you activate it (mark the checkbox) it'll be visible.
So there must be a check when you load the screen and when you edit the screen.
I've tried a lot in the bapi but I didn't succeed yet.
I also read that it'll probably only be possible when a enter is pressed after the editting but that will be fine.
kind regards,
Wim
‎2007 Apr 26 5:36 PM
Hi,
In the attributes of the check box field..
THere is a input field "FctCode", give a function code..Ex..'CHECK1'.
THen activate the code..
Now if you don't have to press the enter event..
By pressing the check box itself the PAI and PBO event will be triggered..
If you want to disable an input field..
check this..
In the PBO..
LOOP AT SCREEN..
IF SCREEN-NAME = 'INPUT FIELD' AND CHECKBOX = 'X'.
SCREEN-INPUT = '0'.
MODIFY SCREEN..
ENDIF.
ENDLOOP.
Thanks,
Naren
‎2007 Apr 27 11:10 AM
Thanks,
after a second and thirt try I finally got it right,
this problem is solved.