‎2012 Feb 16 4:49 AM
Hi All,
I need help on Change document.
I have custome table, my requirement is ,i need to track the chnages to all fields in the cutom table.
So i have created chnage document object id.
So in my program if i am doing any modify or delete i need to track the changes.
So i am using the FM which was generated during creation of change document object id in my program in order to track chnages but after executing my program i am unable to see any entries in CDHDR and CDPOS
Can any one help me
Here is the piece of code.
PERFORM write_document USING 'ZXXXX' 'ZXX_CSX' 'D'.
FORM write_document USING p_objectid p_tcode p_upd_type.
DATA: lt_dummy LIKE cdtxt OCCURS 0.
CALL FUNCTION 'ZXXXX_WRITE_DOCUMENT'
EXPORTING
objectid = p_objectid
tcode = p_tcode
utime = sy-uzeit
udate = sy-datum
username = sy-uname
* PLANNED_CHANGE_NUMBER = ' '
object_change_indicator = p_upd_type
* PLANNED_OR_REAL_CHANGES = ' '
* NO_CHANGE_POINTERS = ' '
* UPD_ICDTXT_ZMD0036 = ' '
upd_zmd0036 = p_upd_type
TABLES
icdtxt_zXXXX = lt_dummy
xZXXXX = xzXXXX
yzXXXX = yZXXXX
.
ENDFORM. " WRITE_DOCUMENT
Regards,
Lisa
‎2012 Feb 16 5:11 AM
Can any please give a some example code which has multiple change document fields as code example.
‎2012 Feb 16 5:11 AM
Can any please give a some example code which has multiple change document fields as code example.
‎2012 Feb 16 5:39 AM
Hi,
Hope the following links may help you.
<removed by moderator>
Moderator message: please do not post just link(s) without explaining the relevance.
Edited by: Thomas Zloch on Feb 16, 2012
‎2012 Feb 17 3:34 AM
Hi Harish,
Thanks for asking the user not to just paste the link with out giving explanation.
Regards,
Lisa
‎2012 Feb 17 3:42 AM
Hi Thomas,
Thanks for asking the user not to just paste the link with out giving explanation.
Please replace the WIKI SDN link provided by the user it has a very good explanation. I am not supporting to paste links with out explanation but this WKI SDN link has good information.
Harish,
You solution worked for me. Wiki SDN link is really good with proper explanation but where as sap technical link provided is not good. With sap technical link i can not figure out where exactly i am doing the mistake in code.
Wiki sdn link has configuration steps and code explanation.
Regards,
Lisa
‎2012 Feb 17 12:17 PM
The link was
http://wiki.sdn.sap.com/wiki/display/ABAP/ABAP-DataChangeTrackerforCustom+Tables#ABAP-DataChangeTrackerforCustomTables-Stepbystepexplanationoncreationofchangedocumentobject
In the future, please make sure to search for such information before posting.
Thomas