‎2009 Aug 13 3:57 PM
Hi all,
I am using FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send an Excel attachment as e-mail to external recipients. The problem that i face is, if the e-mail is having more that some 5 records, mail is not getting sent and following error message i am getting in my SAP outbox.
No delivery to because message too long, maximum length 000002097152 bytes
Is there any way to solve this? any means to compress or zip the data size?
Also, i would like to know if there is any option like 'FIT TO CONTENTS' can be done in the excel attachment from ABAP code. Because inside the excel attachment which i get i am having so much of spaces for each cell and i m not able to do 'FIT TO CONTENTS' .
Thanks in advance!
‎2009 Aug 13 4:02 PM
Hi!!!!Please go through the documentation of the FM.Hope it will help you..
I faced the same issue of spaces appearing in the excl sheet
to solve it ,i breaked down the data in my internal table ,so that no data record in the final table for FM has length gretaer than 255.
‎2009 Aug 13 4:02 PM
Perhaps you need to try with a different file type, I can't say which, because only you know what the receivers need to receive.