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

Checkbox event

Former Member
0 Likes
496

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

2 REPLIES 2
Read only

Former Member
0 Likes
417

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

Read only

Former Member
0 Likes
417

Thanks,

after a second and thirt try I finally got it right,

this problem is solved.