Function sapnwrfc::binding::RfcGetCharsByIndex
[−]
[src]
pub unsafe extern "C" fn RfcGetCharsByIndex(
dataHandle: DATA_CONTAINER_HANDLE,
index: c_uint,
charBuffer: *mut RFC_CHAR,
bufferLength: c_uint,
errorInfo: *mut RFC_ERROR_INFO
) -> RFC_RC
Returns the value of the specified field as char array.
This function works exactly like RfcGetChars(), the difference being that the field is addressed by its index within the structure/table/function module. The first field has index 0, last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
\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 index The index 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 char, etc. \return RFC_RC