‎2008 Mar 26 11:32 AM
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.
‎2008 Mar 26 11:41 AM
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.
‎2008 Mar 26 11:43 AM
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....