Page 1 of 1

How to trigger a workflow in webdynpro programs

PostPosted: Mon Mar 12, 2012 8:31 am
by n199707
Hi Experts,

I am new to SRM Workflow, and I need to trigger a workflow in my webdynpro programs.
But I don't know how to do.

The requirement is as below.
1. Creating a web dynpro program
2. User can execute the program and input data on it. Such as Expense application, Leave application...
3. When the user click the "Apply" button on the form, the application will be sent to the boss.
***I want to trigger a workflow when the user click the "apply" button.***

I have achieved the similar functions in SAP ERP systems, by generating Events in the Add-on programs.
But I don't konw how to do it in SRM 7.0.

Any suggestions would be greatly appreciated.
Thanks and Best regards

Re: How to trigger a workflow in webdynpro programs

PostPosted: Mon Mar 19, 2012 10:40 am
by shaikymulla
hi,

creat a webdynpro program have some buttons like approve or reject in the webdynpro screen.
use these actions to trigger a workflow in SRM box with FM: SAP_WAPI_CREATE_EVENT or SAP_WAP_START_WORKFLOW
whichever is relevant in your case.

let me know if its able to solve this

thanks,
shaik.