Show TOC

Creating Update Function ModulesLocate this document in the navigation structure

To create a function module, you first need to start the Function Builder. To do this, choose Start of the navigation path Tools Next navigation step ABAP Workbench Next navigation step Function Builder End of the navigation path. You can find more information on how to create function modules in the appropriate documentation  ABAP Workbench Tools.

To be able to call a function module in an update work process, you must flag it in the Function Builder. When you create the function module, set the Process Type attribute to one of the following values:

  • Update with immediate start

Set this option for high priority ("V1") functions that run in a shared SAP LUW. These functions can be restarted by the update task if any errors occur.

  • Update with immediate start, no restart

Set this option for high priority ("V1") functions that run in a shared SAP LUW. These functions may not be restarted by the update task.

  • Update with delayed start

Set this option for low priority ("V2") functions that run in their own update transactions. These functions can be restarted by the update task if any errors occur.

To get to the attributes screen in the Function Builder, choose Start of the navigation path Goto Next navigation step Administration End of the navigation path.

Defining the Interface

Function modules that run in the update task have a restricted interface:

  • Result parameters or exceptions are not allowed since update-task function modules cannot report on their results.
  • You must specify input parameters and tables with reference fields or reference structures defined in the ABAP Dictionary.