‎2010 Mar 11 7:36 AM
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
‎2010 Mar 11 7:45 AM
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.
‎2010 Mar 11 9:14 AM
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.
‎2010 Mar 11 7:51 AM
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.
‎2010 Mar 11 7:51 AM
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®
‎2010 Mar 19 8:04 AM