Skip to Content
author's profile photo Former Member
Former Member

How to trigger an event when the document is changed


I need some help around event settings. For triggering an event to change the replenishment indicator by using the change documents, an object type is necessary. In SCM system the name of the appropriate object is /SAPAPO/CD_LP.

1. Choosed /SAPAPO/CD_LP u2013 Locations Product (Transaction: SCDO)

2. Table/Structure /SAPAPO/PR_CD_LH (contains replenishment indicator)

With transaction SWED an entry has to be inserted for the change document object /SAPAPO/CD_LP with structure /SAPAPO/PR_CD_LH as leading table and change document key for later assignment of object type to change document object.

First, I looked if there was a standard change Document in SCDO for /SAPAPO/CD_LP u2013 Locations Product and "Yes" there is one.

Two, I created the entry in SWED.

Last, Creation of event via change documents with transaction SWEC. Insert new entry for change document object /SAPAPO/CD_LP with object type ZLOCPROD and its event CHANGEDREIND belonging to trigger-event 'On Change'.

ZLOCPROD is a object type which contains event CHANGEDREPIND.

Now, when this event gets triggered and how . I'm not sure about what to do next to get it to work? Please explain in detail.

<removed by moderator>



Edited by: Mike Pokraka on Aug 13, 2008 9:43 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 13, 2008 at 11:26 AM

    Hi Rizwana,

    So as you said that you had created a event linkage between change document object and Business object you can now switch on the event trace SWELS and go to the particular transaction by which the event of this Business Object gets triggered ( the event you mentioned in SWEC). Switch of the event trace (SWELS) and check the Business object that had triggered in SWEL transaction.

    Hope this would help you.

    Any clarification.. then please revert back.

    Good luck


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      Between Trace On and Trace Off You dont find your Object NAme and the Name of the Workflow.

      If Yes Then Please ensure that you First Switch ion the Event Trace (SWELS) Then Trigger the event and then display the Event (SWEL).


      Sumit Agarwal

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.