cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Mapping

Former Member
0 Kudos

Hi All,

I have source structure like following..

<Record> 1:Unbounded

<Header>1:1

<Key></Key> 1:1

<EID></EID> 1:1

<ENAME></ENAME> 1:1

<Detail> 1:Unbounded

<Key></Key>1:1

<Company></Company> 1:1

<Location></Location> 1:1

I have Following Target Structure

<Header>0:Unbounded

<EID></EID> 0:1

<ENAME></ENAME> 0:1

<Detail> 0:Unbounded

<Company></Company> 0:1

<Location></Location> 0:1

I mapped using Node functions but not getting the result in proper format.

My expected format is

<Header>

<Detail>

<Detail>

<Detail>

<Header>

<Detail>

<Detail>

Please provide me with some inputs for this mapping ..

Regards,

Monish

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

> I mapped using Node functions but not getting the result in proper format.

> My expected format is

> <Header>

> <Detail>

> <Detail>

> <Detail>

> <Header>

> <Detail>

> <Detail>

What output are you getting ?

Pooja

Former Member
0 Kudos

Hi Pooja,

Iam getting the following format..

<Header>

<Header>

<Details>

<Details>

<Details>

<Details>

Former Member
0 Kudos

Hi Monish,

Could you provide a sample input file, the output are you getting at present and your expected output?

That would help the group to direct you in a right direction.

Pooja

Former Member
0 Kudos

Hi Pooja,

Iam working on the scenario http://wiki.sdn.sap.com/wiki/display/XI/BasicFileAdapterContentConversion , but iam not getting the output XML file as required.

Regards,

Bharath

Former Member
0 Kudos

Hi Monish,

Its one to one mapping ( Header field of the target should be map to Record Source field).

It seems that on the target side your "Header" and "Detail" are the same level. As per the wiki link, your target Detail should be under the Header node

Your target structure should look like :

<Target>
    <Header>0:Unbounded
          <EID></EID> 0:1
           <ENAME></ENAME> 0:1
            <Detail> 0:Unbounded
                     <Company></Company> 0:1
                      <Location></Location> 0:1
            </Detail> 
    </Header>
</Target>

Hope this helps.

Pooja