If the standard functions for a target-field mapping do not fulfill your requirements, or if the graphical representation becomes unclear due to the complexity of the mapping, you have the option of creating a user-defined function. You can use this function to create source text that the PCK saves in a local function library for the message mapping. The function is included as a Java method in the Java coding generated for the message mapping, and is visible in the data-flow editor in the function category that you have assigned to the function in the function properties. You can insert these functions in the data-flow editor like a standard function.
The PCK saves the user-defined functions that you create in a message mapping in a local function library belonging to the mapping object.
...
1. Implement your user-defined function.
For more information: Implementing Java Functions
2. In the data-flow editor, access your user-defined function.
For more information: Using Java Functions of Function Libraries
3. Test your function in the test environment.
For more information: Test Environment).