cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Attachments in the message

Former Member
0 Kudos

Hi,

We have an Invoice IDoc to HTTP scenario.We need to add some attachment into the message we send to the HTTP receiver.

I just wanted to check what are the possible options for the Attachments(some excel file or other files)

Receiver needs the attachment in "multipart MIME envelope"

i.e the document should have

" Content-type: multipart/mixed; boundary=<Unique Boundary Name>"

with the actual payload XML and the attachment doc info separated by given boundary

Now I need to check the possible options for me to develop the solution to handle this scenario.

Since IDoc doesn't support attachment, I need to do it at PI's end after mapping and before sending the document

to Receiver Adapter.

Please let me know your inputs.

Thanks

Vijay

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You might have to create an output something similar to the one below (assuming you wanted to attach a JPEG file) :

MIME-Version: 1.0

Content-Type: multipart/mixed; boundary="MIME_BOUNDARY_UNIQUE_123"

--MIME_BOUNDARY_UNIQUE_123

Content-Type: text/xml

<<<<<< XML PAYLOAD >>>>>>>>

--MIME_BOUNDARY_UNIQUE_123

Content-Type: image/jpeg

Content-Transfer-Encoding: binary

<<<<RAW JPEG IMAGE>>>

--MIME_BOUNDARY_UNIQUE_123

Try out whether you can achieve this via ABAP mapping.

Regards,

TK

Former Member
0 Kudos

Use Java or ABAP mapping.

Former Member
0 Kudos

Thanks for the reply.. Yes I know. Java and ABAP mapping is the option. And I would go for ABAP(as I know it better) but how to add the multipart attachment with the actual message itself is the main problem for me..