Using IDoc Interfaces in BPM
You can send an Intermediate Document (IDoc) from an SAP R/3 system to SAP BPM. This topic describes the needed steps for using IDoc interfaces in BPM.
An IDoc cannot be directly imported into SAP BPM. The WSDL generated from an imported IDoc in the Enterprise Services Repository (ES Repository) is not WS-I compliant. Therefore, runtime issues can occur when BPM tries to consume the service interface.
- Modifying the WSDLModifying the WSDL
- Creating Service InterfacesCreating Service Interfaces
- Creating MappingsCreating Mappings
- Creating an Integration FlowCreating an Integration Flow
- Modeling a BPM processModeling a BPM process
- Sending the IDoc from the R/3 System Sending the IDoc from the R/3 System
Modifying the WSDL
- After you have successfully imported the IDoc, open the IDoc, go to the WSDL tab, and export the WSDL into a file.
- Make a copy of the WSDL file and in this copy, do the changes that are described in the following steps.
- For the xsd:schema, set the targetNamespace attribute to "urn:sap-com:document:sap:idoc:messages" and the xmlns attribute to "urn:sap-com:document:sap:idoc:messages".
- For the <WSDL:definitions> element, set the xmlns attribute to "urn:sap-com:document:sap:idoc:messages".
- Import the modified WSDL file as an external service definition (SI_R).
- Save and activate your changes.
For more information, see 1414292 
Creating Service Interfaces
| Field | Sender Interface | Receiver Interface |
|---|---|---|
| Category | Abstract | Abstract |
| Interface Pattern | Stateless XI 3.0 Compatible | Stateless XI 3.0 Compatible |
| Mode | Asynchronous | Asynchronous |
| Request Type | IDoc | External Definition |
Creating Mappings
- In the ES Repository, you need to create a message mapping between the source (as IDoc) and the target (as external definition) because the sender and receiver do not use the same schema. For more information, see Message Mappings.
- Create an operation mapping between source (the imported and not modified interface SI_S, that means the sender interface) and target (the modified interface SI_R, that means the receiver interface). For more information, see Operation Mapping and Using Operation Mappings (PI) in a BPM Process.
- Assign the message mapping to this operation mapping.
- Save and activate your changes.
Creating an Integration Flow
- Create an integration flow with the following attributes:
Field Sender Receiver Interface SI_S SI_R Adapter Idoc_AAE SOAP, XI 3.0, JPR URL - Assign the operation mapping you created before to this integration flow.
- Save, activate and deploy your changes.
Modeling a BPM process
In the Developer Studio, with the Process Composer, model a BPM process. For more information about modeling BPM processes, see Modeling Processes with Process Composer
- Create a new Process Composer Development Component.
For more information, see Creating a Project
- Import the service interface SI_R from the ES Repository.
The data types are created in the namespace "urn:sap-com:document:sap:idoc:messages" as we changed before.
For more information about the import of service interfaces, see Importing Service Interface Definitions
- Assign this service interface to the start event of your BPM process.
For more information, see Modeling Events.
- Crate a data object and map it in the Output Mapping of the event.
For more information, see Creating Data Objects and Working with Data Mappings.
Sending the IDoc from the R/3 System
- Trigger the IDoc from the R/3 system.
- Check whether the messages have been delivered.
You can monitor the messages using the Message Monitor. To open the Message Monitor, log on to the SAP NetWeaver Administrator (URL: http://<host>:<port>/nwa), and go to .
- Check whether the BPM process started and the context data has been updated according to the sentvalues.
In the SAP NetWeaver Administrator (URL: http://<host>:<port>/nwa), go to

