Entering content frameSyntax documentation FUN Locate the document in its SAP Library structure

Use

FUN ( <function module>, <command interface> ).

FUN ( <function module>, <command interface> , <target system> ).

The FUN command executes a function module.

The values for EXPORTING, IMPORTING, TABLES, CHANGING, and EXCEPTIONS, are passed by means of the command interface.

If a function module raises an exception, the name of the exception is logged.

Normally, a function module raising an exception is marked in the log as having an error. To prevent this, enter 'X' in the exception's Value field.

Procedure

  1. In the command editor, enter FUN ( <function module>, <command interface> ).
  2. Double-click <command interface>.
  3. The command interface appears in the structure editor.

  4. In the structure editor, enter the appropriate values in the fields. These values can be parameters or fixed values.

Notes

UI-oriented value conversions (such as conversion exits) or value formatting, are not performed in the FUN interface.

If, after evaluation of the command interface, a TABLES parameter results in a single table line in which every field of the table structure is initial according to its type, a table with no line is supplied to the function module.

 

Leaving content frame