‎2010 May 03 11:27 AM
Dear gurus,
I have created a table control of my internal table "i_main" using Screen Painter's table control wizard. I have made all fields editable via double clicking the field, clicking Program, then Input = Possible.
My i_main table and table control contains the following fields:
hunit TYPE vekp-vpobjkey.
printno TYPE i.
groupno TYPE i.
batch TYPE mseg-charg.
qtyTYPE mseg-menge.
After my program has populated i_main table control, I now want to manually override the contained values in i_main and my table control z_init. When I type in a new value for my quantity column, for example I change 22 to 5. It goes back to 22, and nothing happens.
Any advice on what should I do to update fields of my table control, as well as i_main?
Thank you very much!
‎2010 May 03 11:34 AM
in pai event.
loop at iternaltable.
module move_to_table ON CHAIN-REQUEST.
endloop.
module move_TO_TABLE.
MODIFY IT FROM WA_ZTBCTRL INDEX ZTBCTRL-CURRENT_LINE.
ENDMODULE.
‎2010 May 03 11:34 AM
in pai event.
loop at iternaltable.
module move_to_table ON CHAIN-REQUEST.
endloop.
module move_TO_TABLE.
MODIFY IT FROM WA_ZTBCTRL INDEX ZTBCTRL-CURRENT_LINE.
ENDMODULE.
‎2010 May 04 2:28 AM
Thank you very much Keshav! I can now update my internal table through table control. Hope this information helps others too. Thanks
-Mozart