cancel
Showing results for 
Search instead for 
Did you mean: 

Send email when Forward a work item

marcoantonio_romerosanche
Active Participant
0 Kudos

Hello,

I have this scenario.

A workflow workitem is with the correct agent approver and he got the email notification to release the purchase requisition.

Now, when he does the forward workitem to another agent, the workflow works, but we need also to send an email to the new agent who was sent the workitem.

how should we to proceed in the Workflow or activation of a event?

Accepted Solutions (1)

Accepted Solutions (1)

keohanster
Active Contributor

I don't think that secondary methods will help here - so I recommend that you take a look at SAP_WAPI* functions - perhaps SAP_WAPI_FORWARD_WORKITEM - you could piggyback the email functionality on to the forwarding. I have not used this WAPI myself though.

Good luck,

Sue

Answers (3)

Answers (3)

raghava_b
Discoverer
0 Kudos

Step 1) Implement the program exit in the User decision task. i.e., by providing a custom class name that implements the Interface 'IF_SWF_IFS_WORKITEM_EXIT' in it.

Step 2) In the 'event_raised' method of the class get the header details. Example code: data(ls_header) = im_workitem_context->get_header( ).

step 3) Now pass the work item id from ls_header to function module 'SAP_WAPI_GET_WI_AGENTS' to get the user id to which the workitem is forwarded.

step4) Now use BCS classes to send mail to the forwarded class.

 

former_member376779
Participant
0 Kudos

Hi, I have the same problem, did found something to solve it?

Best regards

karthik_snair
Participant
0 Kudos

Hi marcoantonio.romerosanchez2,

Did u get the solution, I also have the same requirement.

Please let me know how did u resolve it.

Thank You.