cancel
Showing results for 
Search instead for 
Did you mean: 

Mail Adapter

Former Member
0 Kudos

Hi Experts,

I am new to PI, my secnario is file to MAIL.... i need to convert the xml doument in to txt file there is no FCC,i have used messageTansformBean and PayloadSwapBean..... i am bit coufusing with the parameter value Transform.ContentType if i need to convert into text i need to give the parameter as text/plan;charset=utf-8, if i need to covert in to word doc or xls which parameter value i need to use.

Is there any particular parameter values for the contentType and conversionType like for text it is like text/plan and for xml "text/xml"

If any particular parameter values please send me the solution.

Accepted Solutions (0)

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos

content type for word document will be application/msword

for excel it is application/ms-excel

Former Member
0 Kudos

Hi,

Thanks for reply,

Is there list for parameter values where can we find that one

Former Member
0 Kudos

MessageTransformBean parametrs and values:

Transform.contentType has the value charset=utf-8 and xml.conversionType has the value either StructPlain2XML/SimplePlain2XML

and refer below doc:

[MessageTransformBean |http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/16969]

..................................................

PayloadSwapBean:

swap.keyName where the attribute of payload-name is entered and swap.keyValue which holds the value of attribute

http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/16968

Former Member
0 Kudos

Hi,

Thanks,

only one charset is used or any other charcset if some thing else is used where can i find the charset list and also i need the list of contentType and conversionType paramenter values and we will use the StructPlain2XML/SimplePlain2XML only for convert the xml to falt file or xml file. pls corrcet me if am wrong

Former Member
0 Kudos

where can i find the charset list and also i need the list of contentType and conversionType paramenter values and we will use the StructPlain2XML/SimplePlain2XML only for convert the xml to falt file or xml file. pls corrcet me if am wrong

StructPlain2XML/SimplePlain2XML :

this can be used for converting text to xml format but you need to convert xml to plain so u can use below parameters.

1.Simple Conversion:

The XML structure of the source file should follow the same structure as the result of the SimplePlain2XML conversion.

xml.conversionType SimpleXML2Plain

2.Complex Conversion

xml.conversionType StructXML2Plain

please refer last point in below link:

http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm

ex:

http://forums.sdn.sap.com/thread.jspa?threadID=1979947

Edited by: bhavanisankar.solasu on Feb 20, 2012 5:32 PM