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

Error while attaching the document using Method add_attachment

Former Member
0 Likes
410

Hello Friends,

We are getting an error while using the BCS Class Method for attaching the documents to the mail.

We are using method: add_attachment()

For this I am passing the parameters:

attachment_type: PDF

attachment_subject: XXXXXXX

att_content_hex: content_hex[] "Internal table

The system is throwing error message X_ERROR.

Friends please help me in how to rectify the error message.

Thanks and Regards

Pradeep Goli

1 REPLY 1
Read only

Former Member
0 Likes
322

Hi,

Please code as below.

data: binary_content type solix_tab.

CALL METHOD Document->add_attachment EXPORTING i_attachment_type = u2018PDFu2019

i_attachment_subject = u2018My attachmentu2019 i_att_content_hex =

binary_content.

Regards

chitra