RfcGetDataExt

To get incoming parameter values when a function is being called, use the following:

RFC_RC SAP_API RfcGetDataExt(RFC_HANDLE handle,
RFC_PARAM_SPACE PSpace);

Before calling RfcGetDataExt, you must have set up parameter and table structures in PSpace that are defined like RFC_PARAMETER and RFC_TABLE. The program testrfc.c which is included in the RFC SDK gives an example of how to define and fill these structures before adding them to PSpace.

RfcGetDataExt stores all parameter values at the addresses specified by the structures in PSpace. If table parameters are being passed in, RfcGetDataExt fills in the corresponding table handle. (The table can be either newly created or an already existing one sent to the caller via another RFC call).