RfcAddImportParam

Before transferring data with the extended functions, you must add all parameters and tables to the parameter stack.

A calling program that receives return values ( RfcReceiveExt / RfcCallReceiveExt), or a called program that receives import parameters ( RfcGetData), must add import parameters to the stack with RfcAddImportParam:

RFC_RC SAP_API
RfcAddImportParam(RFC_PARAM_SPACE PSpace,
unsigned ParamNo,
void * name,
unsigned nlen,
unsigned type,
unsigned leng,
void * addr);

Function Parameters:

Parameters for RfcAddImportParam have the same meanings as for RfcAddExportParam.

  • Pspace

Address of the stack space area.

  • ParamNo

Index for the parameter in the import-parameter stack space.

  • name, nlen

type, leng

addr

These fields have the same meanings as the corresponding RFC_PARAMETER fields. (See ItInsLine)

Remember to allocate the stack space with RfcAllocParamSpace before calling RfcAddImportParam.