SAP® Documentation

Single view

ABAPCALL_CUSTOMER-FUNCTION - CALL CUSTOMER-FUNCTION

TXBHW - Original Tax Base Amount in Local Currency   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

CALL CUSTOMER-FUNCTION

Short Reference



Obsolete Syntax

CALL CUSTOMER-FUNCTION function_exit parameter_list.

Effect

This statement can be used in programs delivered by SAP. It includes the function module exit specified in function_exit. The function module exit is a customer exit. In an SAP program, it enables a function module provided by SAP and implemented by the customer to be called.

The three-character name function_exit must be specified directly and enclosed in single quotation marks ('). A function module exit is specified by SAP using the transaction SMOD and can be activated using the transaction CMOD in customer systems.

  • Preparation by SAP
    An empty or partly implemented function module must be assigned to the function module exit function_exit using the transaction SMOD. The name of the function module consists of "EXIT_", the program name, which contains the statement CALL CUSTOMER-FUNCTION, and the three-character name in function_exit. The interface of the function module is completely defined by SAP.

  • Activation in the Customer System
    The transaction CMOD enables the customer to implement the source code of the function module within an enhancement project and to activate the function module exit. If the function module exit is not activated, the statement CALL CUSTOMER-FUNCTION is ignored. If the function module is activated, the associated function module is called in the same way as the general function module call.

Syntax and meaning of the parameter_list for the assignment of the actual parameters to formal parameters and for the exception handling are the same as in a general function module call. It is not possible to fill the interface dynamically.

System Fields

If the function module exit is not active, sy-subrc retains its previous value. If the function module exit is active, sy-subrc is set as in CALL FUNCTION.

Notes

  • The execution of enhancements using transaction CMOD is now obsolete. Instead, the new enhancement concept should be used, which replaces function module exit calls with BAdI method calls using CALL BADI.

  • Since it is not known in a calling program whether a function module exit is active, sy-subrc must be set to 0 explicitly so that a successful call can be simulated.





BAL_S_LOG - Application Log: Log header data   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 4123 Date: 20191017 Time: 154403     sap01-206 ( 29 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.