SAP-Specific CPI-C Functions 

Definition

The SAP-specific CPI-C functions pass additional parameters to the SAP-CPI-C interface, which cannot be mapped to the standard CPI-C parameters.

Use

The following SAP-specific CPI-C functions are provided:

Via SAP_CMINIT:

Passes on gateway parameters

SAP_CMACCP

Passes on accept parameters

SAP_CMPERR:

Displays error information

SAP_CMLOGON

Creates logon string

SAP_CMCERR:

Identifies error information

SAP_CMLOADCONVTAB:

Loads the conversion table specified

SAP_CMMODCONVTAB:

Modifies the current conversion table

SAP_CMTIMEOUT:

Specifies a timeout value

SAP_CMHANDLE

Returns the socket handle

SAP_CMGWHOST:

Determines the gateway host

SAP_CMGWSERV:

Determines the gateway service

Functions for Registered CPI-C Programs

SAP_CMREGTP

SAP_CMACCPTP

SAP_CMUNACCTP

SAP_CMUNREGTP

SAP_CMNOREGTP

SAP_CMCANCREGTP

 

Registers the program with the SAP-Gateway
Ready for connection setup
No longer ready for connection setup
Deregisters the program
Determines the number of registered programs

Logs registered program off Gateway

SNC Function Calls

 

 

 

SAP_CMSNCMODE
SAP_CMSNCNAME
SAP_CMACLKEY
SAP_CMNAMETOACLKEY
SAP_CMACLKEYTONAME

Only relevant if you use the Secure Network Communications interface to third-party security systems

 

SNC status of a connection (SNC_ON/SNC_OFF)
Returns the SNC name of the partner
Returns the ACL key of the partner
Converts the SNC name to an ACL key
Converts the ACL key to an SNC name

SAP_CMGETVERSION

Returns the internal version of the CPI-C-development library