Skip to Content
0
Former Member
Feb 18, 2009 at 07:36 PM

Table Maintainence Events

38 Views

I had 7 fields in my Ztable

Field 1 -


Key

Field 2 --- Non Key

Field 3 -- Non Key

CREATED_DATE,MODIFIED_DATE,CREATED_BY,MODIFIED_BY

Iam having issue with the changing an entry,But if i change an entry for the non key fields, the modified date and modified by are not updating with the new values.....I tried it by using events 18,02,01.

See my code as below.

FORM

CLEAR EXTRACT.

LOOP AT TOTAL.

CHECK <ACTION> = AENDERN.

READ TABLE EXTRACT WITH KEY TOTAL.

IF SY-SUBRC = 0.

EXTRACT+62(8) = SY-DATUM.

EXTRACT+82(12) = SY-UNAME.

ENDIF.

MODIFY EXTRACT FROM EXTRACT INDEX SY-TABIX.

ENDLOOP.

ENDFORM.

Please suggest me where iam doing wrong.

Regards

Srinivas Manda