Skip to Content
0
Former Member
Sep 18, 2007 at 12:18 PM

How to Maintain Values in the Table control?

207 Views

Hi,

I'm Saikumar.

I've done a table control program.

When I click SAVE or ENTER Button, the values are getting saved into the database(This is working alright)......but when I click those buttons, The values entered in the table control are getting cleared.

What should I do in order to have those values in the table control itself when I click SAVE/ENTER? (I need to create multiple records at a time)

What I've done is:

IF sy-ucomm = 'SAVE' OR sy-ucomm = 'ENTR'.

INSERT into <database table> values wa_matgl.

MODIFY it_matgl from wa_matgl INDEX tc1-current_line. "tc1 is the table control name.

Refresh it_matgl.

endif.

I tried many ways but the vales are getting cleared in the table control? (I need to create multiple records at a time).

Please suggest a way to overcome it.

Thanks in advance,

saikumar