cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger an event when the document is changed

Former Member
0 Kudos

Hi,

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>

Rgds,

Rizwana

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

Accepted Solutions (1)

Accepted Solutions (1)

narin_nandivada3
Active Contributor
0 Kudos

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

Narin

Former Member
0 Kudos

Hi Naren,

Thanks for the solution but when i get into SWEL Tcode i.e Display Event Trace,

in event column it is showing Trace On and Trace Off..where exactly my event ChangedRepInd will be triggered.

Thanks in Advance.

Regards,

Rizwana

Former Member
0 Kudos

hi,

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

Regards

Sumit Agarwal

Answers (0)