on 10-07-2010 5:47 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use Java or ABAP mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.