Start of Content Area

Procedure documentation Copying Functions of a Local Function Library  Locate the document in its SAP Library structure

Use

User-defined Java functions of a message mapping are saved in a local function library. If you want to use these functions in other message mappings, you can copy them to a function library and use them in different local function libraries.

Prerequisites

A message mapping with a local function library already exists. You want to use the functions of the local function library of the message mapping in another local function library and therefore want to copy them.

Procedure

...

       1.      Create a new local function library.

       2.      In the new local function library, create all functions with the same name as in the local function library that you want to copy.

       3.      Use the Export Source Text function to export the source text of the local function library.

       4.      Use the function Import Source Text to import the source text exported in the last step to the new function library you have created.

The Export Source Text and Import Source Text pushbuttons are located to the right of the class name and package name of the local function library. If the editor window is too small, these functions are hidden.

       5.      Save the new function library.

Result

You have copied all functions of a local function library to another local function library.

 

End of Content Area