tclsap Command Summary

The tclsap command extensions are:
Sap_Open
Open a session with SAP
Example:
Sap_Open System Client User Password Trace
Return:
If successful, the string "Open OK" and a TCL_OK status
If unsuccessful, the string "RFC Open Error" and a TCL_ERROR status

Sap_Close
Close an SAP session
Example:
Sap_Close
Return:
"OK" and normal TCL_OK status

Sap_Callrx1
Send and receive a string to/from SAP
Example:
Sap_Callrx1 rfc_abap name message_string_to_send
Return:
return string from SAP

Sap_Callrx2
Send one and receive 2 strings from SAP
Example:
Sap_Callrx1 rfc_abap name message_string_to_send
Return:
first string string returned from SAP

Sap_Help
Brief message describing the tclsap command
Example:
Sap_Help [command name]
Return:
message string describing tclsap commands, or if a optional tclsap command was included, a description of that individual tclsap command.

Sap_RfcPing
Send a ping to SAP. This is included as a tclsap function because the SAP library RFCOpen call always returns OK when the only connection to the SAP system completed successfully. The login may not have in fact, occurred. This verifies that the login also occurred.
Example:
Sap_RfcPing
Return:
if successful, status return of TCL_OK
if not successful, status return of TCL_ERROR

Sap_SysInfo
Calls the SAP ABAP/4 program RFC_SYSTEM_INFO and returns a string of system "information" about the connected SAP system. This command is included mostly for demonstration purposes. It is helpful as a means of building confidence that the interface really works.
Example:
Sap_SysInfo
Return:
If successful, the info string and status of TCL_OK
Otherwise return the status of TCL_ERROR

Sap_Version
Return tclsap version, contact and copyright information
Example:
Sap_Version
Return:
tclsap Version, Copyright and Author blurb.
Status is always TCL_OK



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

garth@mcs.net