2011 Mar 30 7:34 AM
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.
2011 Mar 30 8:54 AM
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
2011 Mar 30 11:39 AM
> 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:
2011 Mar 30 9:44 AM
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.
2011 Mar 30 1:26 PM
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.
2011 Mar 30 1:31 PM
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
2011 Mar 30 1:42 PM
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
2011 Mar 30 1:49 PM
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.
2011 Mar 30 1:53 PM
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.
2011 Mar 30 2:01 PM
Ok, if there is any solution - please give a feedback. I just wanna know if my suggestion is right.
2011 Mar 30 2:12 PM
2011 Mar 30 2:14 PM
Have you a Skype ID, if so, ca you provide me ?
It's easier the communication ,so.
Thank you.
Daniel.
2011 Mar 31 9:00 AM
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.
2013 Sep 27 1:58 PM
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.
2013 Sep 27 4:37 PM
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.