cancel
Showing results for 
Search instead for 
Did you mean: 

Event linkage in workflow

Former Member
0 Kudos

Hi Gurus

In the custom leave request workflow , we need to pass a field WBS element from an event to workflow container . I created a parameter 'WBS_ele' in the event which actually triggers workflow but it is not passing any value to workflow container . I passed value to the triggering event through 'swc_set_element ' macro i used syntax swc_set_element event_container 'WBS_ELE' WBS_ELE.

It has value in the program but not passing in the workflow . I have also done binding of event variable to the workflow container

Seems that I am going some where wrong . May be in the business object , workflow or in the triggering program

Please suggest where I am going wrong

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Rocky,

If you are manually triggerring the WF through the event using SAP_WAPI_CREATE_EVENT or SWE_CREATE_EVENT, then you have to pass the WBS element value in the container element of the FM.

If your WF is getting triggerred by a SAP generated event, then you need to pass '_EVT_OBJECT' with the main business object of the WF also the WBS element in the binding.

Regards.

Former Member
0 Kudos

Hi Padman

Thanks for all your support and help .problem is solved .