Function sapnwrfc::binding::RfcGetInt
[−]
[src]
pub unsafe extern "C" fn RfcGetInt(
dataHandle: DATA_CONTAINER_HANDLE,
name: *const SAP_UC,
value: *mut RFC_INT,
errorInfo: *mut RFC_ERROR_INFO
) -> RFC_RC
Returns the value of the specified field as RFC_INT (signed).
If the field is a character type, an "atoi-like" conversion is performed. If the field is of type RFCTYPE_BYTE/RFCTYPE_XSTRING, this function interprets the bytes in big-endian byte order when converting them to int. Note that in this case the byte length of the field value must not exceed 4!
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 an int - RFCTYPE_XSTRING is interpreted as big endian sequence of an int - RFCTYPE_CHAR - RFCTYPE_NUM - RFCTYPE_STRING
\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