Function sapnwrfc::binding::RfcInvokeInUnit
[−]
[src]
pub unsafe extern "C" fn RfcInvokeInUnit(
unitHandle: RFC_UNIT_HANDLE,
funcHandle: RFC_FUNCTION_HANDLE,
errorInfo: *mut RFC_ERROR_INFO
) -> RFC_RC
Adds a function module to a bgRFC unit.
Serializes the payload of the function module data container into bgRFC format and inserts it into the data container for the bgRFC unit. The funcHandle can afterwards be freed using RfcDestroyFunction(), because the data is copied, not referenced.
Note: Despite the name "invoke", nothing is executed in the backend system, yet!
\in unitHandle A valid (unsubmitted) bgRFC unit, to which the given function module shall be added. \in funcHandle A function module, whose payload (IMPORTING/CHANGING/TABLES) shall be added to the unit. \out *errorInfo More details in case something goes wrong. \return RFC_OK, RFC_INVALID_HANDLE or RFC_MEMORY_INSUFFICIENT