Skip to Content
0

Workflow CREATE CHANGE event issue

Oct 20, 2016 at 02:35 PM

105

avatar image

Hi,

I have a user-exit for VA01 and VA02.

Say I create a Credit Memo SO, this user-exit will auto-block and set FAKSK field, on Saving.

My WF has to trigger whenever CREATE and CHANGE happens for CreditMemo SO.

So I have put both events in the same WF.

On CREATE my WF triggers, after approval it removes entry in FAKSK field and WF is complete.

Problem here is the moment it WF after approval, removes the entry, SAP triggers the CHANGE event, which in turn is again triggering another instance of my WF.

How do I stop the second instance which it triggers due to the CHANGE happening in my CREATE-WF.

Thanks,

Aditya V

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Anjan Paul Nov 10, 2016 at 05:42 AM
0

Hi,

Then use Check FM in the Event linkage and check is there any active wrkflow innstace running or not with fm

SAP_WAPI_WORKITEMS_TO_OBJECT. If active instance is there call exception

Share
10 |10000 characters needed characters left characters exceeded
Aditya Varrier Nov 17, 2016 at 09:06 AM
0

Hi. solved, created a process control step for change event.

Share
10 |10000 characters needed characters left characters exceeded