cancel
Showing results for 
Search instead for 
Did you mean: 

WF e-mail from ECC to SRM/EBP

massimiliano_riva
Active Participant
0 Kudos

Hi guys,

please an advice: I have implemented on SAP ECC the std wf blocked invoice for price diff. (WS20000397).

Requirement: a lot of user have a own user only on SRM/EBP and these users can not receive the wf e-mail sent in ECC so is it possible to let that these users which have only a SRM/EBP user can receive the ECC wf e-mail?

Please advice.

Thanks in advance

BR

Massimiliano

Accepted Solutions (1)

Accepted Solutions (1)

tapomay_sanyal
Participant
0 Kudos

Hi Massimiliano,

Yes it is possible to send mail but in a different way.

Could you tell me in your WF WS20000397 at which step you are willing to send mail or the send mail functionality exist?

Once you identify the step you can utilise program exit at step level to send mail to those user (you need to know there mail id btw or maintain in ECC side) using  SO_NEW_DOCUMENT_ATT_SEND_API1 FM.

If you share the exact step then based on the contents available i guess you can achieve the functionality and it that case would be able to help in terms of implementing workflow exit .

massimiliano_riva
Active Participant
0 Kudos

Hi Tapomay,

first of all thanks for the reply: in the image I shows to you one of the step in which I send the e-mail.

I have two wf (invoice blocked for price diff. and qty diff. both copy of standard but there are more steps, activities, conditions etc...)..I notice you that my issue is that these users don't have a SAP ECC user with the related e-mail but they have only a SRM/EBP user and obviously a e-mail address in Outlook.

Thanks again for a further advice

BR

Massimiliano

tapomay_sanyal
Participant
0 Kudos

Hi Massimiliano,

Try this procedure:

You have a simple option here replace your send mail step with a custom task and use SO_NEW_DOCUMENT_ATT_SEND_API1 FM to send mail to any mail address which is configured in SCOT.

A) In the custom task u write your business logic to determine the receiver and determine the receiver email address and send mail.

Kept the custom task as background task.

This will achieve your functionality in a simple way instead of using mail step.

Kindly inform in case of further details

BR

Tapomay

massimiliano_riva
Active Participant
0 Kudos

Hi Tapomay,

yes can you kindly detail me your solution?I have several points in SWDD in which my wf sends e-mail (related to some rules) to the ECC users and I would like that you drive me with some (general) steps on implement this custom task with FM SO_NEW_DOCUMENT_ATT_SEND_API1 which I guess I should implement in the business object...(for me BUS2081).

Thanks again!

BR

Massimiliano

tapomay_sanyal
Participant
0 Kudos

Hi Massimiliano,

You need to follow below steps to achieve the custom task.With this you can use this task anywhere in other workflows also where sending mail is required, another advantage is you can send mails in html formatting as this function module supports this.

Step A: Create a custom business object in SWO1 ,create a method inside which you will use the function module to send mail .

If you want to pass values declare key fields and attributes in the BOR object otherwise you can read the container of the method interface.

pass values you need in method like below:

workflow container---> step:Task container---> inside method use macros

Step B: Now you have your place where code to be written is ready, if you pass user id from workflow then write your business logic to map the user id to valid email address in this method and use the email address in relevant parameter of the function module.

As mail body you need to fill the table  contents_txt and pass it to the function module.usage of this function module is common and you can find several threads in scn.

Hope this gives an idea to proceed

This is a little programming extensive solution but this will give you feature of reusability in other workflows.

---BR----

Tapomay

Kindly mark the thread answered if your query is answered .

Do reach in case of further information

massimiliano_riva
Active Participant
0 Kudos

Thanks a lot Tapomay,

I will proceed by your suggest..

BR

Massimiliano

Answers (1)

Answers (1)

former_member185167
Active Contributor
0 Kudos

Do you mean email, or do you mean workitem?

massimiliano_riva
Active Participant
0 Kudos

Hi Rick,

ciao: I mean e-mail..Some user of EBP should have to receive the e-mail sent from ECC wf but they will not ever have a user on ECC but only they will always have a user on EBP.

Thanks for the interesting.

Ciao

Massimiliano

pokrakam
Active Contributor
0 Kudos

As pointed out by others, you can send mail to anyone. Thus the problem is to determine their email address. If you have the userID, you can build a function to retrieve the email address from SRM.