Skip to Content
Former Member
Jul 26, 2007 at 05:36 PM

Passing an object through SAP_WAPI_START_WORKFLOW


Hi All,

I am trying to start my workflow from a report program using SAP_WAPI_START_WORKFLOW. Now i have a container element ZEHSBO in my workflow which refers to a custom object type.

I have the object key in the program which calls SAP_WAPI_START_WORKFLOW. Now i need to populate the container element ZEHSBO while starting the workflow. For container elements which refers to an ABAP Dictionary reference i am able to populate it using INPUT_CONTAINER by passing the details in ELEMENT and VALUE fields. But how do i populate the same when it refers to a BO type?

I tried putting SWC_CREATE_OBJECT in my report program and i get an object reference. But i am not sure how to pass this object reference and get the whole object in the element - ZEHSBO in workflow.

Other alternative is to create a triggering event in my custom BO and pass the object from event to workflow through bindings. But i dont want to use events. I need to use SAP_WAPI_START_WORKFLOW and get the container element ZEHSBO populated.

How do i achieve this?


Prasath N