Application Development 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: 

Email sending with attachment

Former Member
0 Kudos
534

Hello,

I have the following problem :

I have an .CSV file in a specific Directory, an I want to attached that file in a email in order to send the file to a specific email address.

The file dimension can be over 200 MB, and my question is if it's exists some restrictions about the file length .

Please help me with some documentation or something code which fits with my problem.

Thank you in advance !

Best regards,

Daniel.

14 REPLIES 14

huseyindereli
Active Contributor
0 Kudos
321

Hi ,

You can use

CL_ABAP_GZIP_BINARY_STREAM

CL_ABAP_GZIP_TEXT_STREAM

to compress your data. Sending that kind of large file via email seems not effective even there are no restrictions. There could be some other way for the related process.

Regards

0 Kudos
321

> Hi ,

>

> You can use

>

> CL_ABAP_GZIP_BINARY_STREAM

> CL_ABAP_GZIP_TEXT_STREAM

>

> to compress your data. Sending that kind of large file via email seems not effective even there are no restrictions. There could be some other way for the related process.

>

>

> Regards

Hi Daniel,

I must agree with Hüseyins Statement. I mean do you ever experienced that you have found an 200 mb e-mail in your mailbox?

I would say you should use the BCS-Class to send an e-mail or some kind of FM like SO_DOCUMENT_SEND_API1.

Maybe you can find some information of how to send e-mail in this Thread:

Former Member
0 Kudos
321

Hi,

Thank you very much for your support.

First I am trying to sent an email . I tryied the following code under the website:

http://www.sap-basis-abap.com/abap021.htm

I encountered th Exception 2 Document could not be sent to the recipient...

I set before the address recipient...

Please help me with some advice in order t handle that issue, or provide me some code which was tested before and sent an email to a recipient.

Thank you very much in advanced.

BR,

Daniel.

Former Member
0 Kudos
321

Hi,

Thank you very much for support.

I tried the examples from BCS_* Class and In am trying to send an email.

I get the following error when I call the method send_request from CL_BCS Class .

Error Type : DNS_SREQ

Thank you for support.

Daniel.

0 Kudos
321

Hi Daniel,

please check up the Transaction "SCOT". The node "SMTP" should be created and filled with the right entries. I would ask the administration, if everything is ok.

Greetz Gollmer

Former Member
0 Kudos
321

Hi,

Thank you very much.

I run the transaction 'SCOT' and I see the SMTP Node.

But I don't know if the settings are correctly ...

Probably must Proxy settings added ...

I don't know who knows this things, the person who installed the SAP or somebody from SAP Support ?

Thanks in Advance

0 Kudos
321

Hi,

actually there has to be somebody in your company who runs the administration of your SAP-system. These guys must check this settings. The SAP-Support does not know the system-landscape of you company - just don't try this way.

Former Member
0 Kudos
321

Hi,

I will ask forward in order to find the right person who handle the SAP System Administration.

Thank you very much for your support.

Daniel.

0 Kudos
321

Ok, if there is any solution - please give a feedback. I just wanna know if my suggestion is right.

Former Member
0 Kudos
321

Ok, I will do it !

Thank you in advance .

Daniel.

Former Member
0 Kudos
321

Have you a Skype ID, if so, ca you provide me ?

It's easier the communication ,so.

Thank you.

Daniel.

Former Member
0 Kudos
321

Hi,

Today I run again the same Report in order send an email.

It seems that all work fine.

But the email was not send, even if there are no error message.

I look in the transaction SCOT ...I see under the Error Tab ...number is 1 so, the email was not send.

Thank you for your support.

Daniel.

Joseph_BERTHE
Active Contributor
0 Kudos
321

Hello,

In my case i had this exception because my users didn't have address mail in their SU01.

I found it using SAP Business Workplace and sent a mail with it.

Kind regards,

Hope it will help.

rosenberg_eitan
Active Contributor
0 Kudos
321

Hi,

This a BIG mail message.

What is the business requirement in this case ?

Have you consider other solutions:

- Create a web site for the other party to get into.

- Create a web service.

- Use FTP.

- Let the remote party log in to your SAP (via VPN and all the required security).

Regards.