Function sapnwrfc::binding::RfcGetInt2 [] [src]

pub unsafe extern "C" fn RfcGetInt2(
    dataHandle: DATA_CONTAINER_HANDLE,
    name: *const SAP_UC,
    value: *mut RFC_INT2,
    errorInfo: *mut RFC_ERROR_INFO
) -> RFC_RC

Returns the field value as a signed two byte integer.

The current field value must be between -32768 and 32767, otherwise you'll get an RFC_CONVERSION_ERROR. If the field is of type RFCTYPE_BYTE/RFCTYPE_XSTRING, the field length must be 1 or 2 bytes.

The field specified by name needs to be of one of the following data types: - RFCTYPE_INT - RFCTYPE_INT2 - RFCTYPE_INT1 - RFCTYPE_BYTE is interpreted as big endian sequence of a short - RFCTYPE_XSTRING is interpreted as big endian sequence of a short

\in dataHandle A data container (function handle, structure handle or table handle). If dataHandle is a table handle, the function will read the field value of the current row. \in *name The name of the field to read. \out *value The (converted) integer value. \out *errorInfo More information in case the field does not exist or a conversion fails. \return RFC_RC