‎2007 Apr 19 9:59 AM
Hi Gurus,
I getting some records from Ztable and displaying them using Table control. If the user made changes for some records it should be updated in Ztable also.
how can i do this? can someone help regarding this.
‎2007 Apr 19 10:02 AM
Hi,
Check this link.In that,I am explaining exactly the similar scenario.
Kindly reward points by clicking the star on th eleft of reply,if it helps.
‎2007 Apr 19 10:06 AM
hi
REFER CODE:
HERE ZDEMO IS DATABASE TABLE.
T_ZDEMO IS INTERNAL TABLE.
IN PAI
LOOP WITH CONTROL TC_EMP.
MODULE MODIFY_DATA.
ENDLOOP.
MODULE MODIFY_DATA INPUT.
MODIFY T_ZDEMO FROM ZDEMO INDEX tc_emp-current_line.
ENDMODULE. " MODIFY_DATA INPUT
REGARDS
SANTOSH
‎2007 Apr 19 10:20 AM
hai..
You can update data base table in loop with control in pai and in internal table at the same time using modify statement.
in pai
loop at t_table.
module modify .
endloop.
In module you can change values.
regards,
veeresh