Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Help with mapping

Hello! I have this structure:

<>

<INN>5555</INN>

<KPP>6666</KPP>

<TaxNumbers>

<type>ru1</type>

<number>7777</number>

</TaxNumbers>

<TaxNumbers>

<type>ru2</type>

<number>8888</number>

</TaxNumbers>

</>

And I need to have target structure as:

(TaxNumbers is unbounded)

<>

<TaxNumbers>

<TaxType>INN</type>

<TaxNumber>5555</number>

</TaxNumbers>

<TaxNumbers>

<TaxType>KPP</type>

<TaxNumber>6666</number>

</TaxNumbers>

<TaxNumbers>

<TaxType>ru1</type>

<TaxNumber>7777</number>

</TaxNumbers>

<TaxNumbers>

<TaxType>ru2</type>

<TaxNumber>8888</number>

</TaxNumbers>

</>

Could you help me please?

Former Member
Former Member replied

Hi,

Try This:

Replicate Target Structure <Tax Number> 3 times.

Map <INN> to 1st <Tax Number>.

---> Map Constant value INN to 1st <Tax Number> -<Type>

---> Map <INN> to 1st <Tax Number> -<Number>

Map <KPP> to 2nd <Tax Number>.

---> Map Constant value KPP to 2nd <Tax Number> -<Type>

---> Map <KPP> to 2nd <Tax Number> -<Number>

Map <Type> to 3rd <Tax Number>.

-->Map <Type> to 3rd <Tax Number> -<Type>

---> Map <Number> to 3rd <Tax Number> -<Number>

Regards,

Shweta

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question