Sending e-mail with zipped xls attachment via ABAP (ABAP aracılığı ile sıkıştırılmış xls eklentisini mail atmak)

*----DEFINITIONS(Tanımlamalar)---------------------

DATA: gv_file type string,
gv_zippedhexfile type xstring,
go_zip type ref to cl_abap_zip,
xl_content type xstring.

DATA binary_content type solix_tab.

*----Zipping operations(Sıkıştırma İşlemleri)---------
gv_file = 'FILENAME.xls'. "Zip file name

create OBJECT go_zipper.
go_zip->add( name = gv_file
content = xl_content ).

gv_zippedhexfile = go_zip->save( ).

refresh binary_content .

call function 'SCMS_XSTRING_TO_BINARY'
exporting
buffer = gv_zippedhexfile
tables
binary_tab = binary_content.
*-------------------------------------------------------

--ENGLISH--
After these operations you get binary value of xls content, then use it for sending mail function steps.


--TÜRKÇE--

Bu adımlar tamamlandıktan sonra xls dosyanın binary içeriğini elde etmiş oluyoruz. Daha sonra bu binary içerik e-posta gönderim adımları için kullanır.

Comments

Popular posts from this blog

How to add transaction and new folder in SAP Menu (SAP Menüsüne işlem kodu ve klasör eklemek)