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

Problem with e-mail attachments.

STALANKI
Active Contributor
0 Likes
479

Iam using cl_document_bcs method add_attachment for sending mails with attachments.Iam able to send the attachments but however the files are incorrect as each row in a file contains > 255.

I cannot use any API for triggering it in HTML formats etc as I need to trigger it from XI and I want to trigger using add_attachments.is there any work around for this limitation?

4 REPLIES 4
Read only

Former Member
0 Likes
462

When calling the add_attachment method are you specifying the I_ATTACHMENT_SIZE also ?

Thanks & Regards,

Renjith

Read only

STALANKI
Active Contributor
0 Likes
462

Renji,

Yes.But the problem is not due to size of doc.I will map every record a file into the internal table of length 255.

So I loose out the data.Any ideas??

Read only

Former Member
0 Likes
462

Hi Sravya,

Did you manage to find any workaround to your problem? I am facing the same problem.

Read only

STALANKI
Active Contributor
0 Likes
462

You can try breaking the file at every 255th character into the second line..:)

That z best option..

But still there is a data loss when I give the extension other than .txt .but works perefct with .txt extension.