Skip to Content
0
Former Member
Sep 23, 2011 at 08:10 PM

Need .ZIP file as an attachment in email

23 Views

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