cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger a workflow when ABAP program get execute

Former Member
0 Kudos

Hi Experts,

I want to know how may i trigger a workflow when abap program get execute & output the result. Using the results ( duplicates found / not) the workflow should trigger the mail according to the results.

How do i implement this using a workflow. Or is there any workflow to do this job done?

ur kind replies highly appreciated.

Note : Excel file sent via lotus mail and validation part done by the abap program to check for the duplicates. Now the requirement is how to trigger a workflow when the abap get executed? If there's any duplicates need to send email notifications. Else have to create material by using BDC program.

It is very much useful if u can guide me step by step.

Regards,

Rashika.

Accepted Solutions (0)

Answers (3)

Answers (3)

saumya_govil
Active Contributor
0 Kudos

Hi Rashika,

You can use FM SAP_WAPI_START_WORKFLOW to make a call to your workflow in an ABAP program.

Regards,

Saumya

Former Member
0 Kudos

In your Abap Program before outputting the results, try to find out if there are any duplicates or not.

If so, set variable flag to "X".

If flag = X,

call the function module SAP_START_WAPI_WORKFLOW where you can pass the workflow template number and the workflow gets triggered.

else

workflow will not triggered.

Try this out.

Regards,

PR.

former_member186746
Active Contributor
0 Kudos

You can use FM SAP_WAPI_CREATE_EVENT to create an event.

You have to include this in your program though.

this FM has online documentation, or use a where-used on that FM to see how to use it.

Kind regards, Rob Dielemans