Skip to Content
author's profile photo Former Member
Former Member

need help

hi guys,

i am from ABAP background.can anybody send me some documents regrding how to develop user-define funtions using

java and mapping programs using java.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 05:30 AM

    hi sateesh,

    thank u for ur reply,

    but i need step by step procedure to develop user-defined functions and mapping progs using java as i am new to java.


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi gopi krishna,

      You need to go through some of the basics of Java

      Please refer below link for it

      Please follow below steps to create UDFs


      1. To create a new user-defined function, in the data-flow editor, choose Create New Function (), 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 environmentsapurl_link_0005_0007_0007.

      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. 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.



  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 05:20 AM


    Check if your system contains this jar aii_map_api.jar. This jar file is necessary for Java Mapping.

    These are the steps to create a java mapping.

    1. Develop your Java code locally e.g. with your IDE

    2. Create a .jar or a .zip

    2.1 Using the jar command of the jdk

    2.2 Using a built-in IDE functionality

    3. Create a new Imported Archive and import the .jar to the Integration Repository






    Happy learning


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 05:36 AM

    Hi Gopi

    just look at these links

    Refer this blog:



    and the thread:


    You can use Global Containers,


    This link for User Defined Functions,

    here some more links.......





    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.