SAP FUNCTION ABAP Statements
Get Example source ABAP code based on a different SAP table
ID FUNCTION
• FUNCTION ABAP Statement
ABAP_SYNTAX
What does it do?
Between the statements
BEGIN_SECTION VERSION 5 OUT or in the
END_SECTION VERSION 5 OUT .
BEGIN_SECTION VERSION 5 OUT The function module interface defined in the Function Builder is automatically displayed in comment lines below the statement
END_SECTION VERSION 5 OUT
Within the function module, local data types and data objects can be declared. There is also access to the formal parameters of the function module and to the global data types and data objects of the function pool. A function module is called using the statement
Latest notes:
The
NON_V5_HINTS
ABAP_HINT_END
ABAP_EXAMPLE_VX5
Implements a function module that reads data in a table-like formal parameter
*'---------------------------------------------------------
*' Local Interface:
*' IMPORTING
*' VALUE(ID) LIKE SPFLI-CARRID DEFAULT 'LH '
*' EXPORTING
*' FLIGHT_TAB TYPE SPFLI_TAB
*'---------------------------------------------------------
SELECT *
FROM spfli
WHERE carrid = @id
INTO TABLE @flight_tab.
ENDFUNCTION.>
ABAP_EXAMPLE_END
Return to menu