RfcParameter

This object represents a function module's parameter.

See Using Parameters for more information.

Properties

Name Type Description
Name string Name of the parameter
Type RfcType Type of the field
Value variant Value of the parameter, if it is of scalar type (plain field, e.g. no struct or table)
Fields RfcField [] Values of the field, if the parameter type is a struct
Rows RfcRows Contains the table rows, if the parameter type is table

Methods

Method DefineScalar

Parameter Type Description
name string name of the parameter
type ABABTYPE type of the parameter
length integer lenght of the parameter (only relevant for TYPE_CHAR, TYPE_BYTE, TYPE_NUM and TYPE_BCD. Ignored in all other cases). Default value is 0
decimals integer number of decimals (only relevant for TYPE_BCD, ignored in all other cases). Default value is 0
value variant value of this parameter (optional, defaults to empty string or 0, depending on the parameter type)

Assign this parameter a scalar type and optionally a value.

Method Define

Parameter Type Description
name string name of the parameter
type RfcType type of the parameter, as returned by Session.ImportType

Assign this parameter a complex type (struct or table)