Function sapnwrfc::binding::RfcSetBytes
[−]
[src]
pub unsafe extern "C" fn RfcSetBytes(
dataHandle: DATA_CONTAINER_HANDLE,
name: *const SAP_UC,
byteValue: *const SAP_RAW,
valueLength: c_uint,
errorInfo: *mut RFC_ERROR_INFO
) -> RFC_RC
Sets the given byte value (byteValue/valueLength) into the field.
The field specified by name needs to be of one of the following data types: - RFCTYPE_BYTE - RFCTYPE_XSTRING - RFCTYPE_CHAR - RFCTYPE_STRING - RFCTYPE_INTx - RFCTYPE_FLOAT - RFCTYPE_BCD - RFCTYPE_DECFxx \note: If the target field has type CHAR or STRING, the byte value will be stored as a hex representation of the bytes.\n If the target field has a numerical type, the byte value will be assigned only if the given valueLength matches the field length. In order to use this feature, you need to know exactly what you are doing... E.g. when setting 8 bytes into an RFC_FLOAT field, you need to understand the IEEE floating point format. Better only use this function for setting RAW fields.
\in dataHandle A data container (function handle, structure handle or table handle). If dataHandle is a table handle, the function will set the field value of the current row. \in *name The name of the field to set. \in *byteValue The byte value to write into the field. \in valueLength The number of bytes to use from byteValue. \out *errorInfo More information in case the field does not exist or a conversion fails. \return RFC_RC