CALL - Call a system function
Basic form 6
CALL cfunc.
Addition
... ID id1 FIELD f1 ... ID idn FIELD fn
Effect
Calls the system function cfunc . The relevant
function must exist in the file sapactab.h. If you change or recreate a
function, you have to compile and link the SAP kernel again. For this,
you need the C source code files.
Normally, external programs should be called via RFC with
CALL FUNCTION ... DESTINATION
.
Addition
... ID id1 FIELD f1 ... ID idn FIELD fn
Effect
Passes fields to the called program by reference. With
" ID id1 ", you specify the name of a formal parameter, and with
" FIELD f1 " the relevant field from the ABAP/4 program. If
a formal parameter expects an internal table, the latter is passed in
the form " FIELD tab[] ".
Example
-
DATA RESULT(8).
CALL 'MULTIPLY' ID 'P1' FIELD '9999'
ID 'P2' FIELD '9999'
ID 'RES' FIELD RESULT.
Note
Runtime errors
CALL_C_FUNCTION_NOT_FOUND : Specified system function is unknown.
Index
© SAP AG 1996