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

"Structure change at field level" error while creating a database table (Veri tabanı tablosu yaratırken alınan "Structure change at field level" hatası)

Transport function only active within customizing client message no. FK004 (Taşıma işlevi yalnızca uyarlama üst biriminde etkin İleti no. FK004)