Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SO_OBJECT_SEND

Former Member
0 Likes
656

Hi can i use SO_OBJECT_SEND function module to send extrenal mails like yahoo and gmail...

Regards,

Sunil.K

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
582

Hi,

Check this...

SO_DOCUMENT_SEND_API1

********Reward points if found useful

3 REPLIES 3
Read only

Former Member
0 Likes
583

Hi,

Check this...

SO_DOCUMENT_SEND_API1

********Reward points if found useful

Read only

Former Member
0 Likes
582

Hi,

use 'SO_NEW_DOCUMENT_SEND_API1' to send mail to external.

One of the difference is in FM SO_NEW_DOCUMENT_ATT_SEND_API1, we cannot provide originator or sender's name or email id. Whereas, this is possible in FM SO_OBJECT_SEND in field ORIGINATOR.

Here some sample code. Did your basis team configure SAPconnect?

code

report zrich_0003 .

data: maildata type sodocchgi1.

data: mailtxt type table of solisti1 with header line.

data: mailrec type table of somlrec90 with header line.

start-of-selection.

clear: maildata, mailtxt, mailrec.

refresh: mailtxt, mailrec.

maildata-obj_name = 'TEST'.

maildata-obj_descr = 'Test'.

maildata-obj_langu = sy-langu.

mailtxt-line = 'This is a test'.

append mailtxt.

mailrec-receiver = 'somewhere.com'.

mailrec-rec_type = 'U'.

append mailrec.

call function 'SO_NEW_DOCUMENT_SEND_API1'

exporting

document_data = maildata

document_type = 'RAW'

put_in_outbox = 'X'

tables

object_header = mailtxt

object_content = mailtxt

receivers = mailrec

exceptions

too_many_receivers = 1

document_not_sent = 2

document_type_not_exist = 3

operation_no_authorization = 4

parameter_error = 5

x_error = 6

enqueue_error = 7

others = 8.

if sy-subrc 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

[/code]

Regards,

Raj.

Read only

Former Member
0 Likes
582

hi

check this

Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface :

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

Refer the following link for Email Config:

http://help.sap.com/saphelp_nw2004s/helpdata/en/af/73563c1e734f0fe10000000a114084/content.htm

Also, refer the following links for sending emails to external email id's:

sending mail with attachment

http://www.sap-img.com/abap/sending-email-with-attachment.htm

sending mail with attachment report in background

http://www.sap-img.com/abap/sending-mail-with-attachment-report-in-background.htm

sending external mail thru SAP

http://www.sap-img.com/fu016.htm

Also, refer the following link:

http://www.sapgenie.com/abap/code/abap31.htm

http://www.sapgenie.com/abap/code/abap25.htm

http://www.sapgenie.com/abap/code/abap20.htm

http://www.sapgenie.com/abap/code/abap15.htm

http://www.erpgenie.com/its/email.htm (automatic e mail confirmation when a sales order is created)

Web log for sending Email from SAP system:

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

How to send email from sap to other mail system( through FM):

Problem while sending mail

Cheers

snehi chouhan