Skip to Content
avatar image
Former Member

udfs,dynamic configuration

hi all,

y we use udfs,dynamic configuration?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Aug 08, 2007 at 12:26 PM


    UDF's are used when we cant achieve the our requirement using the existing mappping functions.

    We code our UDF to meet our funcationality using the java code. The existing mapping function is nothing but it is also a java coding that gets executed during the run time.

    User" target="_blank">">User Defined Function

    Standard" target="_blank">">Standard Mapping Functions

    Dynamic configuration is to determine the receiver, filename, directory during runtime(Dynamically).



    Message was edited by:

    Santhosh Kumar V

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 08, 2007 at 12:32 PM

    Hi Keerthi,

    Dynamic configuration




    1. Simple UserDefined Function:

    Simple functions, which can process individual field input values for each function call. Simple functions, therefore, expect strings as input values and return a string.

    2. Advanced User Defined Function:

    Advanced functions, which can process non–single string field input values for each function call. You can pass either all field values of a context or the whole queue for the field in an array when calling the function. Each input field is passed as an array of String. Returned values are stored in a String array, ResultList.

    User Defined Java Fun.


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 08, 2007 at 12:32 PM


    User Defined Functions Are Used When We Can't Fulfil Our Requirement Using the Standard Functions While Doing Mapping.

    Dynamic Configuration is to Determine the File name , Dir name , File Type At the time of Runtime


    1. To create a new user-defined function, in the data-flow editor, choose Create New Function (This graphic is explained in the accompanying text), which is located on the lower left-hand side of the screen. In the menu, choose Simple Function or Advanced Function.

    2. In the window that appears, specify the attributes of the new function:


    Technical name of the function. The name is displayed in the function chooser and on the data-flow object.


    Description of how the function is used.


    Function type (see above)

    Argument Count

    In this table, you specify the number of input values the function can process, and name them. All functions are of type String.

    3. In the window that appears, you can create Java source code:


    a. You can import Java packages to your methods from the Imports input field, by specifying them separated by a comma or semi-colon:

    You do not need to import the packages java.lang., java.util.,, and java.lang.reflect. since all message mappings require these packages and therefore import them. You should be able to access standard JDK and J2EE packages of the SAP Web Application Server by simply specifying the package under Import. In other words, you do not have to import it as an archive into the Integration Repository. You can also access classes of the SAP XML Toolkit, the SAP Java Connector, and the SAP Logging Service (see also: Runtime Environment (Java-Mappings)).

    In addition to the standard packages, you can also specify Java packages that you have imported as archives and that are located in the same, or in an underlying software component version as the message mapping.

    b. Create your Java source text in the editor window or copy source text from another editor.

    4. Confirm with Save and Close.

    5. User-defined functions are limited to the message mapping in which you created the function. To save the new function, save the message mapping.

    6. To test the function, use the test environment.

    The new function is now visible in the User-Defined function category. When you select this category, a corresponding button is displayed in the function chooser pushbutton bar. To edit, delete, or add the function to the data-flow editor, choose the arrow next to the button and select from the list box displayed.



    UDF -

    Reward Points if Helpful



    Add comment
    10|10000 characters needed characters exceeded