ABAPCALL_CUSTOMER-FUNCTION - CALL CUSTOMER-FUNCTION

CPI1466 during Backup   CPI1466 during Backup  
This documentation is copyright by SAP AG.

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 thefunction module exit specified in function_exit. A function module exit is acustomerexit. In an SAP program, it enables you to call a function module provided by SAP and implemented by the customer.

The identifier function_exit must be a three-digit text field literal. In the SAP system, a function module exit is prepared using transactionSMOD and can be activated in customer systems using transaction CMOD.

  • Preparations in the SAP system
    In transaction SMOD, an empty or partly implemented function modulehas to be assigned to the function module exit. The name of the function module consists of "EXIT_",the program name that contains the statement CALL CUSTOMER-FUNCTION, and the three-digit identifier in function_exit. The interface of the function module is completely defined by SAP.

  • Activation in the customer system
    Transaction CMOD enables the customer to implement the sourcecode of the function module within an enhancement project and activate the function module exit. Ifthe function module exit is not activated, the statement CALL CUSTOMER-FUNCTION is ignored. If the function module is activated, the corresponding function module is called in the same way as thegeneral function module call.

Syntax and meaning of the parameter_listfor the assignment of the actual parameters to formal parameters and for 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 functionmodule exit is active, sy-subrc is set as in CALL FUNCTION.

Notes

  • The use of transaction CMOD to make enhancements is obsolete. The newenhancement concept is to be used instead. This replaces the function module exit call with aBAdImethod call using CALL BADI.

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





General Data in Customer Master   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.


Length: 3821 Date: 20120518 Time: 195038     triton ( 138 ms )