This website is not affiliated with, sponsored by, or approved by SAP AG.

Retrigger Workflow in VA02

Business WorkFlow

Moderators: Snowy, thx4allthefish

Retrigger Workflow in VA02

Postby Singapore » Tue Mar 27, 2012 12:21 pm

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?
Singapore
 
Posts: 9
Joined: Sun Apr 24, 2011 9:55 am

Re: Retrigger Workflow in VA02

Postby AspireWF » Sat May 26, 2012 2:26 pm

Hi..

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.

-AspireWF
AspireWF
 
Posts: 2
Joined: Sat May 26, 2012 2:17 pm

Re: Retrigger Workflow in VA02

Postby Singapore » Wed Jun 27, 2012 7:07 pm

Thanks a lot! :)
Singapore
 
Posts: 9
Joined: Sun Apr 24, 2011 9:55 am


Return to Business WorkFlow

Who is online

Users browsing this forum: No registered users and 1 guest





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.