cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering a worklow from abap

former_member307541
Participant
0 Kudos

Hi All ,

I have a requirement where i have to trigger a workflow form my custom program ,such that after creating purchase document the creator hast to send mail with attachments to all the vendors who are related to collective number which we are giving as input and after the approval it has to trigger a smart form , well my concern is how do i pass the data from the program to workflow , how will the binding happen and How can I Trigger workflow from my selection screen

. Your suggestion will be very helpful to me .

Sandra_Rossi
Active Contributor

"Triggering a worklow from abap" is a good start for searching the web!

Accepted Solutions (1)

Accepted Solutions (1)

anjan_paul
Active Contributor

Hi,

you have to trigger event with parameter with RFQ no to trigger workflow. For attachment, in the workflow use a Activity step to populate attachment from RFQ no following by mail step to send it to receiver.

As Sandra suggested, there are lot of post in SCN

Answers (4)

Answers (4)

raymond_giuseppi
Active Contributor

First try to search with keywords like abap trigger workflow (There are already dozens of wiki and hundreds of thread) You should also search in online help, look for SWE_EVENT_CREATE or SAP_WAPI_CREATE_EVENT (seems you missed the EVENT concept)

Regards,
Raymond

former_member307541
Participant
0 Kudos

hai all,

Thanks for your valuable suggestions... I have implemented my first custom workflow successfully

bpawanchand
Active Contributor
0 Kudos

Hi Sundeep,

Probably, you can use Methods tab of the decision step where it can open a dialog box in MODAL view. You should try to make use of the section AFTER work item execution. In the BOR you are using create a method in which you can all your Module pool screens.

Thanks

Pavan

former_member307541
Participant
0 Kudos

Hi,

Thanks for replying,

I have created a class based triggering workflow successfully now i am able to trigger my workflow after clicking on Button.

Now my requirement is when ever my workflow triggers the PR creator will get a mail in Workflow inbox with an user decision Approval/Reject whenever he clicks on Approval a Zscreen should be called. I have created the Zscreen in module pool and I have created my workflow as shown below

my question is how can i call my custom screen to my custom workflow whenever approval button is clicked.