cancel
Showing results for 
Search instead for 
Did you mean: 

Code required

Former Member
0 Kudos

Hello all,

Please help to write a udf.

Target structure

<Text>

<item> occ 0 to unbounded

<Line> 0 to 1

<item1> occ 0 to unbounded

<Line> 0 to 1

<item2> occ 0 to unbounded

<Line> 0 to 1

<item3> occ 0 to unbounded

<Line> 0 to 1

</Text>

The 1st Line is mapped to "Catalog text" from source structure

The 2nd Line is mapped to "Product text" from source structure

The 3rd Line is mapped to "Material Text" from source structure

The 4th Line is mapped to "Sales Text" from source structure

Now I want target structure should have Line created that says what kind of text it is and also before creating the next item node i hve to check if earlier was created then leave 1 line blank in between the different text nodes.

<Text>

<item> occ 0 to unbounded

<Line> Catalog text 0 to 1

<item> occ 0 to unbounded

<Line> 0 to 1

<item1> occ 0 to unbounded

<Line> Product text

<item1> occ 0 to unbounded

<Line> 0 to 1

<item2> occ 0 to unbounded

<Line> Material text 0 to 1

<item2> occ 0 to unbounded

<Line> 0 to 1

<item3> occ 0 to unbounded

<Line> Sales Text 0 to 1

<item3> occ 0 to unbounded

<Line> 0 to 1

</Text>

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Close

Former Member
0 Kudos

Plz help..

Thanks

NPrabhu