The CALLRFC Procedure
CALL FUNCTION Statement
Call an RFC on the SAP system. The CALL FUNCTION
statement can be called multiple times within a PROC CALLRFC step.
The function calls are executed in sequence.
Syntax
Required Argument
- function-name
-
specifies the name
of the ABAP function. The function name is a literal, and it must
be enclosed in quotes. The function name is converted to uppercase
characters. The ABAP function must be RFC callable. It must not have
any dialog, and it must be synchronous.
Optional Arguments
- EXPORTING
-
specifies fields or
structures to be passed to the function module. The parameters parameter-1
through parameter-n are defined in the function interface as import
parameters.
- IMPORTING
-
specifies the fields
or structures to be passed from the function module back to the SAS
system. The parameters parameter-1 through parameter-n are defined
in the function interface as export parameters.
- INTABLES
-
specifies the SAS data
sets to be passed to the function module. The parameters table-parameter-1
through table-parameter-n are defined in the function interface as
table parameters. SAS converts the SAS data sets into internal tables
and passes it to the function module. The variable names in the SAS
data set must match the field names of the internal table as defined
for the function interface.
- TABLES
-
specifies names for
the SAS data sets to be created from the internal tables in the function
module. The parameters table-parameter-1 through table-parameter-n
are defined in the function interface as table parameters.
- CALLBACK
-
specifies names for
the SAS data sets to be created from the internal tables in the function
module. The parameters are not defined in the function interface.
The function module must implement a callback mechanism.
If the callback table
name matches any of the names in the list of callback-parameters specified
in the function call, the data is saved into the specified SAS data
set. If the name does not match, but the default library is specified,
then the data is written to
libref.table-name.
Copyright © SAS Institute Inc. All rights reserved.