Skip to Content
0
Mar 09, 2009 at 05:16 AM

How to use Change doc Function Module?

1282 Views

Fn mod:ZSUBTESTCHG_WRITE_DOCUMENT

Import parameters Value

OBJECTID ZSUBTESTCHG

TCODE SE37

UTIME 00:00:00

UDATE 09.03.2009

USERNAME 'TESTUSER'

PLANNED_CHANGE_NUMBER

OBJECT_CHANGE_INDICATOR I

PLANNED_OR_REAL_CHANGES R

NO_CHANGE_POINTERS

UPD_ICDTXT_ZSUBTESTCHG I

N_ZSUBTEST 2 TEST

O_ZSUBTEST 2 TEST

UPD_ZSUBTEST I

Tables Value

ICDTXT_ZSUBTESTCHG 0 Entries

I have a ztable 'ZSUBTEST' with 2 fields DEPTID and DEPNAME and ticked "change document" for data element.

I have created the above change doc write fn module. I am trying to insert a new reocrd into table.

How to use ZSUBTESTCHG_WRITE_DOCUMENT so that even if i try to change an existing record in ztable the old and new values for a particulat ztable will be filled in CDPOS Table.

Would appreciate if you can suggest me how to use in1) Update and 2) Insert scenarios.

Thanks,

Subba