Entering content frameProcedure documentationCreating a Function Locate the document in its SAP Library structure

Prerequisites

You have created a function module that processes the input parameters.

Procedure

  1. From the variant configuration menu, choose Tools ® Function ® Create.
  2. You see the initial screen.
  3. Enter the name of the function module as the name of the function. The system uses the name to automatically link the function to the function module.

    Confirm your entries.

  4. Maintain the basic data of the function.
  5. In the basis data, the relevant data of the function module is displayed. You see the name of the ABAP include with the source code.

    – The status of the function module must be active before you can use the function in dependencies.

    – You can go directly to the function for maintaining functions by choosing Environment ® Maintain funct. mod.

  6. To see the characteristics screen, choose Goto ® Characteristics. On this screen, you can assign characteristics to the function. On this screen you also enter the first value assignment alternative:
  7. – Select the characteristics you want to use as input parameters for the function.

    – Do not select the characteristics that are output parameters.

  8. To enter more value assignment alternatives, choose Goto ® Val. assignment alt. All value assignment alternatives except the first are only relevant to constraints. Actions and procedures always access the first alternative (see Value Assignment Alternatives).
  9. Save your function.

Note

When you maintain a variant function, an exclusive lock is transmitted.

From the point of view of the dependency, ensure that the function used does not essentially change from the time of the syntax check until writing to the database.

A variant function with status Locked cannot be added to a dependency. This is because the syntax check in the dependency checks the status.

It does not check at configuration runtime whether the function is locked. The result of processing a dependency only depends on the status of the dependency itself, not on the status of elements used in it.

 

Leaving content frame