Previous Page | Next Page

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.
CALL <FUNCTION> 'function-name'
<EXPORTING parameter-1|parameter-1.field-1=value-1 < ... parameter-n=value-n>>
<IMPORTING parameter-1=SAS-dataset-name-1 < ... parameter-n=SAS-dataset-name-n>>
<INTABLES table-parameter-1=SAS-dataset-name-1 <... table-parameter-n=SAS-dataset-name-n>>
<TABLES table-parameter-1=SAS-dataset-name-1 <... table-parameter-n=SAS-dataset-name-n>>
<CALLBACK <callback-parameter-1=SAS-dataset-name-1 <... table-parameter-n=SAS-dataset-name-n>>> </ default = SAS-library>;

Required Arguments

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.


Options

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

FIXME: totally changed... 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.

Previous Page | Next Page | Top of Page