Change Document - CDHDR

HI
  I have created a transaction. I have also created a change document object for logging changes to the transaction. I have also made necessary calls in the transaction for logging the changes.
When i change the transaction or enter data manually , a change document is created in CDHDR . The problem is when i upload data into transaction using BDC sessions a change document is not created in CDHDR.
Is there any limition for change documents to be logged when we upload data using BDC, Pl help its urgent.
Suitable answers will be rewarded
Thanks and Regards,
Kasi S

I think Change Document records only the changes in the existing documents. When uploading data using BDC , it will be new data and will not be in scope of change. So probably it is not logging in the CDHDR. any change after for these uploaded docs will certainly be logged n CDHDR.
awrd points if useful
Bhupal

Similar Messages

  • Change Documents - CDHDR

    HI
    I have created a transaction. I have also created a change document object for logging changes to the transaction. I have also made necessary calls in the transaction for logging the changes.
    When i change the transaction or enter data manually , a change document is created in CDHDR . The problem is when i upload data into transaction using BDC sessions a change document is not created in CDHDR.
    Is there any limition for change documents to be logged when we upload data using BDC, Pl help its urgent.
    Suitable answers will be rewarded
    Thanks and Regards,
    Kasi S

    Where are you calling the Change Document Generation logic for your application? Check whether you are doing there when you are saving the change in application data to DB?
    Let me know more info so that i can answer your Q better.
    Thanks,
    Balaji

  • Archiving Change Documents

    Hi all,
      I am working with the archive engine. And i am using archiving classes for archiving of change documents (CDHDR/CDPOS). I have made all the customizing that has to be done in the engine. But somehow my change documents after having written into archive file are not getting deleted from the database when the delete phase is executed. Any help would be very useful.
    Thanks in Advance.
    Warm Regards,
    Naveen M

    Hi mahesh,
    i checked in the SARA transaction the DB table names include that table..
    Scenario and problem i am facing:
    I have created a archiving object to archive some data in my project.. and to archive the associated change documents i have created the archiving class... my main header table data is working properly i mean its getting archived and deleted from db also.. but unfortunately the change documents associated with them is not getting deleted after the delete phase..
    And i dont know if they are getting archived as i dont know where in the archive file browser the change documents which are archived can be found.. Even if they are getting archived why are they not getting deleted???
    Thanks in advance..
    Regards,
    Naveen M

  • Change Document for IH08 (Equip Record)

    Hello,
    I need to track some specific fields for the equipment record (EQUI) that changes over time. We are currently using Change Documents (CDHDR & CDPOS) in order to achieve this (it worked with the majority of the fields).
    We have been told that we also need to track when an equipment change it status, for instance, the equipment has change from Active (ACTV) to Inactive (INAC). I'm wondering why this type of changes are not being populated neither in the CDHDR table nor CDPOS. I also went to the IH08 transaction -> Extras -> Display Changes and is not reflected there as well.
    Is the equipment status different than the other field changes? What would be the best approach in order to track if a Equipment Status changed?
    Thanks in advance for your time and help.
    Kind Regards,
    CL

    Hi,
    It will provide the current status of equipment
    like
      select        * from  jest into jest up to 1 rows
             where  objnr  = lobjnr
             and    stat   like 'E%'
             and    inact  = space.

  • Tracking of changes - no change documents

    Hi,
    We have a case where we need to pass to another system changes to records that are stored/created/changed in SAP. The challenge we have is that standard SAP does not create a change document for us to use as a way to quickly find out what has changed. What approach do you recommend in a case where changes need to be identified and pass over to another process, yet SAP does not store changes documents (CDHDR, CDPOS). Is usage of DBTABLOG and table logging a preferred method? Perhaps designing our own change determination logic and storing these in CDHDR/CDPOS (not sure it is possible)?
    Thank you,
    Mike

    >
    Soumyaprakash Mishra wrote:
    > even when the numebr of tables is small, you can do it easily with SCU3, what you need to check is if the tables are maintained for logging the change or not.
    True. But: The problem with SCU3 is that more than 1000 tables have the flag set by default. So if you want to use this technique for only a few tables, some other 1000 tables will also be logged. Unless of course that you delete the flag in all not required tables.
    P.S.: I just checked it in my development system: 2892 tables have the flag set by default. And this is just a small SAP_BASIS system. I guess it could be 5000 tables with the flag activated in a system with many applications installed.

  • Changa Document. Objects (CDHDR Table)

    Hi Friends,
    Can Anyone help me I want to know Change Document Object & BOR for
    GR Posting .
    Once the GR posted i want to trigger my WORKFLOW  by Customised event (ZCREATE) is it possible.
    I am Using 4.7 Version
    Thanks,
    Narayan.

    Hi Viji,
    Thanks for Reply,
    I checked in SWEL i am not received any Event.
    Do i need any setting for that.
    And is it possible to trigger the workflow with my own event (Z).
    Please tell me.....
    Thanks,
    Narayan.

  • How to use change document object ?

    Friends,
    I am learning to use the Change Document object for one of my Z table. I have created a change doc object using SCDO. I have now written a test report in which i am issuing the SELECT statement for fetching old and new values from the Z table and passing them to the FM generated by SCDO.
    I am not able to see the changes in the CDHDR and CDPOS tables. I am doubtful abt the values being passed to the FM. Here are the values i am passing:
    CALL FUNCTION 'YTEST_WRITE_DOCUMENT'
      EXPORTING
        objectid                      = 'YTEST'
        tcode                         = 'se38'
        utime                         = sy-uzeit
        udate                         = sy-datum
        username                      = sy-uname
      PLANNED_CHANGE_NUMBER         = ' '
       OBJECT_CHANGE_INDICATOR        = 'U'
      PLANNED_OR_REAL_CHANGES       = ' '
      NO_CHANGE_POINTERS            = ' '
       UPD_ICDTXT_YTEST               = 'U'
        n_ztest_cle                   = wa_ztest_cle
        o_o_ztest_cle                 = o_ztest_cle
      UPD_ZTEST_CLE                 = ' '
      tables
        icdtxt_ytest                  = itab_cdtxt.
    Is the object ID the same as the Change Document Object name ??
    Please help.
    Thanks,
    Ram.

    Well, i found a way out for the problem i was facing. I was not setting the "UPD_ZTEST_CLE " FM parameter. When i set it to 'U', the changes got reflected in the CDHDR and CDPOS tables.
    Can i reward myself as i solved this by myself ???

  • Change Pointers - adding a new field to existing Change Document

    Hi,
    We have a requirement to capture the changes made to the Material object through the transaction C223. The changes to field MKAL-PRFG_F have to be captured.
    There is an exisitng Change Document Object - MATERIAL. This is included in Message Type MATMAS. These are the steps we have done:
    1. In SCDO - added the Z structure to the Change Document Object - Material. [Z structure contains the field MKAL-PRFG_F. Change pointer option is checked for this Data element.
    2. Created a Z Message Type with reference as MATMAS.
    3. In BD52 - we have listed the fields for the new Z Message Type created.
    4. The Change Pointers - reactivated after the steps are done.
    The changes to the field MKAL-PRFG_F through C223 Tcode are not recorded in BDCPV table.
    Have we missed any steps here?
    Thanks,
    Pallavi

    HI,
    I don't think a new zmessage type is required in this case.. is the structure added to MARA table??The change document programs are there which triggers the iodcs... In SCDO transaction code , click on generation info for MATERIAL.. You will find the includes. The FM MATERIAL_WRITE_DOCUMENT creates entries in CDHDR and CDPOS, if we maintain entries in BD52 , the entries wil be written in BDCP and BDCPS tables.
    Try to add your structure in MARA table as append strucre and then you can debug the IDOC from WE19 and use the FM "MASTERIDOC_CREATE_SMD_MATMAS" and then you also need to switch on Update Debugging on, to debug the changes in update FM   MATERIAL_WRITE_DOCUMENT.
    Please see if the change is reflected or not....
    ELSE.
    may be you need to create a new entry in SCDO and do all the ALE configurations for change pointers.
    Please find the link for change pointers and also you can get lot of information on change pointers in SCN.
    http://help.sap.com/saphelp_nw70/helpdata/EN/12/83e03c19758e71e10000000a114084/content.htm
    Regards,
    Nagaraj

  • Problem while generating Update progam for a Change Document Object

    Hi,
    I'm trying to deal with Change Document concept in a R/3 4.6C environment and to establish new Change Document object for my (Z)-table. I haven't using any namespace and created object with name ZTEST. Following the online documentation I came to the point, where I have to generate include program. I made all the nessesary inputs (using Z prefix) but faced
    "Function module name is reserved for SAP"
    Creating everything similarily using some of our registered namespaces (/somenamespace/) I succeed to generate the Update program and to integrate it in my Z-programs as well.
    My question is: is it possible to use Change Document Object-names without predefined namespace - being a regular customer developer, but not an SAP developer - means, if I am allowed to manage programs in the customer namespace (Z,Y, X) only. If yes, how to do this?
    Further (I decided not to open a new thread) - generated Update program uses
    CALL FUNCTION 'xxxxx' IN UPDATE TASK
    for creation of Change Numbers for generated Change Document Object. This CALL doesn't work when I implemented it in my Z-program, but when changed  (IN UPDATE TASK was commented) - everything goes well and the system creates records in CDHDR/CDPOS tables for my object class and table.
    Why is that? According to the documentation I shoud only fill appropriate variables for the Change Document Object (class, tr.code, etc.) and call generated FM, nothing is pointed out about any possible problems? Am I doing something wrong?
    Well, to be precise, I think I have to give a sample:
    1. I have a sample Z-table with few fields (their data elements are marked as Change-Document relevant).
    2. Using own z-progam I created a new record for this z-table. Also fill all the nessesary variables included in the interface of generated FM for Change Document Object (for example - FM-mane CD_CALL_my_object).
    3. I call the CDO FM.
    4. Check what is happening (directly in both tables CDHDR/CDPOS or using FM CHANGEDOCUMENT_READ).
    Further, I perfom the steps from 1 to 4 updating the created in previous loop record in my Z-table.
    In both cases if the FM 'CD_CALL_my_object' is called IN UPDATE TASK nothing happens, but in case of direct call (without addition IN UPDATE TASK) the system behaves as expected. Well, obliously I can change the generated code for our production needs, but it doesn't seems to be the correct decision - in case of next possible modification of the Change Document Object definition, respectively in need of re-generation of the code.
    Any hints are wellcome.
    Thanks in advance.
    Ivaylo Mutafchiev
    Edited by: Ivaylo Mutafchiev on Jan 24, 2008 10:24 AM

    "IN UPDATE TASK" resolved by myself. The one should explicitly call 'COMMIT WORK' from Z-program after CALL FUNCTION '...' IN UPDATE TASK in order to get changes in the CDHDR/CDPOS commited. The key in this issue for me was to check the documentation of CALL FUNCTION :-).
    Regards,
    Ivo

  • Problem in multiple item for change document objects

    hi gurus,
    I have created change document object in tcode SCDO . It had giveN function module /TMW/CHG_OBJ1_WRITE_DOCUMENT.
    CDPOS AND CDHDR tables are updated with changed data. now i am trying to display all old and new data in se38 program.
    here my problem is when ever i changed multiple  item data , my program showing first item details only . I need to show all item data when ever i changed parallel . please help me where is my problem .
    thank you

    I think this is issue with function module generated thru SCDO Please check in your function module inside that the following function modules are used
    CALL FUNCTION 'CHANGEDOCUMENT_OPEN'
    CALL FUNCTION 'CHANGEDOCUMENT_MULTIPLE_CASE'
    CALL FUNCTION 'CHANGEDOCUMENT_CLOSE'
    if not then there may be issue with SCDO

  • How to use change document for AUSP table in MM02?

    Hi All,
    I am working with MM02. When I change the characteristic value in classification view, I want that change to be logged in CDHDR table.
    I have created a change document object for AUSP table and generated update program for that. Now that program needs to be called in some <b>badi</b> or <b>exit</b> which can be called upon saving in MM02 after changing the values in classification view.
    Can anybody give me some idea where can I call that program.
    Any help wud be appreciated.
    Regards,
    Pragya

    Hi
    You have 2 possible solutions to meet this requirement.
    Option 1: Implement point # 3 of SAP OSS Note 943559
    Option 2: This is a workaround solution to skip standard SAP check for activation of change documents of Classification system and allow entries to be written into CDHDR and CDPOS table through MM01 / MM02 / CL20N tcode
    Solution: Implement an implicit enhancement inside include program 'LCLVFF10', at end of subroutine 'FILL_REDUN' i.e. line number '337'.
    Here modify the entry of table 'REDUN' where OBTAB = 'MARA' and set the flag 'AEBLGZUORD' equal 'X'. This will activate the change document creation for Change Object 'CLASSIFY' in CDHDR and CDPOS tables.
    Sample Code
    LOOP AT redun WHERE obtab EQ 'MARA'.
           redun-aeblgzuord = 'X'.
    ENDLOOP.

  • How to Divert the changes to cdhdr table instead of dbtablog?

    Hai everybody.
    I am new to this forum. i got a job in abap recently. The below is my requirement.I want solution for this one. Anybody plz help me.
    I am having ztransaction.
    The change logs already were captured in DBTABLOG for table ZWPRFRUND (in transaction ZWPG).
    The only report which is currently used to get the change logs is RSVTPROT
    Now my requirement is,
    we need to display the change logs in the form of ALV.
    We should divert the changes to CDHDR table instead of DBTABLOG, then we can use the RSSCD100 to display change logs.
    The Important items for the change LOG needed in case of changes to table in “ZWPG” are,DATE ,TIME,USER,FIRST NAME,FILED NAME,OLD VALUE,NEW VALUE
    The above fields need to be displayed in the grid. In the above list “FIELD NAME” denotes any field of the table in the transaction in “ZWPG”
    Thanks & Regards,
    Sujatha.T.

    Check out my post in this thread:
    How to record add-on table change logs?
    You need to define a change document type and generate relevant code for this.
    Andrew

  • Unable to proceed in change document are not updating in CDHD, CDPOS tables

    Hi all,
    This is a question related to Change document.
    I created one custom Change document object ‘ZBUDGETS’.
    As I am trying to place a trigger on FMIT (Total Funds Management) table I created a Change document object ‘ZBUDGETS’.
    I included some of the authorized fields from FMIT table on which we placed the trigger.
    And of course all those fields are change document enabled in the data element level. I generation of the update program was completed. And I got the function module zbudgets_write_document along with some include programs and structure.
    Everything is fine, But i am unable to get this change document generated information to these tables are CDHDR and CDPOS.
    the problem is when I make any expenditure like PO Posting, it will be logging in the FMIT table and the respective fields also updating. With this the Change document object should trigger and it should send the record in CDHDR and CDPOS tables. This is not happening. If the records are getting updated in the CDHDR and CDPOS tables I can use those include programs and function modules in my program to retrieve the changes in FMIT table.
    Since I am unable to proceed further since the documents are not updating in CDHDR and CDPOS tables.
    Prabhakar

    CDHDR and CDPOS will not be populated with entries only by creating the change document object.Change documents will be written to CDHDR and CDPOS tables only if the function zbudgets_write_document is called in the transaction which updates FMIT.
    You need to find an use exit in the transaction updating FMIT and call the function zbudgets_write_document in that exit.
    Refer the below link http://help.sap.com/saphelp_47x200/helpdata/en/2a/fa01b6493111d182b70000e829fbfe/content.htm
    -Kiran
    *Please reward useful answers

  • Tables for PIR change documents

    Dear Experts ,
    I need to know the tables for PIR change documents , as shown in t code ME14.
    Can anyone please let me know the same ?
    Regards
    Anis

    Hi,
    Check below tables
    CDHDR- Change document Header
    CDPOS- Change socument Item
    SAM

  • Change document not found in article master ( t.code MM42)

    Hi,
    I am facing a strange  issue in MM42 !
    I see that the RP type in Logistic Dc view is not  same as the last value. Which means there is a change  made in this field. But the change document for this is not seen in MM42.
    Do you have any idea about which may have caused this?
    Thanks in advance
    Indrani

    Hi Indrani ,
    Another way of checking it ...
    Se16/SE16N   Table CDHDR .....
    Object = MATFULL and Object Value = Article Number ...  TR COde : MM42 ...
    Give an open date range...
    This will bring out all changes done to the article.
    then take the Object ID and Change DOC Numbers to CDPOS ... and now there you can filter for the field name DISMM or( RP Type field name)... If it has been changed ... it will be picked up..
    Regards
    Amitava

Maybe you are looking for