Application Development and Automation 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: 
Read only

Email functionality

Former Member
0 Likes
354

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!

2 REPLIES 2
Read only

Former Member
0 Likes
318

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.

Read only

Former Member
0 Likes
318

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.