2008 Oct 08 12:26 PM
Hi,
I have some data in ITAB.
This data , I am displaying in a scree-table control.
In the screen, I am changing some fileds.
When I press SAVE, I need to modify the ITAB with values from the Table Control.
Can U plz write the solutions?
Thanks
If you used the wizard to create the table control, then all is taken care of (and you don't need to press SAVE).
2008 Oct 08 12:27 PM
If you used the wizard to create the table control, then all is taken care of (and you don't need to press SAVE).
2008 Oct 08 12:29 PM
Hello,
Take a look on this: [Table Control|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1499ec90-0201-0010-769f-860989655f7e]
Regards.
2008 Oct 08 12:35 PM
Hi,
You write a module in PAI.
Inside the module:
loop at your itab into wa..
wa-contains modified values..
modify itab from wa transporting fields...
Regards..
2008 Oct 08 12:41 PM
hi narendra,
this code helps you.
loop at itab.
move-corresponding itab to dbtab.
modify dbtab.
endloop.
thanks
Sachin
2008 Oct 08 2:58 PM
Write this code
PROCESS AFTER INPUT.
Loop at table_control.
MODULE UPDATE_DATA.
endloop.
MODULE UPDATE_DATA INPUT.
MODIFY itab INDEX table_control-current_line.
ENDMODULE.
This will update your internal table with the table control contents whenever the PAI gets triggered.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |