on 01-02-2014 9:30 AM
Hi Experts,
Scenario : Send Email to multiple recipients from Custom Solution.
I have created the custom solution for send email and the details are :
1) Business Object SendMail with elements (etitle , email , ebody ) and action (sendmail) as mention below.
businessobject SendEmail {
element etitle : LANGUAGEINDEPENDENT_LONG_Text;
element email : EmailURI;
element ebody : LONG_Note;
action sendmail;
}
2) in the sendmail action i have use this code for send mail .
import ABSL;
import AP.FO.Activity.Global;
//EmailActivity: Root node
var elEmailRoot : elementsof EmailActivity;
var instEmail;
// EmailActivity: define party node
var elEmailParty : elementsof EmailActivity.Party;
var instParty;
var TXT_TYPE_BODY_TEXT = "10002";
var elEmailTxtCollTxt: elementsof EmailActivity.TextCollection.Text;
var elEmailTxtCollTxtCntnt: elementsof EmailActivity.TextCollection.Text.TextContent;
var instEmailTxtColl;
var instEmailTxtCollTxt;
elEmailRoot.Name.content = this.etitle; //Here comes the title of the email
instEmail = EmailActivity.Create(elEmailRoot);
elEmailParty.PartyKey.PartyID.content = this.email.content;
instEmail.MessageToParty.Create(elEmailParty);
instEmailTxtColl = instEmail.TextCollection.Create();
elEmailTxtCollTxt.TypeCode.content = TXT_TYPE_BODY_TEXT;
instEmailTxtCollTxt = instEmailTxtColl.Text.Create(elEmailTxtCollTxt);
elEmailTxtCollTxtCntnt.Text.content = this.ebody.content;
instEmailTxtCollTxt.TextContent.Create(elEmailTxtCollTxtCntnt);
instEmail.Send();
I am following the send mail code from this post http://scn.sap.com/docs/DOC-33266
I have created the Object based screen and when i enter the details and press send button gives the below error
Can anyone have idea how to resolved this error and i don't know what is the sender 8000000270 and where i can find out the information of this sender.
Many Thanks
Mithun Suthar
Hi Mithun,
The first error is because I think you have your email id maintained for more than one party/BP in system?.
The error related to sender 8000000270 is specifying that the current user with which you are testing is not having a Email Id maintained for his/her BP. The number is nothing but the User BP number.
Regards
Vinod
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am already go through that blog but i can not understand how to select the attachment.
if i want to send the Sales Quote details created from COD with PDF then how i can do that ?
Any suggestion for this and if possible then from where i can find out the created Sale Quote pdf in Cloud For Customer?
I want to send the email with created sales Quote to the Account and Primary Contact mention in the Sales Quote details ....
Please if you have any idea about this share with me ....
Many Thanks,
Mithun Suthar
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.