Start of Content Area

RfcAddTable  Locate the document in its SAP Library structure

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

Both calling and called programs must add table parameters to the stack, since tables are both exported and imported. To do this, use the function:

RFC_RC SAP_API RfcAddTable(RFC_PARAM_SPACE PSpace,
unsigned TableNo,
void * name,
unsigned nlen,
unsigned type,
unsigned leng,
ITAB_H ithandle);

Function Parameters:

Address of the stack space area.

Index for the parameter in the table stack space.

type, leng

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

Table handle. (Corresponds to the itab_h field in the RFC_TABLE structure.) Each table parameter must have a table handle: if you are initiating an RFC call, call ItCreate to create a handle. (See ItCreate)

Note

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