17.08.2013 Views

Data Interfaces

Data Interfaces

Data Interfaces

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Accepting Connections Passively (ACCEPT)<br />

ABAP/4 C<br />

...<br />

COMMUNICATION ACCEPT<br />

ID convid<br />

[ RETURNCODE rc ]<br />

...<br />

© SAP AG<br />

...<br />

CMACCP (<br />

convid,<br />

&rc );<br />

A passive program must accept the connection before data can be exchanged.<br />

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

ABAP/4: CONVID C 8<br />

RC X 2<br />

C: convid PCONVERSATION_ID<br />

rc CM_RETCODE<br />

If the ACCEPT is executed without error, the program for this connection will be in RECEIVE mode.<br />

conversation_id: This value is returned by the routine and must be specified in all subsequent CPI-<br />

C calls<br />

for this connection.<br />

return_code: = 0 (CM_OK): Routine executed without error<br />

= error code: An error has occurred<br />

...

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

Saved successfully!

Ooh no, something went wrong!