Function sapnwrfc::binding::RfcCreateTypeDesc
[−]
[src]
pub unsafe extern "C" fn RfcCreateTypeDesc(
name: *const SAP_UC,
errorInfo: *mut RFC_ERROR_INFO
) -> RFC_TYPE_DESC_HANDLE
Creates an empty type description with the given name.
API for creating hard-coded metadata descriptions, e.g. for function modules that don't exist in the R/3 backend. Add field descriptions to the type description using RfcAddTypeField() and at the end set the total byte length of the structure using RfcSetTypeLength(). \warning It is not easy to get the total length right, as you also need to take alignment bytes into account...
Finished type definitions can then be used for creating data containers (RfcCreateStructure() or RfcCreateTable()) and for adding field/table descriptions to a function module description (in RFC_PARAMETER_DESCs in RfcAddParameter()).
After the handle was used for creating a container, any modifications are forbidden.
\in *name An (arbitrary) name for the type. \out *errorInfo Not enough memory? \return The new type description.