Function sapnwrfc::binding::RfcGetNum [] [src]

pub unsafe extern "C" fn RfcGetNum(
    dataHandle: DATA_CONTAINER_HANDLE,
    name: *const SAP_UC,
    charBuffer: *mut RFC_NUM,
    bufferLength: c_uint,
    errorInfo: *mut RFC_ERROR_INFO
) -> RFC_RC

Returns the value of the specified field as num-char array (digits only).

The charBuffer will be filled with a string representation of the field (from right to left). The remaining places in the buffer will be filled with leading zero digits. In case the buffer is too small, the function will return RFC_BUFFER_TOO_SMALL. The result is not null-terminated.

The field specified by name needs to be of one of the following data types. If the field has one of the listed non-char-like data types, the RFC library will convert the field value to string format. Example:\n If "name" specifies a field of type INT4 with the value 4711 and charBuffer is an SAP_CHAR[10], then the buffer will be filled as follows: "0000004711".

\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. \out *charBuffer A pre-allocated buffer, which will receive the (converted) field value. \in bufferLength Size of the buffer in RFC_CHARs. \out *errorInfo Field doesn't exist, cannot be converted to numc, etc. \return RFC_RC