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

Dynpro

Former Member
0 Likes
768

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á

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
692

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

4 REPLIES 4
Read only

Former Member
0 Likes
693

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

Read only

JozsefSzikszai
Active Contributor
0 Likes
692

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

Read only

Former Member
0 Likes
692

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

Read only

Former Member
0 Likes
692

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.