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

Similar Messages

  • Restrict creation of Change Document without a change request

    Hello Experts,
    Is there a way within Charm to restrict the creation of a change document through crmd_order or a business transaction and instead force the creation of all change documents to start from a change request? Some users are bypassing the approval process through sdcr and are using the push button in crmd_order to create a normal correction without having the change approved.
    Please advise on a possible solution to fixing this issue.
    Thanks
    Mike

    Hi Raquel,
    Thanks for the quick reply. The problem is that the individuals that have access to create an SDMJ or SDHF are the ones creating them directly from crmd_order instead of through the sdcr approval process. From what you are saying I guess there is no way to force them to go through sdcr instead of creating an sdmj directly from crmd_order if they already have access to create a change document?
    Thanks
    Mike

  • Creation of Change document for HR Assignemnt Infotype in Transaction- CR02

    Hi,
       I have to create change document for HR Assignment in Transaction CR02.
    I have gone thru the documentation available in SAP help.
    Please help me if anybody has worked on it.
    Thanks & Regards,
    Alok.

    Hi Raja,
    I didn't quite understand what you mean by creating/changing data using transaction codes, because within SAP MDM 3.0 you are in a portal environnment and don't work with transaction codes.
    General remark: Information on the up-to-date MDM 5.5 is provided in the Service Marketplace. For an overview of MDM 5.5, see also http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/mdm/capabilities provided with sap mdm 5.5.pdf.
    Kind regards, Markus

  • 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.

  • Activating Workflow for Change Documents

    Hi
    I am working in cProjects 4.0 on ECC6.
    I am working on the scenario of automatic email generation when change document is created for project element.
    I have used sample workflow WS28700006 and following settings have been made :
    1. Make the required settings in the SAP menu under Tools → Business Workflow →
    Development → Definition Tools → Events → Event Creation → Change Documents
    →
    a. Overview (transaction SCDO)
    Enter DPR_PROJECTS in the table.
    b. Define Workflow Properties (transaction SWED)
    Enter the following data:
    Change document object DPR_PROJECT
    Leading table in change document DPR_PROJECT
    Change document key with structure DPR_PROJECT
    Action: Change X
    Structure DPR_TS_BUSINESS_OBJECT_KEY
    Function module BAPI_BUS2175_OBJECT_KEY_SET
    c. Linkage (transaction SWEC)
    Enter the following data:
    Change document DPR_PROJECT
    Object category BOR object type
    Business object type BUS2175
    Event CHANGED
    On change X
    In cProjects I have I have attached word document, and another user changed it and changed document again checked in again with overwriting the old one.
    But no workflow triggerd. In SWI1 transaction I cannot see any workflow triggered.
    Is there any problem with workflow and process or changing document in cProjects is not write ????
    Can someone help ????
    Regards,
    Niraj Sikligar

    Hi Niraj,
    Please ensure that you have made IMG setting for cProjects > Basic Settings>'Activate Change Documents'.
    'Change Documents' means that any change in the Project Objects will be recorded, and not the changes in the documents that have been attached.
    I am not too sure about the workflow settings that you have made, but just try with the img activity that I've mentioned. You can test the same by making some changes in Project (  for eg change the Project Status) and save it.
    Let me know if it helps.
    Regards,
    Vivek Pandey

  • 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 : Enabling

    Hi,
    I have a table which is a part of Change documents Object in SCDO object. but none of the fields for this table is enabled for change documents (the tab further characterisitcs of the data element has a field Change Document which is disbaled).
    Will just enabling this, set this ready for creation of change documents in the table CDHDR.
    I actually tried this on a Z object and it did not work.
    I created a table, set it up in SCDO transaction. And even enabeld change doucment for this data element.
    Can somebody help ?
    Should there be some coding ? Should i run trigger some program ?
    Prashanth.

    Hi,
    In your custom program, after saving all the details into the table(after commit work).
    you have to call function module which was generated by SCDO.
    Prerequisites: In Data element, flag need to be set.
    Make sure while generation of function modules in scdo, you should get
                    X<TABLENAME>  indicates new values
                    Y<TABLENAME> indicates old values
    In case you are inserting new record. you need to pass object_change_indicator 'I'.
    In case you are modifing the existing record. you need to pass object_change _indicator 'U'.
    Find below the sample code
          CALL FUNCTION 'XXXX_WRITE_DOCUMENT'
                 EXPORTING
                    OBJECTID                        = c_cd_item_change_document(object id created in SCDO)
                    TCODE                           = Sy-Tcode
                    UTIME                           = Sy-Uzeit
                    UDATE                           = Sy-Datum
                    USERNAME                        = Sy-Uname
                  PLANNED_CHANGE_NUMBER           = ' '
                    OBJECT_CHANGE_INDICATOR         = c_Ci_Update ('U')
                    PLANNED_OR_REAL_CHANGES         = c_Ci_Real_Changes ('R')
                  NO_CHANGE_POINTERS              = ' '
                    UPD_ICDTXT_ZFSEI03_CLAIMS       = c_Ci_Update
                    UPD_ZFSEI03_CLAIMS              = c_Ci_Update
               IMPORTING
                  CHANGENUMBER                    =
                 TABLES
                    ICDTXT_ZFSEI03_CLAIMS           = t_Text_Changes
                    XZFSEI03_CLAIMS                 = Pt_Claims_New_Values
                    YZFSEI03_CLAIMS                 = Pt_Claims_Old_Values.
            IF SY-SUBRC <> c_Ex_No_Errors.
               MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
    Thanks

  • Change document required in CL20n

    Hi,
    I have prepared class (002) and assigned in CL20n.
    Now i change the value in CL20n.
    The "change document" or "Change history is not enable in CL20n.
    I want to check the change history / Change document that tell me which value got changed with user ID, time, date.
    Can anyone help me out.
    Thanks,
    Kruti

    Hi Kruti
    The creation of change documents for classification has to be activated for every class type. Go please to the customization of the appropriate class type:
    Cross-Application Components
    -> Classification System
      -> Classes
       -> Maintain Object Types and Class Types
    You will find there a flag to activate change documents.
    As a precondition you'll have to activate the flag 'Multiple objects
    allowed' before. If you already have classified objects
    for this class type these classifications has to be converted before.
    For the conversion of already existing classifications use please report
    RCCLUKA2. It processes the conversion and sets the flag 'Multiple
    objects allowed'. Regard please the documentation of report RCCLUKA2.
    Thereafter you'll be able to activate change documents for this class
    type.
    Please read the 2 notes which explain the process for activating change documents in Classification
    80907 Setting the several objs.for each class type indctr
    65124 Classification Change Documents
    I Hope the information helps
    Enda.

  • Creating a custom change document for a standard table field

    Hi
    Is it possible to create a change document for a field in a standard table?
    I have searched the forum and only found threads about creating change document to a custom table.
    Will the creation of change documents to a standard SAP table be a modification?
    Thanks.
    Regards
    Sowbhagya.L

    Yes it will be a modification on standard table, but you can always create change document for any field by assigning it to custom change object.
    Regards,
    Krishna.

  • Disadvantage of using change document

    Hi all,
    I am currently using triggering certain code (which is written in receiver fm in SWETYPV associated with an event) based on change documents using SWEC.
    I just want to know are there any disadvantages associated with usage of change documents, creation of change document objects.
    Pointers to any documentation on change documents would be helpful, I am aware on how to use change documents but I want to get in depth of what exactly happens behind the scenes.
    Thanks.
    кu03B1ятu03B9к

    I dont find any disadvantages with change documents.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm

  • Timestamping change documents

    Hi all,
    We are using Business Partner/Customer synchronisation but have noticed that the entries in CDHDR are timestamped one hour apart. So a synchronous change made at say 15:00 is stored on the table as 15:00 for object class DEBI but as 14:00 for object class BUPA_BUP. This is not really a problem as, when the BUPA_BUP data is displayed via the standard transactions, it displays as 15:00. Our only problem is a Z-coded change document report which shows the times directly from the table.
    I assume that there is configuration based on the object class but I can't find it. Does anyone know where it is??
    Thanks in advance.
    Brian

    Hi Maria,
    You should try transaction SUIM and select 'Change Documents'. Then you can also run report RHCDOC_DISPLAY as per note 1158326. The prerequisite is to activate the creation of change documents for the specific infotype, I mean you have to maintain the table T77CDOC_CUST. Hope it helps,
    Kind Regards
    Christine

  • Activating 'change documents' for notification item class 015

    Dear Experts,
    Kindly help me in activating  'change documents' for notification item class 015.
    Thanks and Regards,
    R N Sabat

    Hi R N Sabat
    The creation of change documents for the classification has to be
    activated for every class type. Go please to the customization of the
    appropriate class type:
    Cross-Application Components
    -> Classification System
      -> Classes
       -> Maintain Object Types and Class Types
    You will find there a flag to activate change documents.
    As a precondition you'll have to activate the flag 'Multiple objects
    allowed' before. If you already have classified objects
    for this class type these classifications has to be converted before.
    For the conversion of already existing classifications use please report
    RCCLUKA2. It processes the conversion and sets the flag 'Multiple
    objects allowed'. Regard please the documentation of report RCCLUKA2.
    Thereafter you'll be able to activate change documents for this class
    type.
    Please check the 2 notes :
    80907 Setting the several objs.for each class type indctr
    65124 Classification Change Documents
    If you have any questions , please let me know .
    Enda.

  • How to trigger workflow from changes in Sales Order in CRM?

    Hi Experts,
    I want to trigger event at the time of saving the changes in sales order (TCODE- CRMD_ORDER).
    I have found one BO - BUS2000115 but it is getting triggered only after new creation of sales order.And there is no BO available when we change the sales order.For this reason I have created one customize event in BO(BUS2000115).
    Now my question is How should I link this customize event so that it will trigger after saving the changes ?
    I have seen SWEC transaction but was not able to find anything to link this customize event.
    Please help ....!!!
    Good response will be rewarded.
    Thanks
    Snehasish Das
    Edited by: Snehasish Das on Feb 14, 2008 2:31 PM

    In SWEC, actually you link the change document object to a Business object and its corresponding event , to which workflow should react to.
    If yo udo not find the entry then, yo unedd to create one with finding out the respective chage documnet object.
    Hope that helps.
    Regds,
    Akshay

  • How to trigger an Idoc from Sales order creation and change

    We are trying to trigger Idoc from sales order creation and change we have done following setting mentioned below:
    Follow the below steps:
    1. Go to NACE transaction
    2. Select V1 application and select OUTPUT TYPES
    3. Select the required output type and double click on Processing routines.
    4. Enter Medium as DISTRIBUTION ALE, Program as RSNASTED and Routine as ALE_PROCESSING.
    5. Save it.
    message type ORDERSP in the distribution model (BD64).
    Follow the below steps to configure the condition records:
    1. Go to NACE
    2. Select V1 application and select CONDITION RECORDS
    3. Select the requred output type and click on Condition records
    4. Selection screen will be displayed.
    5. Go for execution. In that screen enter the selection criteria. For eg Condition record is based on Sales document type. Then
    Sales doc type = OR
    Funt = SP
    Partner = blank. It means there is no restriction on partner numbers.
    Medium = A
    date/time = 4
    Lan = EN.
    Note: partner is left blank means, the sales order of type OR can be send to all partners.
    6. Save it.
    We also done ALE configuration.
    We are facing problem that from VA02 "No output has been selected for printing Message no. V1102"
    Kindly suggest the solution.
    Regards,
    Sharad Dixit

    Hi ,
    Please check the total error description and diagnosis as below :
    InVa02 enter SO  go to extras->output->Header->edit.You can find a table with all the triggered output types. Choose the output type BA00 with medium Distribution ALE and go for 'Processing log'. It will show you the error description.
    Please paste the diagnosis .
    Thanks and Regards,
    P.Bharadwaj

  • Regarding Workflow trigerring using change document

    Hi all,
    I am trying to trigger a workflow using change document object.
    I want that to trigger the workflow on the material master change through MM02.
    I have created  a business object ZBUS1001 and wanted that on change of material master
    the custom change document object should call the workflow
    I went through all the material avaialable over SDN ,but can not find a change object for change in material master through MM02  for std business object  BUS1001.
    Please tell me how to find one.
    Please reply if any one of you have some solution.

    Hi,
    Thanks for your reply.
    I am using an existing change object - MATERIAL_N of Business Object - BUS1001 and the event
    BASICMATERIALCHANGED.
    I have mentioned  the details in the tcode SWEC.
    And even in the workflow i have given the start of event  as the BUS1001 and event BASICMATERIALCHANGED.
    But workflow not called .
    Do we need to maintain an entry in SWED?
    If yes then in function module column what we need to mention.

Maybe you are looking for