2008 Feb 24 11:24 AM
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.
2008 Feb 25 10:48 AM
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
2008 Feb 25 10:53 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |