Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Help on Change document

Former Member
0 Likes
866

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
773

Can any please give a some example code which has multiple change document fields as code example.

5 REPLIES 5
Read only

Former Member
0 Likes
774

Can any please give a some example code which has multiple change document fields as code example.

Read only

0 Likes
773

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

Read only

0 Likes
773

Hi Harish,

Thanks for asking the user not to just paste the link with out giving explanation.

Regards,

Lisa

Read only

0 Likes
773

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

Read only

0 Likes
773

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