cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping help required

Former Member
0 Kudos

Hi,

I need to do the map based on the below conditions.

Let us explain with different field names and please provide if you have any udf's based on this below requirement.

Let say 3 fields called : a,b,c

if a = RAM then

b = b/c

here b field is in one segment and a & c fields are in child segment of above segment

Thanks in advance for your help

Regards,

Y. Raj

Accepted Solutions (1)

Accepted Solutions (1)

santhosh_kumarv
Active Contributor
0 Kudos

you dont need an UDF use a standard Boolean function ifWithoutElse, equalsS text funtions and Divide function..

<node a> & <constant 'RAM'> ------->equalsS(text function) --------> ifWithoutElse
<node b> & <node c> ------------> divide --------> then(branch of IF)

~SaNv...

Former Member
0 Kudos

Could you please more elaborate sothat i can able to understand easily.

Regards,

Y.Raj

justin_santhanam
Active Contributor
0 Kudos

Yeswanth,

What are the occurrences of those fields? Is it 0..Unbounded? or 1..1 ?

Thanks!

Former Member
0 Kudos

Hi Yeshwant,

Look at this link

http://4.bp.blogspot.com/_5ov9AjKNCiY/S6oobXPCM5I/AAAAAAAABwM/_h6zfUGDSYI/s1600/Mapping.png

Here Order number is b according to your scenario.

Please also give details about the occurence of all the nodes and elements for getting a more precise answer.

Better yet you could upload you Data type to show the structure.

Former Member
0 Kudos

all the fields 're 0 to 1

justin_santhanam
Active Contributor
0 Kudos

Yeshwant,

Siva has given the solution above. You can go ahead with that.

Thanks!

Former Member
0 Kudos

then the mapping shown above should work for you.

Former Member
0 Kudos

Thankyou Siva...

Thanks for all too...

Answers (0)