17.08.2013 Views

Data Interfaces

Data Interfaces

Data Interfaces

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CPI-C SAP-specific Functions<br />

SAP_CMINIT() Specifies SAP gateway (active program)<br />

SAP_CMACCP() Specifies SAP gateway (passive program)<br />

SAP_CMLOGON() Connect string for logon to R/2 or R/3<br />

SAP_CMCERR() Error handling<br />

SAP_CMPERR()<br />

SAP_CMLOADCONVTAB() <strong>Data</strong> conversion<br />

SAP_CMMODCONVTAB()<br />

...<br />

© SAP AG<br />

SAP-specific CPI-C functions are partly required for communication with SAP R/2 or R/3. Optional<br />

SAP-specific CPI-C functions simplify the development of remote CPI-C programs.<br />

SAP_CMINIT (optional) and SAP_CMACCP(required in a passive program) inform the program<br />

which gateway handler is being used (gateway host, gateway service, protocol type), but these details are<br />

generally available in the relevant side information. SAP_CMINIT only makes sense before a CMINIT.<br />

Accordingly, the partner program must then contain a SAP_CMACCP before the CMACCP in order to<br />

receive the communication parameters.<br />

SAP_CMLOGON (optional) creates the connect string necessary for logging on to an R/2 or R/3<br />

System.<br />

SAP_CMCERR (optional) checks whether the data received by the R/2 or R/3 System is an error<br />

message.<br />

In the case of an error, SAP_CMPERR (optional) returns a short explanation of the error.<br />

You can use SAP_CMLOADCONVTAB (optional) to load a special conversion table.<br />

SAP_CMMODCONVTAB (optional) modifies an area of the current conversion table.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!