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: 

Need .ZIP file as an attachment in email

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

if your system > 4.6. check this blog.

/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abapversion-610-and-higherbcs-interface

take care.

Çağatay