on 10-17-2011 6:22 AM
Hi all,
I have the below requirement:
A pdf file is sent by the source system to PI. Based on the file name, the receiver Email address has to be determined and the pdf file has to be sent as an attachment without any changes or modifications in the content(as-is).
Since, the pdf file has to be sent as is, there is no need to read the content of the file. But, since we need the email address based on the filename, dynamic configuration or Mail package has to be used.
Now, the problem is, since mapping is involved - the message is expected to be parsed to XML. But, the requirement is not to read the file but send the file as an attachment as it is.
Kindly request you to explain how this can be done - (Sending a pdf file as an email attachment without reading the content and determining the Email Address based on filename).
Regards,
Subbu.
Hi Subbu,
Have you tried this http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3202. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
Regards,
Naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can do this by using Base64 encoding and passing it to mail content.
approach: creaete 2 mappings 1.java mapping to encode pdf file into base64,& inside create xml of encoded base64 and name (dynamic file name) 2.normal mapping ..source is output of java mapping to mail package(target) ..any help in this post ..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
do a search with term "PayloadSwapBean", option which is used in MAIL adapter, you will certainly find your answer for flow: "pdf -> PI -> Mail with this pdf in attachment".
Have also a look on this SAP help page: [http://help.sap.com/saphelp_nw70/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm] and especially this paragraph: "If you want to forward e-mail attachments in XI attachments, set the Keep Attachments indicator.
You use the PayloadSwapBean module to replace the application payload with one of the attachments."
Regards;
Mickael
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.