cancel
Showing results for 
Search instead for 
Did you mean: 

No Mail Body while using FM SO_DOCUMENT_SEND_API1 in WD Component

Former Member
0 Kudos

Hi All,

I am using FM 'SO_DOCUMENT_SEND_API1' in a WD Component for sending mails.

First of all i just to know can we use this FM without Attachment ???

As i just have to send mail without any attachment.

The Mail is properly send but without any body .

I mean there is no content in the mail body .

There is no error in the FM but when i check the mail (for checking myself) ,it was blank without any body.

So please help me for the same.

Regards,

Vishal Chauhan

Accepted Solutions (0)

Answers (1)

Answers (1)

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

When you use that function module in which paramater did you pass the mail body..

Please let me know what values did you pass for the importing paramaters of the function module .

Regards,

Priya

Former Member
0 Kudos

Hi Priya,

My problem was solved by using other FM ie. SO_OBJECT_SEND.

Now I just want to know can we use any hard code email id for sending the mail.

CALL FUNCTION 'SO_OBJECT_SEND'

EXPORTING

object_hd_change = wa_head

object_type = 'RAW'

outbox_flag = 'X'

originator = 'SY-UNAME'

originator_type = 'B'

TABLES

objcont = i_objcontent

receivers = i_receiver

EXCEPTIONS

OTHERS = 1.

I want to Hardcode the sender id say 'SAPUSER' So that any mail will come from a common ID not from Indivisual id.

So is there is any Pramametre in this FM where i can hard code the mail id like xyz at y.com

Regards,

Vishal Chauhan

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

First, this question doesn't really belong in the Web Dynpro ABAP forum. Just because you might be calling some function module or other block of logic from WDA, doesn't necessarily make your question WDA relevant. You are just wanting to know how to use the send email functionality here. Nothing in your question is effected by the fact that you are calling from WDA. In the future, place such questions in the ABAP General Forum.

For sending of email, you should really consider using the CL_BCS class based email interface. This API (in addition to being OO based) allows for send immediately and allows you to easily control who the sender ID is.

/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface