cancel
Showing results for 
Search instead for 
Did you mean: 

Questions for following problem using UDF

Former Member
0 Kudos

Hi expert,

I need support for the following mapping problem:

I have a flat structure of values like:

<root>

2;D1;479

2;D3;

2;D5;

2;D4;479-383

2;D6;479-384

2;D7;

2;D8;14458

2;D9;FL SMIDTH

2;D10;2.080381

</root>

how can I map using UDF this structure to the following xml structure

<target>

<class>

<charname>D1 </charname>

<charvalue>479 </charvalue>

</class>

<class>

<charname> D3</charname>

<charvalue> </charvalue>

</class>

<class>

<charname>D5 </charname>

<charvalue> </charvalue>

</class>

<class>

<charname>D4 </charname>

<charvalue>

2;D4;479-383

</charvalue>

</class>

...

</target>

I thought that I use Advanced UDF with resultlist, but I am not sure if this will solve my problem?

Thanks in advance for your help.

Kind regards,

Erkan

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

So I will try with udf to solve this issue.

Kind regards,

Erkan

Former Member
0 Kudos

Hi Baskar, thanks for your answer, but we tried to solve this with content conversion, but it does not work. See this thread: http://scn.sap.com/thread/3240381 We have not got a proper answer.

Kind regards,

Erkan

baskar_gopalakrishnan2
Active Contributor
0 Kudos

You get source as flat file . Simply use content conversion message protocol using file adapter to convert the flat data.   Search SCN for the file content conversion. You can use sender side fcc adapter and create message structure. Keep first field as key.  The second field as charname and third as charvalue. Once your created file content conversion at the sender structure then same thing use it in the target.

Give recordset structure  is class, *

Please refer these links for your need.

http://saptechnical.com/Tutorials/XI/Contentconversion/page1.htm

http://scn.sap.com/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-pro...