‎2012 May 15 2:54 PM
Hi All,
i have a problem i.e
in my module pool screen i have a drop down box, in that drop down box is having 4 values , and in the same screen one table control is there which is having 10 fields .
when i click on first value of drop down box then in the table control : some of the fields should be mandatory and some of the fields are normal
my problem is :
when i click on 4th value of drop down list box , in the table control first two fields are going to dissaper mode as per requirement it is ok, but again i click on first value of drop down list box these , in the table control first two fiels should be mandatory but for me these two fields are shown normal fields only
how to slove this problem?
simply when we shuffling the values in the drop down list box beow table control fields should be changes as mandetory
‎2012 May 15 3:10 PM
You can assign a function code to a list box field. In this case, the PAI event is triggered as soon as the user chooses a value from the list, and the function code is placed in the SY-UCOMM and OK_CODE fields.
Then you can compare the values. If its the 4th one , then do a check to see if the first 2 fields are filled or not.
‎2012 May 15 3:10 PM
Hi VSRE,
Did you debug to see what is happening in the background? Have a break-point in the PBO modules and check the screen modification codes.
Regards,
Karthik D
‎2012 May 15 3:10 PM
‎2012 May 15 3:26 PM
Hi,
In the screen, assign function code to the 4 dropdown values by going to the attributes to the dropdowns.Then in PAI you can check for sy-ucomm values and perform the functions you want for each option in the dropdown.
You can refer to the below link for further help:
http://scn.sap.com/thread/2128554
Hope it serves useful to you.
‎2012 May 16 6:45 AM
Thank u very much for u r valuable suggestions, I got the output