Page 1 of 1

Retrigger Workflow in VA02

Posted: Tue Mar 27, 2012 12:21 pm
by Singapore
Hi, I wish to auto retrigger workflow from VA02 upon new item line added.
Tried to use FM SAP_WAPI_CREATE_EVENT or SWE_EVENT_CREATE seems not working from SWI1 view.

Is there a way to retrigger workflow if the workflow status not yet Complete / not fully approved?

Re: Retrigger Workflow in VA02

Posted: Sat May 26, 2012 2:26 pm
by AspireWF

1) Go to SWELS Tcode. Switch off and Switch on the event trace once
2) Add the item in VA02 Tcode
3) Go to SWEL Tcode and see what is the standard business object & event fired when item is added in VA02.

Use this BO event as triggering event for your WF.

If you are using SWE_EVENT_CREATE FM check whether you have added COMMIT WORK statement after the FM call if sy-subrc eq 0. THIS IS MANDATORY !!

For SAP_WAPI_CREATE_EVENT FM pass the parameter COMMIT_WORK as 'X' without fail.

Check whether the event linkage between event & WF is enabled correctly in SWE2 Tcode or in basic data->Start events in SWDD Tcode.

Let me know if it helps.


Re: Retrigger Workflow in VA02

Posted: Wed Jun 27, 2012 7:07 pm
by Singapore
Thanks a lot! :)