cancel
Showing results for 
Search instead for 
Did you mean: 

triggering workflow from webdynpro ABAP

Former Member
0 Kudos

Hi all,

My requirement is to trigger a workflow from webdynpro application(ABAP),

after going through various documentation, i found the function module that is used to trigger the workflow 'SAP_WAPI_CREATE_EVENT',

i am calling this f.m in on action event of my webdynpro application, that is after i fill in my form and click submit button in my application,

what are the parameters that i need to pass in the above function module?

can anyone explain the complete flow in detail?

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

Here is blog explaining webdynpro in workflows <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20web%20dynpro%20java%20and%20web%20dynpro%20abap%20applications%20in%20universal%20work%20list.pdf">Click Here</a>

Regards

Abhimanyu L

Former Member
0 Kudos

Hi Abhi,

Thaks for your reply.

I saw your document, in abap i am using SAP_WAPI_CREATE_EVENT

to trigger my workflow, that function module needs the work item id as import parameter,

but based on ur document the wi_id gets generated only after the workflow is triggered,

so what do i pass into this function module?

help me on this

Thanks.

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

You don't need to use events to trigger workflows.

You can use SAP_WAPI_START_WORKFLOW to start the workflow you can not pass business object using this.

there is another function module you can use to start workflow...

EWW_WORKFLOW_START, here you can pass the container objects..

Regards

Abhimanyu L

Former Member
0 Kudos

Hi Abi,

I am building this application in srm 5.0,

i dont find the function module EWW_WORKFLOW_START in it,

i am able to trigger the workflow using that wapi function module,

now the issue is passing the values to workflow container,

function modules SAP_WAPI_WRITE_CONTAINER uses work item id,

how do i get the work item id inside webdynpro?

do i need to configure the UWL for it?

Thanks in advance.

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

the WAPI function module to trigger the workflow contain an export parameter

which returns the work item id, just use this work item id to write into the workflow container using SAP_WAPI_WRITE_CONTAINER.

If you want to write to the Task Container, the work item id is +1 of the work item id you get in the above step.

Regards

Abhimanyu L

Former Member
0 Kudos

Hi Abhi,

Thanks for the reply.

Now my workflow is getting triggered and i am using the WAPI_WRITE_CONTAINER to write the values to the workflow container,

when i debug i see the values in workflow container but when i try binding those values to the task container i am not able to see the values in task container?

i checked everything but still not getting the values?

help me out.

Thanks.