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 Return Codes<br />

ABAP/4: Include report RSCPICDF<br />

DATA: INT2(2) TYPE X.<br />

...<br />

* return code<br />

DATA: CM_OK LIKE INT2 VALUE '0000'.<br />

...<br />

DATA: CM_DEALLOCATED_NORMAL LIKE INT2 VALUE '0012',<br />

DATA: CM_PARAMETER_ERROR LIKE INT2 VALUE '0013',<br />

...<br />

typedef typedef int int CM_RETCODE;<br />

CM_RETCODE;<br />

... ...<br />

# returncode<br />

#define #define CM_OK CM_OK 00<br />

... ...<br />

#define #define CM_DEALLOCATED_NORMAL CM_DEALLOCATED_NORMAL 18 18<br />

#define #define CM_PARAMETER_ERROR 19 19<br />

... ...<br />

© SAP AG<br />

C: Header file cpic.h<br />

Return codes provide information about the outcome of calls. You use the returned values to aid general<br />

progran flow control and error handling in the event of communication terminations.<br />

In ABAP/4, the return code value is copied to the system field SY-SUBRC.<br />

The return codes are defined in the include report RSCPICDF.<br />

The return code is 2 bytes long and has the type X.

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

Saved successfully!

Ooh no, something went wrong!