CallReceive 

Purpose

Makes a two-way call to R/3, sending and receiving import and export parameters and table data.

Syntax

RFC_RC CallReceive(char*& strException,

BOOL bPassAllParams=FALSE);

Return Value

Same as Receive.

Parameters

strException: A reference to a string, to be filled with error information when an RFC exception is encountered.

bPassAllParams: Indicates whether all simple import parameters should be passed to R/3 for the call.

Exceptions

Throws const char* for memory exceptions.

Throws RFC_ERROR_INFO for RfcCall failure.

Description

This function is equivalent to calling Call and Receive in a row. Make sure all import, export and table parameters are added to the function object, and all data that need to be sent are set into the corresponding import or table parameters. Returned values are immediately available from the export and table parameter objects upon returning from CallReceive.

Note that when argument bPassAllParams is set to TRUE, then all simple import parameters are passed to R/3 for the call; otherwise only the simple import parameters with values assigned to them are passed.

 

Related Information

Call

Receive