08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Functional library in sap pi
1. PI 7.1 Concept of Function Library in
Process Integration
Attachments:5
Added by Farooq Farooqui, last edited by Farooq Farooqui on Jun 10, 2008 (view
change)
Definition: A function library is a separate object type in the Enterprise Services Repository
(ESR) and enables us to use UDF across message mappings that are defined in the same
Software Component Version.
We can use UDF's from a function library in message mappings and in mapping templates.
Example : I need to create a function that will decode the base64 encoded value and map it to the
target field. Later I need to reuse the same function in multiple message mappings.
Step 1 Crete the Function Library object type
Let me describe some important points from the below screen (marked with numbers).
Each function library corresponds to a Java class, which is identified by a class name and a
package name. Once a function library has been created, the ES Builder assigns the name of the
function library to the class name automatically and uses the repository namespace to create the
package name automatically.
2. All package and class names of (local) function libraries and imported archives must be unique
within a software component version. If there is already a package with the same name in an
imported archive and a class with the same name in this package, this results in a naming
conflict. To resolve such conflicts, you change the predefined class name and package name of
your function library.
Refer this link for more details
http://help.sap.com/saphelp_nwpi71/helpdata/en/43/78bd467afa345ae10000000a422035/framese
t.htm
1. Class Name = same as the Function Library name
2. Package Name = same as the repository namespace
3. Functions and Java Areas = Refer this link
http://help.sap.com/saphelp_nwpi71/helpdata/en/43/78bd467afa345ae10000000a422035/framese
t.htm
4. Area to import the packages, from PI 7.1 default packages are com.sap.aii.mapping.api.* ;
com.sap.aii.mapping.lookup.; com.sap.aii.mappingtool.tf7.rt.; java.io.;java.lang.reflect.;
java.util.*;
3. Step 2: Create and Implement the user-define function, here I create with name
BASE64Decoding with one argument of type String.
4. Step : 3 Select the Function Library and use the UDF in Mapping.
5. Use the the created UDF in Mapping <instanceName>.<FunctionName>
Similarly we can use this function in any message mapping that resides in the same SWCV where
Function Library object is created