cancel
Showing results for 
Search instead for 
Did you mean: 

Send Email From SAP Cloud For Customer Using SDK Development

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

vinodkumar_kommineni
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks Vinod again you correct and valuable reply ....

Many Thanks

Mithun Suthar

Former Member
0 Kudos

Hi Vinod ,

May i add the attachment to the mail ? if yes then how to select the attachment and send to mailer?

Please let me know if you know the process of that....

Many Thanks

Mithun Suthar

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi Mithun,

Its already blogged here

Regards

Vinod

Former Member
0 Kudos

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

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi Mithun,

Probably the Adobe Forms should help you ?

Regards

Vinod

Answers (0)