on 05-25-2012 9:44 AM
Hi Aerv,
Thank you so much for your reply.
Basically, I have an Email Attachment to iDoc (Attachment name will be different for all the file) scenario but I am struggling to read the special character in the email attachment.
XML Contains this
<Eisenhüttenstr. 99>
When PI reads the email it will change the character to
<Eisenhüttenstr. 99>
I can see 2 payload in ABAP Stack
MailMessage (text/xml;charset="utf-8")
MailAttachment-1 (application/octet-stream;name="file1")
Is there anyway I can change the MailAttachment-1 (application/octet-stream;name="file") to MailAttachment-1 (text/xml;charset="utf-8")
I have tried MessageTransformBean but it didn't change the MailAttachment encoding.
Adapter Module
localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean contentType
contentType Transform.ContentType text/xml;charset="utf-8"
Can somebody please tell me how to solve this problem
Thanks,
Iqbal
Hi Iqbal,
I think this info above is what we were all missing in your previous posts. If you are simply trying to replace the mail content with mail attachment as a main payload, use PayloadSwapBean, it should do the job for you. Most probably you won't even have to worry about the content type then, but just in case, you could use PayloadSwapBean first, then MessageTransformBean (since it is after the payload swap, it would apply to the attachment payload already) and only then the main module of your sender adapter.
Regards,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Greg,
Thanks for your reply.
My question is that can we use PayloadSwapBean for different file names because the file name of the attachment will be different and based on Material Name and number.
Can we use PayloadSwapBean to read any files? If so can you please tell me how
I have found this but not sure if this is going to solve my problem or not.
Can you please suggest?
Thanks
Iqbal
Dear Greg,
I tried this but now I am getting mapping error.
I have done the following
In the ESR
I have mapped the Email Package content to Target side single field
#
Error in ABAP Stack
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--
Request Message Mapping
-->
</SAP:Error>
All I want is read the email attachment content to be mapped to target side.
Please suggest
Thanks,
Hi,
Did you use PayloadSwapBean at first?
Please try removing quotes for "utf-8" like, text/xml;charset=utf-8
Also, try with respective charset for the language used.
-Zameer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.