Skip to Content
avatar image
Former Member

Converting File Content.Unexpected XML format

Hello,

I need to convert file content in File Receiver Adapter.

In my opinion, i have unexpected XML format of a payload message. (At least, the format does not contain a structure element):

That is,

I have the XML message:

<?xml version="1.0" encoding="UTF-8"?>

http://sap.com/xi/BASIS"/>

I need to convert it into plane text format with fieldseparator.

How to convert this xml message into plane text format if it does not contain any structure elements (that is, <struc1> <field1>value</field1> </struc1>) according to help guide?

How should i configure RecordSet in File Adapter?

I am confused.

Thank you

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 18, 2007 at 01:32 PM

    Igor,

    Are u getting the format from the source?

    http://sap.com/xi/BASIS"/>

    If yes, then create one more data type with structure

    <Record>

    <ID/>

    <BirthDay/>

    <Title/>

    <Name/>

    <LastName/>

    </Record>

    And do direct mapping. So now you can easily configure the content conversion for the target format isn't it?

    Its my thought, I don't know whether its feasible for you or not..

    raj.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Justin Santhanam

      Thanks to all !

      Yes, indeed. I was to fulfill a correct procedure of creating inbound message type.

      My mistake was uncorrected type for "type" field of main data type name . This field was defined as xsd:string and i cannot create "Subelement" for main data type (it was grey). This field should be blank and then i could create correct structure.

  • avatar image
    Former Member
    Sep 18, 2007 at 01:56 PM

    Hi,

    Where are you getting XML source message from?

    As Raj pointed out, it looks like a mapping problem and not content conversion problem. Since you need to perform content conversion on receiver side, try to get appropriate structure as output of mapping. That should ease the content conversion task automatically.

    Bhavish

    Add comment
    10|10000 characters needed characters exceeded