SAP CRM Middleware Important Tcodes/Transactions


SAP CRM Middleware allows SAP CRM Integration to exchange Data between Different Systems.
Middleware use Business Document (BDoc) messagas.
The most used transaction for middleware is SMW01 to display Bdoc messages.

Here the list of other usefull transactions by topics

  • SAP CRM Middleware Main Transactions
  • Middleware Configuration
  • Middleware Troubleshooting
  • XIF/ BDoc Generation

Must Read: All the SAP CRM Main tcodes classified by SAP CRM Module.

SAP CRM Middleware Main Transactions

The most important SAP CRM Middleware Transaction are:

Tcode Description
SMWP Monitoring Cockpit
SMW00 Error Handler
SMW01 Display BDoc Messages
SMW02 BDoc Message Summary
SMQ1 Outbound Queue Monitor
SMQ2 Inbound Queue Monitor
SMQR Queue-In Schedular
SMQS Queue-Out Schedular
SMWT Middleware Trace
R3AS Start Initial Load
R3AC6 Define Middleware Parameters
R3AR2 Define Requests
R3AR3 Monitor Requests
R3AR4 Start Requests
SDIMA Data Integrity Manager
SBDM BDoc Modele


Middleware Configuration

Configuration of SAP CRM Middleware starts with configuration of replication object, then comes the subscription objects and finally the creation of Queue.
The following table represents the Tcodes for Middleware configuration.

Tcode Description
SALEDefine Logical system
SM59Configuration of RFC Connections
SMOEACAdministration Console
SMQ1Outbound Queue
SMQ2Inbound Queue
R3AC3Adapter object overview ( filter and customizing)
R3ASStart Initial Load
R3AM1Monitor replication status
R3AC1Adapter Object Overview

Middleware Troubleshooting

Naturally, errors occur … yes even for middleware.

  1. The first step is to check the Bdoc Message (SMW01 ).
  2. If the Bdoc Messages analysis is not enough, check the qRFC Monitor (SMQ1/2 ).
  3. Finally, after correction, Bdoc Messages can be copied and replayed (SMW19 & SMW20 )
Tcode Description
SMW01Display BDOC Messages
SMQRqRFC Monitor
SMQ1Outbound qRFC Monitor
SMQ2Inbound qRFC Monitor
SMW19Copy BDoc and process
SMW20Process BDocs
SMW3RBMConvert BDoc Messages to XML

XIF/ BDoc Generation

In the XIF interface doesn’t exist ( for exemple ), you can generate the ALE interface for the message with BDFG.
The Structure of Bdoc Message can be displayed with Tcode SBDM.

Tcode Description
BDFG Generate ALE interace
SBDM BDoc Structures
SMOAEC Message Suscription
SMOGTOTAL Generate Object for CRM Replication