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.

General Flow<br />

System 1 System 2<br />

© SAP AG<br />

Initialize Initialize connection<br />

connection<br />

Set Set up up connection<br />

connection<br />

Send Send data data<br />

Receive Receive data data<br />

Send Send data<br />

data<br />

Close Close connection<br />

connection<br />

Side Side info<br />

info<br />

table table<br />

(Client)<br />

Program 1 (Server)<br />

Program 2<br />

Accept Accept connection<br />

connection<br />

Receive Receive data data<br />

Send Send data<br />

data<br />

Receive Receive data data<br />

Close Close connection<br />

connection<br />

With program-to-program communication, the general flow is the same regardless of the programming<br />

language used. The following rules apply:<br />

- With half duplex communication, only one program is authorized to send data at any one time. When one<br />

program is in send mode, the other is in receive mode.<br />

- The program setting up the communication always has the right to send data first.<br />

- The other (started) program is in receive mode first.<br />

- Switching the direction of the communication is achieved by setting off CMRCV in send mode. Then, the<br />

partner program can send data.<br />

- Mutiple communication switching is possible.<br />

One program sets up the connection ( = client); a partner program accepts the connection ( = Server).<br />

In the communication initiator system, a side information table must exist. This table is needed for the<br />

connection initialization.

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

Saved successfully!

Ooh no, something went wrong!