Skip to Content
author's profile photo Former Member
Former Member

Adding Attachments in the message

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2010 at 08:13 PM

    Use Java or ABAP mapping.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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..

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2010 at 10:45 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.