on 12-17-2015 8:54 AM
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
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 .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
Do you mean email, or do you mean workitem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.