The CALLRFC Procedure

DESCRIBE FUNCTION Statement

Reads metadata about an RFC and writes the information to the SAS log or to a SAS data set using ODS. The DESCRIBE FUNCTION statement can be called multiple times within a PROC CALLRFC step.

Syntax

DESCRIBE <FUNCTION> 'function-name' <SHORT>;

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.

Optional Argument

SHORT
specifies that parameter metadata only is printed in the SAS log. The field metadata is not printed.

Details

General Attributes

In SAS listing output, the function name is printed. If ODS output is redirected to a SAS data set, here is the structure of the data set:
Name
Type
Label
Description
Label1
contains the attribute name, 'Function Name'
cValue1
contains the value for character attributes, for example, 'RFC_SYSTEM_INFO'
nValue1
contains the value for numeric attributes. For the CALLRFC procedure no numeric attributes are listed.

Parameters

For each parameter, the following information is provided. If ODS output is redirected to SAS data sets, here is the structure of the data set:
Name
Type
Label
Description
class
Text 1
Class
Parameter class:
  • I for input
  • O for output
  • T for table
name
Text 32
Parameter
Parameter name
intlen
Number 8
Internal length
Internal length in byte (ABAP)
leng
Number 8
Length (number of characters)
 
outlen
Number 8
Output length
 
decimals
Number 8
Number of decimal places
 
datatype
Text 5
ABAP data type
 
inttype
Text 1
ABAP data type (internal)
 
label
Text 256
Label
 
type
Number 8
Variable Type
SAS variable type
  • 0 - no type, might be a structure
  • 1 - numeric
  • 2 - character
length
Number 8
Variable Length
SAS variable length
format
Text 32
Variable Format
SAS variable format
formatl
Number 8
Format Length
SAS variable format length
formatd
Number 8
Number of Format Decimals
SAS variable format decimals
informat
Text 32
Variable Informat
SAS variable informat
informl
Number 8
Informat Length
SAS variable informat length
informd
Number 8
Number of Informat Decimals
SAS variable informat decimals

Columns

For each column of each structure (input, output, and tables), information in this table is listed. If ODS output is redirected to SAS data sets, here is the structure of the data set:
Name
Type
Label
Description
parm
Text 32
Parameter
 
name
Text 32
Column
 
offset
Number 8
Offset
 
leng
Number 8
Length (number of characters)
 
intlen
Number 8
Internal length
 
outlen
Number 8
Output length
 
decimals
Number 8
Number of decimal places
 
datatype
Text 5
ABAP data type
 
inttype
Text 1
ABAP data type (internal)
 
label
Text 256
Label
 
type
Number 8
Variable Type
SAS variable type
  • 0 - no type, might be a structure
  • 1 - numeric
  • 2 - character
length
Number 8
Variable Length
SAS variable length
format
Text 32
Variable Format
SAS variable format
formatl
Number 8
Format Length
SAS variable format length
formatd
Number 8
Number of Format Decimals
SAS variable format decimals
informat
Text 32
Variable Informat
SAS variable informat
informl
Number 8
Informat Length
SAS variable informat length
informd
Number 8
Number of Informat Decimals
SAS variable informat decimals