Skip to Content
author's profile photo Former Member
Former Member

Send Email From SAP Cloud For Customer Using SDK Development

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 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 =;


instEmailTxtColl = instEmail.TextCollection.Create();

elEmailTxtCollTxt.TypeCode.content = TXT_TYPE_BODY_TEXT;

instEmailTxtCollTxt = instEmailTxtColl.Text.Create(elEmailTxtCollTxt);

elEmailTxtCollTxtCntnt.Text.content = this.ebody.content;



I am following the send mail code from this post

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 02, 2014 at 09:55 AM

    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.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.