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

Reading Values from a Table Control

Former Member
0 Likes
692

I have an internal table, which display certain values for matnr. Im inputting some values for another field correspoding to this matnr. How do i take these values from the table control on the screen to my internal table ..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
662

In the Table Control Loop in PAI Event, insert following code.

modify internal table from work area index table control-current_line.

6 REPLIES 6
Read only

Former Member
0 Likes
662

if u have the internal table which is reflected in table control and when u enter values in this TC and say on enter, the values gets reflected in the internal table which can be used for further processing.

Read only

0 Likes
662

Well I have an internal table, three of fields are displayed and fourth is for input.

When i input values and press save suppose.. then these values must be stored in an internal table rather the same internal table, .

Read only

Former Member
0 Likes
663

In the Table Control Loop in PAI Event, insert following code.

modify internal table from work area index table control-current_line.

Read only

0 Likes
662

not working

Read only

0 Likes
662

Lets say your internal table name for table control is t_stock and table control name is tc_material.

in the PAI of Screen you would have something like this:

LOOP AT T_STOCK.

FIELD .......

*Insert a module here.

MODULE UPDATE_VALUES_TO_IT.

ENDLOOP.

and in the Module UPDATE_VALUES_TO_IT you should code .....

modify t_stock from wa_stock index tc_material-current_line.

hope this would help u.

regards,

Mahesh

Read only

0 Likes
662

ya its working fine, Thanks a lot