on 04-22-2008 1:43 PM
Hi Friends,
I have xml as in FTP
- <xim:Mail xmlns:xim="http://sap.com/xi/XI/Mail/30">
<Subject>Test mail from test</Subject>
<From>" t"<xxx attherat test.co.in></From>
<To>"y"<yyy attherat test.co.in></To>
<Content_Type>text/plain;charset="us-ascii"</Content_Type>
<Date>2008-04-22T10:23:45Z</Date>
<Message_ID><93D7B805E82667439CD104728E47C58912CE1546 attherat BALAKMB01.test.co.in></Message_ID>
<Content>This is content </Content>
</xim:Mail>
I would like to get output like
Test mail from test , xxx attherate t.co.in , yyy attherat test.co.in ,This is content
It signifies i have to get like Subject , From, To , Content .
Scenario is i have to read a mail with conent along with from and to address write those details in flat file
I am getting the following error in the Content Conversion
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'xim:Mail' found in document', probably configuration error in file adapter (XML parser error)'</SAP:AdditionalText
May i know what exactly i have to give in Record Structure and Parameters ?
Thanks & regards.,
V.Rangarajan
Hello Ranga Rajan,
Hope File content conversion blgs are helpful to you..
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Thanks,
Satya Kumar
Reward if it is useful..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Friends ,
Problem solved by , Using ximail30_xsd.xsd (Which is available in Market place), as Source dataype which recives the PAYLOAD from Mail sender and in target data type i have added structure as
Mt_XXX
-->Root
--->Item
- subject
- From
etc.,,
Thanks
V.Rangarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All ,
Any help regarding the above ?
Thanks
V.Rangarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
i think u gave a Recordset Structure Name xim:Mail ....
Thats Not your Structure Name...
Try the bellow structures....
Record set structure:Subject,From,To,Content
Parameters:
Subject.fieldSeparator value",".
From.fieldSeparator value",".
To.fieldSeparator value",".
Content.fieldSeparator value",".
Content.endSeparator value"nl".
otherwise use "AF_Modules/StrictXml2PlainBean" module....
[http://help.sap.com/saphelp_nw04/helpdata/en/44/748d595dab6fb5e10000000a155369/content.htm]
its also help your requirement....
*Award Points if its Useful*
Regards,
Prakasu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ranga,
The XML structure of your target file does not comply to the norms of file content conversion in File Adapter.
You need to maintain a proper hierarchy, please go through the following link:
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
you need a hierarchy of atleast 2 levels.
Thanks,
Varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ranga,
U require atleast One node to perform file content conversion .
Refer the help document below:-
[http://help.sap.com/saphelp_nw70/helpdata/EN/d2/bab440c97f3716e10000000a155106/frameset.htm]
It says-
"The expected XML structure contains the structure as nodes filled with any number of elements without additional subnodes".
So i guess you will have to change your XML structure with atleast One node.
Regards,
Ambili
User | Count |
---|---|
93 | |
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.