cancel
Showing results for 
Search instead for 
Did you mean: 

Send custom email to an external server.

Former Member
0 Kudos

Hi,

Is it possible to use a FM that sends some texts to an external email recipient? like the employees email server? or hotmail or whatever email server?

I need to send some error log files to some email recipients in a custom RFC implementation.

Any comments? I will post reward points.

Regards,

Gerardo.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Is is that you want to send some attachments along or the error message will be part of text . ???

Have you seen tcode SCOT where we do configuration of mail for SRM.

regards,

Nimish Sheth

Former Member
0 Kudos

Nimish:

>><i>Have you seen tcode SCOT where we do configuration of mail for SRM.</i>

I already have the proper settings in SCOT TC... SRM it's already sending mails to the vendors on PO's, etc..

>><i>is that you want to send some attachments along or the error message will be part of text . ???</i>

It will be the same if i attach a plain text log file or if i create the log as part of the mail text....

Thnx 4 the help.. i will review your replys.

regards,

Gerardo.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gerardo,

There are API's to send custom email to an external server.. If you are working on WAS 640, you can look at the class CL_BCS to send a mail. Else you can use the function SO_NEW_DOCUMENT_ATT_SEND_API1.

The BASIS team will have to set up the connectivity for the same in the transaction SCOT.

BR,

Disha.

Pls reward points for helpful asnwers.

Former Member
0 Kudos

Disha,

I have reviewed the CL_BCS class, it seems to be easy to use/implement... Because i've also checked the FM SO_NEW_DOCUMENT_ATT_SEND_API1 but the parameters in this one are not so clear for me..

Tell me what do you think that will be easier to use: the class Vs. the FM..

Basis hava already done the SCOT setup...

Thnx, please reply your comments.

regards,

Gerardo.

Former Member
0 Kudos

Hi,

Easier to use would be the FM..Go for it.

BR,

Disha.

Pls reward points for helpful answers.

Former Member
0 Kudos

Disha,

I have already posted the reward points fella... I appreciate your helpful answers...

Do you have a reference about how to use that FM, i mean how do i use the Importing and Tables parameters, cuz some of them are not so clear, like:

Importing

- PUT_IN_OUTBOX

Tables

- PACKING_LIST

- OBJECT_HEADER

- OBJECT_PARA

- OBJECT_PARB

Best regards,

Gerardo.

Former Member
0 Kudos

Hi,

I dont have system access now...So will send you asap a ref code....Your mail ID?

BR,

Disha.

Pls reward points for helpful answers.

Former Member
0 Kudos

Disha,

My email gramon@ebpartners.net

Thnx a lot man... I will be waiting for your msg.

Regards,

Gerardo.

Former Member
0 Kudos

Disha,

Can you please send me that ref code for the function module for sending mail.

My emailid is kruparav@gmail.com

Thanks,

Rupa