cancel
Showing results for 
Search instead for 
Did you mean: 

Abt user-define function

Former Member
0 Kudos

Hi all,

I need to add 3 nodes in an user-defined function in message mapping using java code.The nodes r like EmpFirstName,EmpMiddleName,EmpLastName.I am writing one user-defined function like "ADD".How can i call these field names into "ADD" Function.

Thanks,

Gopi.

Accepted Solutions (0)

Answers (3)

Answers (3)

Shabarish_Nair
Active Contributor
0 Kudos

give three arguements a, b and c and write the function. The pass the nodes you require to the a,b and c in the mapping and map the UDF to the target.

Ref:

Activities - http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

If you want to add the nodes to the input , then just add import parameters to the UDF.

If you want to create the multiple diff target nodes along with the values , then this would not be possible using an UDF.

it is possible to pass multiple values out of your UDF by writing an Advanced UDF , but, it would not be poissible to create multiple target nodes using an UDF.

Regards,

Bhavesh

MichalKrawczyk
Active Contributor
0 Kudos

hi,

if you use message mapping you

just need to specify that your user define function

will have 3 inbound parameters

save it and then you can drag and drop

those three nodes to your user defined function

Regards,

michal

former_member206604
Active Contributor
0 Kudos

Hi,

1. DBl Click on the target node where you need to result

2. Select UserDefined Function

3. DBL click the three node from the source

4. Map the respective node to the UDF and the output to the target field

In the UDF you can add three fields when you are creating UDF.

Thanks,

Prakash