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

TABLE CONTROL

Former Member
0 Likes
318

Hi i want to add records in table control at run time in screen painter. how i add these because when i adding first record its ok,but when i add second record in second row the first record is flush out when i press enter button

so what is solution for that.

2 REPLIES 2
Read only

Former Member
0 Likes
298

Hi,

In the PAI of the screen( that is containing the Table control), add the code that adds the content of the table control in the internal table.

Say, when u press enter-

the control goes to the PAI.

in the PAI,

check if ucomm value is enter..

then read the table control value and update the internal table.

Hope this explaination helps.

Read only

Former Member
0 Likes
298

hi,

have u created table control by WIZARD..?

make one module in PAI in LOOP ENDLOOP between CHAIN ENDCHAIN

PROCESS AFTER INPUT.

TABLECONTROL 'TAB1'

LOOP AT i_mat.

CHAIN.

FIELD i_mat-matnr.

FIELD i_mat-meins.

MODULE tab1_modify ON CHAIN-REQUEST.

ENDCHAIN.

ENDLOOP.

MODULE tab1_modify INPUT.

APPEND i_mat.

ENDMODULE. "TAB1_MODIFY INPUT

here i_mat is my internal table from which i have created table control....

reward if usefull....