on 11-04-2009 5:10 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.