cancel
Showing results for 
Search instead for 
Did you mean: 

FCC - File receiver Error ?

former_member189387
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member556603
Active Contributor
0 Kudos

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..

Answers (4)

Answers (4)

former_member189387
Active Contributor
0 Kudos

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

former_member189387
Active Contributor
0 Kudos

Hi All ,

Any help regarding the above ?

Thanks

V.Rangarajan

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member189387
Active Contributor
0 Kudos

Hi,

Thanks for your replies . Witout RecordType cann't we convert as flat file ? In my XML I don't have root element . I have only data elements .

Can anybody help on this ?

Thanks & regards.,

V.Rangarajan

ambili_jose
Explorer
0 Kudos

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