cancel
Showing results for 
Search instead for 
Did you mean: 

SAP_WAPI_CREATE_EVENT_EXTENDED - Missing data in Workflow after start

Former Member
0 Kudos

Hi all, we are using SAP_WAPI_CREATE_EVENT_EXTENDED

to start a workflow. We are using this function because we need to trigger the workflow by a class! However, the workflow runs in the status error due to missing data. Means that the event container obviously transfer an uncomplete class. All attributes are empty, also LPOR. When we debugg the program which calls SAP_WAPI_CREATE_EVENT_EXTENDED the class is created correctly, means all attributes are filled with runtime data. So far I worked with BOR objects and I used SAP_WAPI_CREATE_EVENT which works fine. Did we take the wrong function to create an event by a class? Thanks for your input.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Mike, I will test thats soon! Have a nice and sunny weekend.

pokrakam
Active Contributor
0 Kudos

Events are decoupled and the workflow is started in a new session. Your attributes are thus lost, the object will be re-instantiated in the background session using find_by_lpor. Any attributes you need thus have to be saved in the DB and retrieved in find_by_lpor.