Show TOC

Procedure documentationDefining a Function Library Locate this document in the navigation structure

 

You use this procedure to create a function library, allowing multiple users to reuse the functions in it across multiple message mappings.

A function library is a collection of user-defined functions in Netweaver Developer Studio that helps you to choose appropriate functions for a message mapping. If you want to reuse a user-defined function, you create and save that function in the function library. In addition, you can also import archives (.jar files) from your local system and add them into this function library.

For accessing these functions, you need to add this function library to the required message mapping.

Procedure

1. Create a Function Library
  1. In the Enterprise Repository Browser, select a software component version to create your function library.

  2. From the context menu of the selected work area, choose   New   Function Library   .

    Note Note

    You can also create a function library from the context menu of Namespace, Folder, or Function Library

    End of the note.
  3. Enter a name and description for the function library.

  4. Under Location Details section, choose Browse… to select a namespace or a folder

  5. Choose Finish.

  6. Select an existing change list or choose New to create a new change list.

    Note Note

    In the Function Library Overview editor, under the Class Detail section, by default, the Class Name is the name of the Function Library and Package Name is the name derived from Namespace. If required, you can make changes to these names.

    End of the note.
2. Add Functions to the Function Library
  1. In the Function Library Overview editor, in the Functions section, choose Edit.

  2. In the Java editor, add the required functions.

  3. Save the changes.

3. (Optional) Add Imported Archives to a Function Library
  1. In the Overview editor, in the Functions section, choose Edit.

  2. In the Dependencies editor, select the imported archive folder and choose Add…

  3. In the Select imported archives, choose the required archive and choose OK.