‎2009 Dec 04 7:23 PM
Hi,
I have requirement as follows.
Let say i have a customizing table with 5 columns and in column 1 only 2 input values are possible.
if input is 1 in column 1 than my req. is column 4 and 5 should be greyed out (i.e no input values possible).
if input is 2 in column 1 than column 2 and 3 should be greyed out.
Is is possible to do if so how??
Thanks for the input.
Regards,
Rajesh
‎2009 Dec 05 5:07 AM
Hi Rajesh,
As per my understanding, the columns 4 and 5 selection should be done dynamically based on the input values of column 1. But there is a drawback in SAP GUI regarding this. After the values are selected in the column 1, a PAI Event needs to be triggered in the module pool to dynamically select the columns 4 and 5. That means after selecting the values in the Screen, the user has to press ENTER (which will trigger a Function Code) and hence in PAI the subsequent code can be executed for the dynamic selection logic.
As an alternative, you can try the checkbox option which will trigger a PAI event upon checking and unchecking it.
Hope this helps.
Thanks,
Samantak.
‎2009 Dec 05 5:23 AM
you can achive this by table maintenance generatior.you have you code your logic in PBO and PAI.
Search SDN on this.
‎2009 Dec 06 4:53 AM
Hi,
You have to use table maintanenece events for this.
First create a function group and use the function group to create a table maintainnece generator for the table.
In SE80 you can check for the function group program.
In the screens you can add your code in PAI and PBO modules.
for disabling fields you have to use this:-
Loop at screen.
screen-active = '1'.
endloop.
Regards,
Subhashini