Ansicht
Dokumentation

ABENCALL_FUNCTION_ABEXA - CALL FUNCTION ABEXA

ABENCALL_FUNCTION_ABEXA - CALL FUNCTION ABEXA

CPI1466 during Backup   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Calling Function Modules

This example demonstrates how function modules are called.

Source Code

Execute

Description

The function modules READ_SPFLI_INTO_TABLE and READ_SPFLI_INTO_TABLE_NEW read all data from the database table SPFLI where the key field CARRID matches the import parameter id into the internal tables itab or jtab. If no suitable data can be found, exceptions are raised.

  • In READ_SPFLI_INTO_TABLE, the non-class-based exception NOT_FOUND is raised by MESSAGE ... RAISING.

Otherwise, the table is passed to the caller as an export parameter.

The actual parameters carrier and itab or itab have the same data types as the corresponding interface parameters of the function module. The exceptions are handled. The relevant exception text is accessed in different ways.

  • In non-class-based exceptions, it is implicitly available via system fields.
  • In class-based exceptions, it is specified by attributes of the exception object.





BAL Application Log Documentation   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 1903 Date: 20240502 Time: 001151     sap01-206 ( 32 ms )