Change document and triggering workflow

Hi,
There's a z-table in ERP. The requirement is to send a notification to the Java server whenever there is a change in the data content of this table.
Can anyone describe the steps to be followed.
Thank you.

Hi Pavan, Sharath,
Now that I understand the concept of change documents, I have doubts about it's utility. I mean I did not find it to be a very good feature. The reason I say that is that one has to code for everything. It becomes the developer's responsibility to get the old record and the new record and pass these to the WRITE_CHANGE_DOCUMENT function. In addition, the developer also has to pass an indicator representing what kind of change is it - insert, update, delete.
The only utility I see is when you have maintain an archive of the changes that happened in a table's content over a long period. In that case, you could refer to the CDHDR and CDPOS tables and find out what change occurred on which date.
Your comments would reinforce my understanding of the concept.
Thank you.

Similar Messages

  • History Documents, Change Documents and Potential documents in PGS

    What are History Documents, Cleared documents, Change Documents and Potential documents in PGS.
    I need to retrieve history documents from tables BSIK, VBKPF and RBKP. Which fields are considered as History documents from these tables?
    How to retrieve Cleared documents from Table BSAK? Which fields from this table can be considered as cleared documents.
    How to retrieve Change documents from Table CDPOS? Which fields from this table can be considered as change documents.
    How to retrieve Potential duplicate documents from tables BSIK, VBKPF, RBKP? Which fields from this table can be considered as potential duplicate documents.

    In order to include audio and video, you need to export it into a format that supports this, and you need to have a program to open it that supports audio and video in exactly the way it was included (not all flavors of format have the same features).
    PDF does not do this. I'm not sure about .doc (but I doubt it).
    EPUB does support audio and video, but I have no idea how easy it is to use (nor how reliable).

  • Change documents and Pointers

    Hi Gurus,
    Would anyone explain briefly about the Change documents and Change Pointers..as I am new to this concept if anyone can explain in more detail or send me documents that would be great and also I will def. reward points..please send me the docs to [email protected]
    I gurantee that I will reward points...
    Regards
    Baba.

    Hi Baba,
    A <b>Change Document</b> is an object that contains a log of all the changes that were made on a specific business object (like a product or a business partner), so you will always be able to identify what was changed, when it was changed and who changed it.
    <b>Change pointers</b> instead are used in a different context that is the distribution of master data changes to different system. When in the source system an object (material) is changed (e.g. change of the description) if change pointers are activated, the material is flagged as "changed" and using change pointers the material update will be sent to all the system that are configured to my sinchronized with master data. This is not for tracing like change document but for master data distribution
    You can find more details on help.sap.com:
    - <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm">Change Documents</a>
    - <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/12/83e03c19758e71e10000000a114084/frameset.htm">Change Pointers</a>
    Hope it helps,
    Kind Regards,
    Sergio

  • Creation of change document to trigger workflow.

    Hi,
    I need to trigger a workflow when there is a change in the PO line item (EKPO). For this, I can use the standard change object EINKBELEG, but this only bears the purchasing document number as the key. hence when ever a change event is triggered in the custom BO, the key is just the PO#. This should be not the case.
    The key field should be a combination of the purchasing document number and the line item number, hence I created a custom change object ZEINKBELEG refering to EKPO and generated it too. The steps in SCDO, SWED, SWEC has already been handled. But the custom event in the business object does not get triggered. I need some help regarding this.
    Precisely speaking, if there is a change in the line item value (in ME22N). The business object event should trigger.
    Thanks,
    Sukumar.

    Hey Sukumar,
    Do one thing  instead of creating  custom change document. create a new  event in bus2012 using condition editor of SWEC only create a event only when there is a change in EKPO. that resolves your issue..  just a suggestion

  • Guidelines on Change documents and Status Management

    Hi Friends,
        I am not sure whether this is the right question or not but I am in desprate need of it.
        The thing I find my self no where sometimes when I think of working on Chagne documents and Status management. I have been into WF for about 2 years. but never got a BEST chance to work on complicate workflows.
         <b>Can anyone give me some ways or links where I can find clear difference between change docs and status mngt and how to work on those ?</b>
        I did search in blogs but didnt find much. so posting a new thread. sorry for the inconvenience.
    Thanks
    Reddy

    Hi Reddy ,
    Go through these links.
    the Tcode for Change document is swec,
    http://help.sap.com/saphelp_47x200/helpdata/en/c5/e4aee2453d11d189430000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/8c/1923d1932b11d2a5ea0060087a79ea/frameset.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/db/7a2a40ce93185de10000000a1550b0/content.htm
    Thanks & Regards
    Hari Sankar M

  • No change document  and no user exit is found   for CK11N tcode

    Dear All,
        After execution of the transaction CK11N  in CDHDR table i dint find any entry for change document.
    But there is a business object for this transaction :BUS2044 which has no event .
    As there is no event in the business object and there is no change  document also so how i will trigger this business object for CK11 transaction.
    I serached for user exits also but i dint find any.
    So can any body pls tell me how to trigger the business object for the transaction CK11.
    Thanks
    sharmistha
    Message was edited by:
            sarmistha das

    If there is no event it is difficult to trigger an event. So in any case you have to create your own subtype of BUS2044 and define the event you want to create.
    If there are no user exits (I assume you have also looked for user-exits of type BTE and BAdI, even substitutions) you are perhaps out of luck? Being out of luck in this context means you will have to resort to a modification.

  • Event from Change document not triggerring

    Hi
    I've used chnage document FMRESERV to track change in table KBLP-DELTAWTAPP for any value change, but although I'm chnaging amount from FMX2, the event for this chanhe document is not triggerring. Can you please help me how to resolv the issue.

    Further, check if the change pointers are activated in transaction BD61 and if the pointers are maintained in transaction BD52. If these are maintained correctly along with the flag in the data element, the change pointers should be triggered.
    Does this help?

  • Finding AP duplicate invoices and triggering workflow

    Hello everyone,
             I need a way to find duplicate AP invoices and trigger a workflow in case there are duplicate invoices. Is there a standard workflow in AP that would achieve this? I did research on SDN but did not find the information I am looking for. Please give me any information you have.
    Thanks.
    Mithun

    Hi Dha,
    can u give some lighs on what is duplicate AP invoices ?, how do u define them ?
    regards
    prabhu

  • ABAP OO Class and Change Documents

    I have created a class based on the IF_WORKFLOW interface.  I created a couple of events.  I created a workflow task assigned to a custom method of the class.  I setup the Material Change Document to trigger the class event when there is a change.  The workflow task does trigger when I change a material, but I don't know how to pass the key of the Change Document (matnr) to the workflow task/method using the ABAP OO Class interface.  Any help?
    Thanks,
    Kenneth

    Thanks for the reply Florin.  Yes, I have seen Joclyn Dart's Whitepaper and blogs.  They are very helpful, but I haven't seen much information within them about Change Documents.  I tried your suggestions, but the material key is still not being filled when I trigger the change document and workflow task using tcode MM02.
    Here is what I have done:
    Created an Attribute 'Material' type mara-matnr and checked 'Key Attribute'.
    Created an Attribute M_POR type SIBFLPOR.
    Here are the methods:
    Constructor with parameter 'Material' *
    METHOD constructor.
      me->m_por-catid = 'CL'.
      me->m_por-typeid = 'ZMM_WF_MATTEC'.
      me->m_por-instid = me->material.
    ENDMETHOD.
    Find_by_lpor with parameters LPOR and RESULT (default params) *
    METHOD bi_persistent~find_by_lpor.
      DATA: p_material TYPE matnr.
      MOVE lpor-instid TO p_material.
      TRY.
          CREATE OBJECT result
            TYPE
              zmm_wf_mattec
            EXPORTING
              material      = p_material.
        CATCH cx_bo_error .
          EXIT.
      ENDTRY.
    LPOR with parameter RESULT (default param) *
    method BI_PERSISTENT~LPOR.
    result = me->m_por.
    endmethod.
    ENDMETHOD.
    Custom method MAT_CHANGED with parameter 'Material' * (not coded yet)
    This is the task being triggered by the Change Documents *
    METHOD mat_changed.
    ENDMETHOD.
    Edited by: Kenneth Moore on Nov 4, 2008 11:00 AM

  • Change documents optimization Business Partners and Products

    Hello guru's
    Does anyone know if it is possible for the objects Business Partner and Products to make settings on which changes are recorded in the change documents and which are not?
    e.g. I want a change in the field "Last Name" to be recorded in a change document but if a change is made in the field "House number" I don't want it to be recorded in a change document.
    Anyone know if this is possible in standard SAP? We are now on 5.2, but will be on 7.0 in a short time.
    Thnx for the help!
    Joost

    Hi, Joost
    I think it's possible.
    First, Check this program changedocu_read and these tables: CDHDR, CDPOS, DBTABLOG.
    Denis.

  • JEST table and status change document OPL8

    Hi Experts,
    1. I created a prod order and released it and saved. went to AUFK and got the object number to pass in JEST  table. System shows no values found.I was expecting a record for the same. do I need to do something to populate JEST table?
    2. In OPL8 under implementation tab, there is something called status change documents. do I need to configure OCM to use these change documents? if the answer is no, then what is the difference between these change documents and OCM change documents?
    thx in advance

    swathi.rege wrote:
    2. In OPL8 under implementation tab, there is something called status change documents. do I need to configure OCM to use these change documents? if the answer is no, then what is the difference between these change documents and OCM change
    The settings in OPL8 will just determine if system should write the change logs of status to table tables CDHDR and CDPOS (for audit trail). Entries will appear here CO03 >> Header >> Status changes
    I think you opened up different windows of different boxes (DEV, QAS etc) and probably created in production order in DEV and checking status in QAS.
    Edited by: Jeevan Sagar on Feb 12, 2012 10:09 PM

  • Error while approving change document(TR lost project code)

    Hi All,
    I am having issue in change document approval, when we are approving change document for unit testing or if release management approving change for pre-production or production approval, we are getting error, I started coming from last two days only,\
    when I did detail analysis,  in all transports project code related to change document, disappear
    although if I create new change document, project code appear,
    Do we have  way to solve this issue?, I even not able to decouple the transport from change document, it giving error, do we have way where we can resync change document and transport?
    Dinesh

    Hi All,
    Do anyone have some solution for this issue?, it  is bigger than I thought, I can check it impacted all systems, and all transports,  all transports seems to issue they lost project code in it we rollover maintenance cycle last week and this problem started from their, we put charm master note and few other charm fixes(notes) last week,
    this problem not coming any new change document, but all change document created before rollover impacted
    Dinesh

  • Change documents for customer Z table - serious help wanted

    Hi all,
    I am no beginner and I don't expect any comments from beginners.
    Situation: My customer wants to replace the material valuation transactions MRN1 MRN2 MRN3 due to bad performance and locking problems with own developed programs.
    The valuation results will be stored in a customer Z-Table on a monthly base. For auditing and transparency purposes, this Z-table has to get a change object and the update routines will have to write change documents.
    Due to the expected size of the new Z-table, it is not advisable to simply switsch on table logging.
    In this huge project (and in none I participated!) nobody ever implemented the change document process for a Z-table. <b>BUT EVERYBODY CAN TELL YOU THI IS NO PROBLEM AT ALL.</b>
    I read some documentation at SAP and serached for threads or blogs here. I could not find anything desribing that in depth.
    So before I start, I'd be happy to get some hints from people who created own change documents and implemented the process. Links to documentation and other helpful pages are also welcome.
    If I can keep the process simple, I'd like to create a BLOG on this - because I think, in the future it will get more and more difficult to pass the auditing process with undocumented features and uncontrolled table changes.
    TIA.
    Regards,
    Clemens

    Hi,
    Please check this thread.
    http://www.sapdevelopment.co.uk/tips/changedoc/cd_createch.htm
    Once you create your change document object using generate update pgm option then  please check the WRITE document fm.
    I have done this long back i am updating CDHDR and CDPOS for 2 table YATT and YATTPLANTS. Here YATT have single record (header table) and YATTPLANTS have multiple records (item table)
    function yatt_write_document           .
      call function 'CHANGEDOCUMENT_OPEN'
        exporting
          objectclass             = 'YATT           '
          objectid                = objectid
          planned_change_number   = planned_change_number
          planned_or_real_changes = planned_or_real_changes
        exceptions
          sequence_invalid        = 1
          others                  = 2.
      case sy-subrc.
        when 0.                                   "ok.
        when 1. message a600 with 'SEQUENCE INVALID'.
        when 2. message a600 with 'OPEN ERROR'.
      endcase.
    if upd_yctc                           ne space.
       call function 'CHANGEDOCUMENT_SINGLE_CASE'
         exporting
           tablename              = 'YATT                          '
           workarea_old           = o_yatt
           workarea_new           = n_yatt
            change_indicator       = upd_yattc
            docu_delete            = 'X'
         exceptions
           nametab_error          = 1
           open_missing           = 2
           position_insert_failed = 3
           others                 = 4.
        case sy-subrc.
          when 0.                                "ok.
          when 1. message a600 with 'NAMETAB-ERROR'.
          when 2. message a600 with 'OPEN MISSING'.
          when 3. message a600 with 'INSERT ERROR'.
          when 4. message a600 with 'SINGLE ERROR'.
        endcase.
      endif.
      if upd_yctcauthplnts                  ne space.
        call function 'CHANGEDOCUMENT_MULTIPLE_CASE'
          exporting
            tablename              = 'YATTPLANTS                 '
            change_indicator       = upd_yattplants
            docu_delete            = 'X'
          tables
            table_old              = yyattplants
            table_new              = xyattplants
         exceptions
           nametab_error          = 1
           open_missing           = 2
           position_insert_failed = 3
           others                 = 4.
        case sy-subrc.
          when 0.                                "ok.
          when 1. message a600 with 'NAMETAB-ERROR'.
          when 2. message a600 with 'OPEN MISSING'.
          when 3. message a600 with 'INSERT ERROR'.
          when 4. message a600 with 'MULTIPLE ERROR'.
        endcase.
      endif.
      call function 'CHANGEDOCUMENT_CLOSE'
        exporting
          objectclass             = 'YATT           '
          objectid                = objectid
          date_of_change          = udate
          time_of_change          = utime
          tcode                   = tcode
          username                = username
          object_change_indicator = object_change_indicator
          no_change_pointers      = no_change_pointers
        exceptions
          header_insert_failed    = 1
          object_invalid          = 2
          open_missing            = 3
          no_position_inserted    = 4
          others                  = 5.
      case sy-subrc.
        when 0.                                   "ok.
        when 1. message a600 with 'INSERT HEADER FAILED'.
        when 2. message a600 with 'OBJECT INVALID'.
        when 3. message a600 with 'OPEN MISSING'.
    *    WHEN 4. MESSAGE A600 WITH 'NO_POSITION_INSERTED'.
    * do not abort, if positions are not inserted!!!
        when 5. message a600 with 'CLOSE ERROR'.
      endcase.
    endfunction.

  • How to get terminal address along with Change document header

    Dear All
    My client want a report of the frequencies of a sales document changes along with terminal address. In table CDHDR i can get user name, date, t-code but not the terminal address. So requesting to guide me of how to get the terminal address from which terminal the document has been updated.
    Appropriate answer will be rewarded.
    Regards
    Kingshuk
    Edited by: Kings_Roy on May 31, 2010 11:02 AM

    I don't think this information is kept in change documents.  So for the change documents that are already created, you cannot get this information.
    For future however you can do some code changes to get this information.
    Function module TH_USER_INFO can return terminal name as well as IP address for a given client and user.
    All you have to do is either store this additional information along with change documents. For this i think you can check the FMs that are writing SD change documents. 
    OR
    You can use user exit exit SUSR0001 (User exit after logon to SAP System) to call this Function (TH_USER_INFO) at user logon and store this info in a Z table. Later when you are reading change documents, you can get user name, date time from change document and search this Z table for respective user Terminal name and IP Address.
    This is not a complete solution but i hope it will direct you to a solution.
    cheers.

  • Change Document - Insert new value / Delete

    Hi,
    Jus need a quick clarification on change documents -
    1. insert opertaion. I have created change documents and able to record the changes in CDPOS when changing or updating the existing values in table. But when i try to insert into the table the CDPOS is updated only with key entries and how can i track the values tht are inserted for non key fields in table? is there anything to be inlcuded in the pgrm for insert operation so tht CDPOS relflects all the values inserted?
    2. delete operation - CDPOS not recording the deletion of the record!!!
    any pointers for troubleshooting this issue?

    The insert operation only records the key, the actual values of the non-key fields can be found in the application table itself.
    The delete operation should be recorded as well. Is it your custom transaction? The application logic is responsible for making the correct calls to the functions modules that write CDHDR/CDPOS entries. Maybe you have a bug there somewhere.
    Thomas

Maybe you are looking for

  • Transformation check error

    Hi Experts, I have created transformations in BI7.0 with Start Routine and Transfer Routines. when i am checking individual routine, checking total transformations, activating transformations and saving transformations also fine without error. my pro

  • ABAP Queries

    We have just upgraded from 4.6 to 6.0. I have noticed lot of differences in the code behind the ABAP queries that is generated once the queries are created. In some instances they are form bunch of include programs like the ones below but in some oth

  • Playbook only works with charger or USB cable despite batter showing 100% charge

    After 2 years of faithful service, playbook only works with charger or USB cable despite batter showing 100% charge. As soon as the cable/charger is unplugged, it just switches off. When cable is plugged in again, and start button pressed, it reboots

  • Disabling "FCP has reached end of tape"

    Hi, is it possible to manually control the capturing process without FCP detecting the end of a tape? I am capturing VHS tapes through a canopus advc300. Frequently, the capturing process would stop because FCP thinks its the end of the tape. Pretty

  • FTP in Chrome, IE, Firefox is easier than Safari:  WHY?

    So in Firefox, Chorme, and IE I can just do ftp.mikedlong.com and then log in with the Creds I've established on my server.  But why is it that Safari keeps telling me that my password is wrong when the others work just fine?