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

update table control dynamically

Former Member
0 Likes
711

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!

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
506

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.

2 REPLIES 2
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
507

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.

Read only

0 Likes
506

Thank you very much Keshav! I can now update my internal table through table control. Hope this information helps others too. Thanks

-Mozart