Purchase Order IDoc Mapping

Purpose

This describes the process followed by R/3 ORDERS Mapping while transforming an:

Inbound Purchase Order or Purchase Order Change , with an R/3 ORDERS IDoc message format, into a CRM IDoc message format. The message type of the inbound message may be ORDERS or ORDCHG , based on whether the message is a Purchase Order or a Purchase Order Change .

Outbound Purchase Order Confirmation message, in a Complex Data Type for Business Transaction message format, into an R/3 ORDERS IDoc message. In response to the inbound message, the Vendor system creates a sales order and sends a confirmation message to the Buyer System. The outbound message is of the message type ORDRSP .



The SAP CRM System:

Creates a sales order, when it receives a message of type ORDERS

Updates an existing sales order when it receives a message of type ORDCHG

In both the cases, the SAP CRM System sends an outbound confirmation message of type ORDRSP

Process Flow



Inbound and Outbound Scenario for Purchase Order IDoc Mappings

Inbound Message - Purchase Order or Purchase Order Change

In an inbound processing, the Buyer sends a purchase order to the Seller

The Application Link Enabling (ALE) layer receives the inbound R/3 ORDERS IDoc with message types ORDERS or ORDCHG and stores the message in the database. The R/3 ORDERS IDoc Mapping receives the inbound R/3 ORDERS IDoc message via the ALE and transforms it into a CRM IDoc message in sequential steps. During transformation, the R/3 ORDERS IDoc Mapping maps the:

R/3 ORDERS IDoc structure to the Complex Data Type of theSAP CRM System

Complex Data Type to the Messaging BDoc (mBDoc)

R/3 ORDERS IDoc Mapping then passes the mBDoc to the CRM Middleware for validation. The successful processing of an mBDoc triggers the creation of a sales order in the Vendor system.

Outbound Message - Purchase Order Confirmation

In the outbound processing, the Seller sends asales order confirmation to the Buyer

The CRM Middleware replicates thesales order confirmation to the external receivers based on the site types of the recipients, for further processing. When the recipient site type is the External Interface for IDocs , it transfers the mBDoc to the External Interface Adapter .

R/3 ORDERS IDoc Mapping maps the outbound Complex Data Type for Business Transactions message into a R/3 ORDERS IDoc message in sequential steps. During transformation, the R/3 ORDERS IDoc Mapping maps the:

mBDoc to the Complex Data Type of theSAP CRM System

Complex Data Type to the R/3 ORDERS IDoc message of type ORDERSP

R/3 ORDERS IDoc Mapping sends the transformed outbound message to the Buyer system.

See also:

Request for Quotation IDoc Mapping