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

check in table control

Former Member
0 Likes
439

Hi, in table control, I selected a row and edited it. now I have clicked save button. I wrote the code in PAI event between loop and end loop. I have set the the check filed for table control. The problem is after making changes, I am expecting 'X' for that perticular field in work area. ie. wa-chk = 'X'. When i checked in debug mode it is always space.Please tell me what I am doing wrong?

Thanks in advance.

Hi, in table control, I selected a row and edited it. now I have clicked save button. I wrote the code in PAI event between loop and end loop. I have set the the check filed for table control. The problem is after making changes, I am expecting 'X' for that perticular field in work area. ie. wa-chk = 'X'. When i checked in debug mode it is always space.Please tell me what I am doing wrong?

Thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
424

Hi Neeraja,

Check your screen for this particular selection.did you given the w/selcolumn as workarea-sel?you have to declare this 'sel' in your workarea/internal table.check your table control selection in screen painter.

1.you have to declare one 'SEL' in your internal table/workarea

2.in screen painter you check the w/selcolumn and give the value as workarea-sel.

3.modify the internal table in PAI

regards

shibu

Edited by: shibuettickal on Feb 25, 2008 11:53 AM

Read only

Former Member
0 Likes
424

Hi,

You need to code such that when you select the SELE button, the corresponding column/field in the internal table also gets updated.

Hence do the following in your PAI within the LOOP/ENDLOOP.

FIELD wa-sele MODULE md_update_sele ON REQUEST.

MODULE md_update_sele INPUT.

modify itab from wa

index sy-tabix

transporting sele.

ENDMODULE.

This should work.

Cheers,

Aditya