Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Trigger workflow via IDocs

Former Member
0 Likes
802

Hi all,

we plan to trigger workflows upon the creation of certain IDocs in a SAP 4.6C system.

The business sceanrio is: company code 1000 creates a PO which is sent via IDoc to company code 2000. Upon changes by the issuer (company code 1000) to certain data of the above created original PO (e.g. delivery date, amount) a workflow needs to be triggered. Also changes performed by company code 2000 need to trigger a workflow.

We guess that change document handling and/or the creation of ORDCHG IDocs would be a suitable approach to trigger a workflow, just we don't know how...

How can workflows be triggered upon changes to a PO and/or creation of an ORDCHG IDoc?

Any hint is highly appreciated.

Thanks

Peter

Message was edited by: Peter Keller

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
700

Hi Peter,

when the original PO in CC 2000 is changed, you can raise an event in a user exit (just before saving the document), checking if some relevant data was changed. This event triggers the workflow.

kind regards

Siggi

3 REPLIES 3
Read only

Former Member
0 Likes
701

Hi Peter,

when the original PO in CC 2000 is changed, you can raise an event in a user exit (just before saving the document), checking if some relevant data was changed. This event triggers the workflow.

kind regards

Siggi

Read only

0 Likes
700

Hi Siggi,

great idea! Do you happen to know what user exit to use?

Thanks,

Peter

Read only

0 Likes
700

Hi Peter,

You can check transaction SWEC for linking events with Change documents.

Cheers

Deepak Bhalla