SAP_CMINIT 

Use

SAP_CMINIT passes the following additional parameters to the SAP-CPI-C interface:

These values are needed to build the connection to the SAP Gateway.

The header file cpic.h indicates the prototypes.

In the following cases, SAP_CMINIT delivers a return code not equal to CM_OK:

Integration

For reasons of compatibility, you should always define the parameters in this table.

The function SAP_CMINIT always returns the value CM_OK in this environment.

Activities

 

main (argv, argc)

..

SAP_CMINIT(argv, "compu01", "sapgw00", INT_SOCK_COMM);

..

The SAP Gateway runs on the host compu01 and responds to the service sapgw00. An internal communication is built. The partner program is therefore an ABAP program in an R/3 System.