tclsap Command Sap_Callrx2

Sap_Callrx2
Send and receive a message to an SAP RFC

Sap_Callrx2 is the same as Sap_Callrx1 EXCEPT that Sap_Callrx2 expects the return of two (2) strings from the SAP system The first of the two strings is returned to the calling function in the result structure. This characteristic is included only because it is a local feature at the author's site.

Example:
Sap_Callrx2 Target_ABAP_RFC Message_String

Return:
System_Information_String and status TCL_OK

Discussion
Sap_Callrx2 executes a SAP RFC RfcCallReceive() command with the ABAP passed as the target program and the message_string as the contents to be passed. The message_string MUST be less than 248 characters in length.

The 248 character limit is due to a 249 character limit within the ABAP development environment when the debugger is in use.

The RfcCallReceive() function sends a Call to the SAP system and waits to Receive transaction results from the SAP system. Only the single result can be returned from a transaction.

The tables functionality of the SAP library is not implemented.

Sap_Callrx2 expects the return of two strings from the SAP system, only the contents of the first string are returned by Sap_Callrx2.

If the RfcCallReceive() completed successfully, that is is the return; was RFC_OK, then Sap_Callrx2 returns TCL_OK.



If there are questions about this document please direct them to Garth Kennedy (garth@mcs.net)

garth@mcs.net