Function sapnwrfc::binding::RfcGetUnitID [] [src]

pub unsafe extern "C" fn RfcGetUnitID(
    rfcHandle: RFC_CONNECTION_HANDLE,
    uid: *mut SAP_UC,
    errorInfo: *mut RFC_ERROR_INFO
) -> RFC_RC

Create a 32 digit bgRFC unit ID.

This function fills the given RFC_UNITID with a 32 digit hexadecimal GUID and zero-terminates it. If you want the GUID to be generated by the backend, pass a valid rfcHandle, if you want the NW RFC library to generate one locally (using the appropriate OS functions), pass NULL as connection handle. In both cases the GUID is suitable for sending bgRFC units into an SAP system.

\in rfcHandle An open RFC connection into the system that is to create the unit ID, or NULL. \out uid Preallocated buffer that will receive the 32 digits of the unit ID and a terminating zero. \out *errorInfo Not much that can go wrong here... \return RFC_RC