Hello experts,
I am developing an extraction from a generic webservice, and I am having a little trouble mapping the output.
The problem is that the webservice was developed like this:
So, after unnesting all levels on several queries, I came down to only the fields name and number under the parent Attribute, and had a hard time mapping the fields to target.
So , I have the following for the record number = 0155, name = CR13:
<Attribute>
<Name>number</Name>
<Value>00155</Value>
</Attribute>
<Attribute>
<Name>name</Name>
<Value>CR13</Value>
</Attribute>
Instead of:
<Attribute>
<Number>0155</Number>
<Name>CR13</Name>
</Attribute>
Acknowlodging that, I tried to use ifthenelse:
ifthenelse ( name = 'name', value, '' ) on the field Name
ifthenelse ( name = 'number', value, '' ) on the field Number, etc...
That didn´t work because BODS moved the fields to different lines on my target, so my records looked like this:
My next step was to try creating a Reverse Pivot Table, so I created it like this:
My problem this time became the Duplicate value field. If I choose First Row, or Last Row, I only record one line in my target. On the other hand, if I choose Abort, I get an error when I execute the job from SAP BW.
I appreciate any help you can give me to solve this problem.
Thank you in advance,