Show TOC

Background documentationProgramming Example of Working With Local sideinfo file Locate this document in the navigation structure

 

Syntax Syntax

  1. RFC_OPTIONS	rfc_opt;	/*	Parameter for RFC connection	*/
  2. RfcEnvironment(...);	/*	Install error handling function	*/
  3. rfc_opt.mode	= RFC_MODE_R3ONLY;	*/	RFC to SAP system	*/
  4. rfc_opt.destination	= “BIN”;	/*	Destination in local sideinfo	*/
  5. rfc_opt.connopt	= NULL;	/*	Connect parameters in	*/
    		/*	sideinfo file	*/
  6. rfc_opt.client	= “000”;	/*	Client in SAP system	*/
  7. rfc_opt.user	= “RFCTEST”;	/*	CPIC or dialog user	*/
  8. rfc_opt.password	= “SECRET”;	/*	Password	*/
  9. rfc_opt.language	= “E”;	/*	Logon language	*/
  10. rfc_opt.trace	= 0;	/*	No RFC trace	*/
  11. rfc_handle = RfcOpen();	/*	Open RFC connection	*/
  12. ...
End of the code.
Local sideinfo file:

The local sideinfo file must be in the same directory as the RFC client program or must be defined with its path and file name by the environment variable SIDE_INFO.

Example Example

Windows: set SIDE_INFO=d:\rfctest\sideinfo

End of the example.

The sideinfo entry for the above test could be as follows:

Syntax Syntax

  1. DEST=BIN
  2. GWHOST=hs0311
  3. GWSERV=sapgw53
  4. PROTOCOL=I
  5. LU=hs0311
  6. TP=sapdp53
End of the code.