Skip to Content
0
Former Member
Jun 12, 2009 at 01:03 PM

not updating in ztable

159 Views

Hi all,

REPORT zevpoc_update.

TABLES : evpoc.

DATA: BEGIN OF itab OCCURS 0,

objnr LIKE evpoc-objnr,

versn_ev LIKE evpoc-versn_ev,

evpai LIKE evpoc-evpai,

datab LIKE evpoc-datab,

poc LIKE evpoc-poc,

END OF itab.

DATA : wa TYPE zevpoc.

SELECT * FROM evpoc INTO CORRESPONDING FIELDS OF TABLE itab.

LOOP AT itab.

wa-objnr = itab-objnr.

wa-versn_ev = itab-versn_ev.

wa-evpai = itab-evpai.

wa-datab = itab-datab.

wa-poc = itab-poc.

wa-date1 = sy-datum.

wa-time1 = sy-uzeit.

INSERT INTO zevpoc VALUES wa.

ENDLOOP.

my code inserts all the values from table EVPOC to ZEVPOC.

But when i update some fields in EVPOC it doesnt show in ZEVPOC.

pls help.