on 05-11-2007 6:10 AM
Hi All,
1. How to create a userdefined function for the mapping?
2. Where do we have that option to create the userdefined function?
Regards
Sara
Sara,
In the mapping editor, where you select different function like node, boolean etc you will have an option in the dop down box called , "User Defined Function".
Select this and then you will get a new option at the bottm left corner , click on this and you have wrtie your UDF here.
http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You have the option of creating a user mapping in the message mapping screen .At the bottom left corner uhave an icon select the type of function(simple or advanced) and then ....specify the label argument and desccription and start the codding...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Of course we do. The forst time you create a UDF, it will in edit mode by default.
If you have saved and activated it, you can go to edit mode and select the category UDF and select your UDF and in the right you have a menu to edit or delete your UDF. Only the message mapping needs to be in edit mode.
Regards,
Jai Shankar
Hi Sara,
Also ref
Simple java code in graphical mapping - XI
/people/michal.krawczyk2/blog/2005/02/25/simple-java-code-in-graphical-mapping--xi
Regards,
Deviprasad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
Writing use defined functions in XI is quite simple. Create a simple UDF, give the import parameters and then just go ahead with the logic coding and then return the output from the UDF.When you create a new user defined function, you give it a name (label) and a description. Then you select which type of function you want to create. A value function is the simplest one that lets you take an input and return a value. There is an arguments frame in the New Function window. You press the insert line button to add additional arguments, and then when you press Create, the arguments that you entered become the variables in your function
Just remember that all inputs and outputs to an UDF are always Strings
Check the Teched 2004 presentation of our mapping gurus:
This link for User Defined Functions,
http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm
please see the below blog for user-defined functions:
http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.