Skip to Content
0
Former Member
Mar 26, 2009 at 04:21 PM

Values entered in Table Control dissapearing when ENTER is pressed

36 Views

Hi Guru.

I have a requirement . The table contol that i have has three columns .We can popluate value in it from table and also add values through it to table. by pressing SAVE button. But my problem is when ever i am entering values in one row and pressing and Presssing ENTER.The values are disappering .I dont wanna save them into table ,but when ENTER is pressed it should not dissappear. from the table contol in the screen.I have used the below two different types of codes but to no avail.

1. MODIFY t_tc_qty[] FROM t_tc_qty INDEX tc100-current_line.

and also below code

2.

*DATA: WA_t_tc_qty LIKE LINE OF t_tc_qty.

*MOVE-CORRESPONDING t_tc_qty TO WA_t_tc_qty.

*MODIFY t_tc_qty[] INDEX tc100-current_line FROM WA_t_tc_qty

TRANSPORTING MANDT PROJECT PAPNR PRJ_YEAR PRJ_MONTH QTY UNIT SEL TBUDQTY.

But the above code is not working The table t_tc_qty is not getting modified and new row not getting added .The table and workarea t_tc_qty contains the line items entered.

t_tc_qty is a internal table with header line.

Please can you suggest ways to solve this problem .My entered row should PERSIST in the screen when i press enter .

Regards

Avik