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.

Sending <strong>Data</strong> (SEND)<br />

ABAP/4 C<br />

...<br />

COMMUNICATION SEND<br />

ID convid<br />

BUFFER output<br />

[ LENGTH send_length ]<br />

[ RETURNCODE rc ]<br />

...<br />

© SAP AG<br />

...<br />

CMSEND (<br />

convid,<br />

output,<br />

&send_length,<br />

&request_to_send_received,<br />

&rc );<br />

With the SEND command, you can send data packets of up to 30,000 bytes.<br />

All the data in the buffer output is sent to the receiving program. However, it is not actually transferred<br />

until the buffer is full or after the next RECEIVE or DEALLOCATE.<br />

If a particular length send_length is specified, the appropriate number of bytes is transferred from the<br />

buffer output to the receiving program.<br />

A SEND is allowed only within the send status.<br />

You must assign appropriate types and lengths to variables:<br />

ABAP/4: CONVID C 8<br />

OUTPUT C<br />

SEND_LENGTH P max. 30,000<br />

RC X 2<br />

C: convid PCONVERSATION_ID<br />

output PCPIC_CHAR max. 30,000<br />

send_length CPIC_INT<br />

request_to_send_received REQUEST_TO_SEND_RECEIVED<br />

(not evaluated)<br />

rc CM_RETCODE<br />

...

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

Saved successfully!

Ooh no, something went wrong!