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

issue with checkbox in module pool program

Former Member
0 Likes
973

Hi Guys,

I am writing a module pool program in which i have a checkbox. Now when i select the checkbox i want a certain field to get disabled. I am achieving this part by loop through the screen in the PBO event. But then when i select the checkbox The PAI executes and performs some validations on other screen field which is a business area field that comes after the checkbox. I don't want this validation to fire. How do i go about controlling it. It is a mandatrory field validation. Kindly help me with a suitable response. Thanks

5 REPLIES 5
Read only

Former Member
0 Likes
648

Hi,

Dont make that field has manditory. Instead display a message programatically to the user if the data is not entered.

Otherwise firs the validation will go to the manditory field first and it will block the module pool screen

Regards,

Shanmugavel Chandrasekaran.

Read only

0 Likes
648

I am doing the validation programatically, but then my cursor does not stop on that particular field instead it goes to the first field in the screen.

Read only

Former Member
0 Likes
648

hi,

if you want the mandatory field validation on the field.

don't do it manually.

in the field attribute of the field make it as "required".

hope it helps.

Read only

former_member194669
Active Contributor
0 Likes
648

You can try this way

in the properties of the checkbox (by double click on the check box in layout editor) you can find FctCode . Here you put some 3 letter word as like CHK

Then in the PAI


if sy-ucomm eq 'CHK'.
 if gv_check_box ne 'X'.  " Blank
     " do your validation here 
endif.
endif.

a®

Read only

Former Member
0 Likes
648

thanks for your useful comments