Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Dealing with Generic webservice

$
0
0

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:

ScreenHunter_08 Mar. 10 14.53.jpg

 

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:



ScreenHunter_09 Mar. 10 15.12.jpg


My next step was to try creating a Reverse Pivot Table, so I created it like this:


ScreenHunter_10 Mar. 10 15.14.jpg

 

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,


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>