on 03-03-2014 1:04 PM
Hello PI Experts,
Can anyone pls provide me Mail adapter module parameter details for xml to txt file conversion. I have found a few but none of them are working, can you pls provide me some active links.
Thanks,
Sri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I need MAIL Adapter module transformation parameter for converting my attachment from xml to text file -
I have gone thro few forums and modified my comm channel, but still getting xml file as an output attachment instead of a text file.
Can anyone please suggest me how to change the module parameters to covert from xml file to text.
I have added these module processing - please help.
Processing sequence
localejbs/AF_Modules/MessageTransformBean - Local Enterprise Bean - XML2Plain
sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean - Local Enterprise Bean - Mail
Module configuration
XML2Plain - xml.endSeparator - 'nl'
XML2Plain - xml.fieldNames - Field1,Field2,Field3
XML2Plain - xml.fieldSeparator - | |
XML2Plain - Transform.Class - com.sap.aii.messaging.adapter.Conversion
XML2Plain - Transform.ContentDisposition - attachment;filename="extract_p.txt"
XML2Plain - Transform.ContentType - xml/plain;charset='UTF-8";name="extract_p.txt"
XML2Plain - xml.recordsetStructure - Details
Thanks,
Sri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
>>I need to send text file as an attachment without xml strings.]
So in ur receiver adapter u are getting main message along with XML attachment and u want to pass attachment as a text file?
OR
u want to convert main xml document into text and then set the same as attachment?
Thanks
Amit Srivastava
Hi Amit,
I have to send the main xml document as a text attachment, I have done this.. but I'm getting the output attachment with xml strings, so I need to remove these strings n pass only the values..
Output what I'm getting in the attachment is:
<?xml version="1.0" encoding="UTF-8"?><ns0:MT_Emp_Rec xmlns:ns0="http://xxxxxx.com/Concur/CO/GL_EmpPay"><Record><Emp_Key>27673</Emp_Key><Emp_ID>X100170839</Emp_ID><Emp_LastName>Hardy</Emp_LastName><Emp_FirstName>Ian</Emp_FirstName><Emp_MiddleName></Emp_MiddleName><Emp_CurrencyCode>GBP</Emp_CurrencyCode>
Output what I need as an attachment is:
27673|X100170839|Handy|Ian| |GBP|UNITED KINGDOM|3600|UK08|||4002||2000|103|10|3600/100339|SPECIALIST8SALESCTSFIELD||||Astin Coups-UK Travelers||INTPROF|No|123|ABC|N|N||0001|X100170839|UK-MOLSON COORS|UK|PAYM||GB85LOYD30000200525621|LOYDGB2LCTY|GBP||
Thanks in advance,
Sri
Use the module parameters.
Regards,
Pranav
Refer below link
Hi ,
Use Message transformation bean to convert from xml to csv .
http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm
Do you want to send the csv payload in mail body or as an attachment ?
Regards
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
U can use Message Transform bean to convert XML into text
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srikanth,
Not clear with your requirement.
Can you explain your scenario detailed.
Thanks,
Satish.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.