The Outbound Flow Process
The outbound flow process begins with SAP sending a TID to the service configuration of the SAP Suite adapter for JCo 3 .x to then instruct the service configuration based on its status.
The outbound flow is as follows:
- SAP sends a TID to the service configuration of the SAP Suite adapter for JCo 3.x to which the RFC server is registered on the matching program ID.
- The RFC server receives the TID and checks the TID table to determine whether it has previously received this TID from SAP or not. If the TID is not found in the TID table, then the SAP Suite adapter for JCo 3.x appends an entry to the TID file, specifying the date-time stamp, TID, and the state (CREATED). The SAP Suite adapter for JCo 3.x returns a code to SAP indicating whether the TID was found, and the TID state determines whether SAP continues processing.
- If SAP continues processing, the SAP Suite adapter for JCo 3.x starts a new transaction.
- SAP sends the IDoc packet associated with the TID to the same service configuration of the SAP Suite adapter for JCo 3.x for this RFC server.
- The SAP Suite adapter for JCo 3.x receives the IDoc packet and processes the data according to the way that is defined in the outbound business process, such as splitting IDoc packets or making routing decisions based on a map file.
- After processing the data, the SAP Suite adapter for JCo 3.x returns success or an SAP exception (for example, if the target queue is full) to SAP.
- Based on the status returned from the SAP Suite adapter
for JCo 3.x, SAP instructs the same service configuration to commit
or roll back the transaction and performs one of the following actions:
- The SAP Suite adapter for JCo 3.x commits the transaction and updates the date-time stamp and state (EXECUTED) in the TID file.
- The SAP Suite adapter for JCo 3.x call rolls back the transaction and updates the date-time stamp and state (ROLLBACK) in the TID file.
- If the transaction is successfully committed, the SAP Suite adapter for JCo 3.x updates the date-time stamp and state (CONFIRMED) in the TID file.