cancel
Showing results for 
Search instead for 
Did you mean: 

Java code for UDF to create same node different times for each source field

Former Member
0 Kudos

Hi Guys,

Lets say we have these 6 fields from source (For 1st field we need concatinate 4 other source fields)

1) Concatinate Lic_Start, VBELN, POSNR and PSMNG (these 4 are from source)

2) LIC_TYPE

3) LIC_CLASS

4) GAME_FAMILY

5) PSMNG

6) LIC_PLANT

And in the target we have folling node:

<licenseModelAttributes> 0...1

<attribute> 0...Unbound

<attributeName></attributeName> 1...1

<stringValue></stringValue> 0...1

</attribute>

</licenseModelAttributes>

For each field in the source we have to create separate node of attribute in target under licenseModelAttributes.

Lets say we have PSMNG field value as 10 in the source, we have to create target as follows:

<attribute>

<attributeName>AVP_QUANTITY</attributeName>

<stringValue>10</stringValue>

</attribute>

What ever the vlaue in field PSMNG (10 in this case) has to map to stringValue

Have to pass AVP_QUANTITY to attributeName.

Any information on this? This is re-posting. Can somebody help with sample Java code to write UDF.

Thanx

Navin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sloved and Closing it.

Thanx

Navin