Function sapnwrfc::binding::RfcGetTypeDesc [] [src]

pub unsafe extern "C" fn RfcGetTypeDesc(
    rfcHandle: RFC_CONNECTION_HANDLE,
    typeName: *const SAP_UC,
    errorInfo: *mut RFC_ERROR_INFO
) -> RFC_TYPE_DESC_HANDLE

Returns the structure description that is valid for the system to which rfcHandle points to.

If the structure description is already in the repository cache for that system ID, it will be returned immediately (from the cache), otherwise it will be looked up in the system's DDIC using the rfcHandle. The result from the DDIC lookup will then be placed into the cache for later use.

The RFC Runtime maintains a cache for every R/3 System ID, as the meta data could be different from R/3 release to R/3 release. Note: Normally it should not be necessary to lookup separate structure descriptions. They are already looked up as part of the function module, in which they are used.

\in rfcHandle Open client connection to the R/3 System, for which you need the structure description. \in *typeName Name of a DDIC structure or table. \out *errorInfo More error details in case something goes wrong. \return The metadata description of the given structure/table.