Function sapnwrfc::binding::RfcSetXStringByIndex [] [src]

pub unsafe extern "C" fn RfcSetXStringByIndex(
    dataHandle: DATA_CONTAINER_HANDLE,
    index: c_uint,
    byteValue: *const SAP_RAW,
    valueLength: c_uint,
    errorInfo: *mut RFC_ERROR_INFO
) -> RFC_RC

Sets the given byte value (byteValue/valueLength) into the field.

This function works exactly like RfcSetXString(), 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 set the field value of the current row. \in *index The index 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