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

Customizing table column grey option

Former Member
0 Likes
599

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

3 REPLIES 3
Read only

Former Member
0 Likes
561

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.

Read only

Former Member
0 Likes
561

you can achive this by table maintenance generatior.you have you code your logic in PBO and PAI.

Search SDN on this.

Read only

Former Member
0 Likes
561

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