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.

Status and <strong>Data</strong> Information in RECEIVE<br />

* Status information<br />

ABAP/4: Include report RSCPICDF<br />

DATA: INT4(4) TYPE X.<br />

...<br />

DATA:<br />

CM_NO_STATUS_RECEIVED LIKE INT4 VALUE '00000000',<br />

CM_SEND_RECEIVED LIKE INT4 VALUE '00000001',<br />

* <strong>Data</strong> information<br />

CM_NO_DATA_RECEIVED LIKE INT4 VALUE '00000000',<br />

CM_COMPLETE_DATA_RECEIVED ... VALUE '00000002',<br />

...<br />

typedef typedef int int STATUS_RECEIVED;<br />

STATUS_RECEIVED;<br />

... ...<br />

# status_info<br />

#define #define CM_NO_STATUS_RECEIVED CM_NO_STATUS_RECEIVED 00<br />

#define #define CM_SEND_RECEIVED 11<br />

# data_info<br />

typedef typedef int int STATUS_RECEIVED;<br />

STATUS_RECEIVED;<br />

... ...<br />

#define #define CM_NO_DATA_RECEIVED 00<br />

#define #define CM_COMPLETE_DATA_RECEIVED 22<br />

© SAP AG<br />

C: Header file cpic.h<br />

The status information is used to switch the send direction. The values have the following meanings:<br />

- CM_NO_STATUS_RECEIVED --> Send direction not switched<br />

- CM_SEND_RECEIVED --> Connection partner surrenders send rights<br />

If the status information is set to CM_SEND_RECEIVED, the current program has the status SEND.<br />

The data information returns details about the flow control. The different statuses are as follows:<br />

- CM_NO_DATA_RECEIVED --> No data received<br />

- CM_COMPLETE_DATA_RECEIVED --> All data received<br />

- CM_INCOMPLETE_DATA_RECEIVED --> Not all available data received

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

Saved successfully!

Ooh no, something went wrong!