Show TOC

Background documentationRfcGetData Locate this document in the navigation structure

 

To get the parameter values for the called function, use the following:

Syntax Syntax

  1. RFC_RC  SAP_API   RfcGetData(RFC_HANDLE	handle, 
  2. 	RFC_PARAMETER *	parameters,
  3. 	RFC_TABLE *	tables);
End of the code.

Within a function registered via RfcInstallFunction or after receiving the name of the called function by RfcGetName, the function RfcGetData can be used to receive the parameters of the function call.

Here the ITAB_H field in the RFC_TABLE record has to be initialized to NULL. The function RfcGetData fills in the corresponding table handle. (This is either a newly created table or an already existing one sent to the caller via another RFC call). The field itmode in an RFC_TABLE record determines if a received table is passed by reference or by value.

This function is defined in SAPRFC.H.

Return Values:
  • returns RFC_OK or

  • returns RFC_FAILURE

Function Parameters:

Function parameters:

  • handle

    RFC connection handle

  • parameters

    'importing' parameters (RFC_PARAMETER)

  • tables

    'tables' parameters (RFC_TABLE)