Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Requirement to call Function Module in Workflow


I have been assigned to task wherein i have a requierement like this . I have created a workflow with step user decision with 2 options. Now the thing is that when user select one of option i need to call function module and based on result from

workflow i need to done further processing. Since there is no event to trigger workflow i am using function module

SAP_WAPI_START_WORKFLOW to trigger workflow .

Kindly suggest me how would i call Function module in workflow. i.e. What are the ways( or by which step type facilitate

me to call FM ) by which i should call FM and do further processing based on result.



Former Member

Follow the below steps inorder to call a fucntion module from the workflow

1. First you have to create either a business class or a Business object.... from SWO1 txn..

2. Create a method in the BOR and while created the system will prompt a message that would you like to create by using any FM here you need to specify the name of the FM that you want to use in the workflow...

3. ONce the method is created and the code will be generated automaticlaly by the system.. and then you have to create a standard task from PFTC txn..

4. Once the task is created then you have to use the same task in the workflow.. by creating a activity step ...

That's all..

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question