Skip to Content
author's profile photo Former Member
Former Member

Need .ZIP file as an attachment in email

Hi,

I have developed a report which converts the ALV grid into a PDF and into .ZIP file. Finally ZIP file gets downloaded using GUI_download.

My client wants the .ZIP file as a mail attachment but not as a download.

Here is my final bit of code.

CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'

EXPORTING

buffer = zip_file

IMPORTING

output_length = bcot1

TABLES

binary_tab = file.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

bin_filesize = bcot1

filename = file_path

filetype = 'BIN'

TABLES

data_tab = file.

How to replace the Download with email? I tried using SO_NEW_DOCUMENT_ATT_SEND_API1 but I am not getting email. I also check in SOST for my transmission request but I ma not able to find my request.

Edited by: Vjai.. on Sep 23, 2011 10:17 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2011 at 09:19 PM

    if your system > 4.6. check this blog.

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

    take care.

    Ça─čatay

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.