09-23-2011 9:10 PM
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
09-23-2011 10:19 PM
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