Vous êtes sur la page 1sur 7

6/12/2015

SAP PI 7.1 Step by step guide for SOAP to IDOC scenario using BPM Sync-Async Bridge | EL Netweaver

EL Netweaver
SAP NetWeaver Consulting

SAP PI 7.1 Step by step guide for SOAP to


IDOC scenario using BPM Sync-Async Bridge
Posted on November 26, 2011
4 Votes
In a Business to Business (B2B) scenario, to send data from non-SAP to SAP system using Web Service
via SAP PI, typical SOAP to IDOC scenario can be used.
Test Case
In this particular case study, non-SAP system wants to submit data to SAP ECC system (via IDOC) and
just wants acknowledgement of successful data acceptance. It is very tricky to handle this situation as
SAP ECC performs transactions in asynchronous mode and on contrary, Web Service (via SOAP protocol)
waits for response after sending data means synchronous mode.
SAP PI consultant knows that this can be achieved by using ccBPMs sync-async bridge capabilities in
SAP PI. As it seems simple is to start with this approach, more difficult it gets when you try to achieve this
technically. So, in this post my focus is to achieve this scenario technically.
Integration Repository Objects
Data Types
1. ConfirmInboundDeliveryRequestType
2. ConfirmInboundDeliveryResponseType
Message Type
1. ConfirmInboundDeliveryRequest
2. ConfirmInboundDeliveryResponse
3. StandardMessageFault
https://elnetweaver.wordpress.com/2011/11/26/sap-pi-7-1-step-by-step-guide-soap-to-idoc-scenario-using-ccbpm-with-response-message-using-sync-async-b

1/7

6/12/2015

SAP PI 7.1 Step by step guide for SOAP to IDOC scenario using BPM Sync-Async Bridge | EL Netweaver

Imported Object
IDOC: WMMBXY.WMMBID02
Message Interface
For Sender: ConfirmInboundDeliveryOut | Sync | Abstract | using message type 1, 2, 3
For Integration Process Container(Request)
ConfirmInboundDeliveryReqAA | Async | Abstract | using message type 1
For Integration Process Container (Response)
ConfirmInboundDeliveryRespAA | Async | Abstract | using message type 2
Receiver: ConfirmInboundDeliveryWMMBID02 | Async | Abstract | using imported Idoc
Message Mapping
Mapping Name

Source Message Type

Target Message Type

ConfirmInboundDeliveryRequestToWMMBID02

ConfirmInboundDeliveryRequest

WMMBXY.WMMBID02

ConfirmInboundDeliveryResponseFromWMMBID02 ConfirmInboundDeliveryResponse ConfirmInboundDeliveryResponse

NOTE: Here mapping # 2 is trick y part. Please note same interface is used to map response message. A
fixed ack nowledgement message is defined in this mapping. PI uses this message in BPM to send static
response back to Web Service as acceptance to message.Hence it completes the message branching.
Interface Mapping

1.ConfirmInboundDeliveryToWMMBID02Req Source

ConfirmInboundDeliveryReqAA.ConfirmInboundDeliveryReq

Operation

Target

ConfirmInboundDeliveryWMMBID02.WMMBID02In

Operation
Associated ConfirmInboundDeliveryRequestToWMMBID02
Mapping
Program

2.ConfirmInboundDeliveryToWMMBID02Resp Source

ConfirmInboundDeliveryWMMBID02.WMMBID02In

Operation
Target

ConfirmInboundDeliveryRespAA.ConfirmInboundDeliveryResp

Operation
Associated ConfirmInboundDeliveryResponseFromWMMBID02
Mapping
https://elnetweaver.wordpress.com/2011/11/26/sap-pi-7-1-step-by-step-guide-soap-to-idoc-scenario-using-ccbpm-with-response-message-using-sync-async-b

2/7

6/12/2015

SAP PI 7.1 Step by step guide for SOAP to IDOC scenario using BPM Sync-Async Bridge | EL Netweaver

Program

Integration Process | ConfirmInboundDeliveryProcess

Follow

Follow EL
Netweaver
Get every new post delivered
to your Inbox.
Join 39 other followers

Integration Directory Objects

Enter your email address

Sender Business Component: BC_TEST

Sign me up
Receiver Business System: SAPCLT050
Build a website with WordPress.com

Sender Communication Channel: SOAPSender

Receiver Communication Channel: IDOCReceiver


Receiver Determination:
1. BC_TEST | ConfirmInboundDeliveryOut | ConfirmInboundDeliveryProcess
2. ConfirmInboundDeliveryProcess | ConfirmInboundDeliveryWMMBID02 | SAPCLT050
Interface Determination
1. BC_TEST | ConfirmInboundDeliveryOut | ConfirmInboundDeliveryProcess
Interface Name: ConfirmInboundDeliveryOut
2. ConfirmInboundDeliveryProcess | ConfirmInboundDeliveryWMMBID02 | | SAPCLT050
Interface Name: WMMBXY.WMMBID02
Sender Agreement
| BC_TEST | ConfirmInboundDeliveryOut | * | *

https://elnetweaver.wordpress.com/2011/11/26/sap-pi-7-1-step-by-step-guide-soap-to-idoc-scenario-using-ccbpm-with-response-message-using-sync-async-b

3/7

6/12/2015

SAP PI 7.1 Step by step guide for SOAP to IDOC scenario using BPM Sync-Async Bridge | EL Netweaver

Interface Name: ConfirmInboundDeliveryOut


Communication Channel: SOAPSender
Receiver Agreement
ConfirmInboundDeliveryProcess | SAPCLT050 | WMMBXY.WMMBID02
Communication channel: IDOCReceiver
I spent hours searching for this information but didnt find fully relevant end to end scenario. Based on my
findings and research i came up with this post. Hope this will solve your purpose and save alot of time
Let us k now for no obligation consulting assistance. Leave your comments for feedback or discussion.

About these ads

SHARE THIS:

Facebook

LinkedIn

Twitter

Google

Email

Reddit

Tumblr

Like
Be the first to like this.

RELATED

SAP SOA Tools Usage and


Best Practices
In "SAP CE"

SAP PI 7.1 - Integration


Process Exception Handling
and Alert definition
In "SAP NetWeaver"

SAP PI 7.1 Architecture


and Component Overview
In "SAP NetWeaver"

This entry was posted in SAP NetWeaver, SAP PI and tagged sap, sap ccBPM, SAP ESR, SAP
Integration, SAP NetWeaver, SAP NetWeaver Consulting, SAP NW Custom Development, SAP PI,
sync-async bridge by Mandeep Virk. Bookmark the permalink
[https://elnetweaver.wordpress.com/2011/11/26/sap-pi-7-1-step-by-step-guide-soap-to-idocscenario-using-ccbpm-with-response-message-using-sync-async-bridge/] .
10 THOUGHTS ON SAP PI 7.1 STEP BY STEP GUIDE FOR SOAP TO IDOC SCENARIO USING BPM SYNC-ASYNC BRIDGE

Rene Pilz
on March 5, 2012 at 1:28 PM said:

Thank you for that realy good description.


https://elnetweaver.wordpress.com/2011/11/26/sap-pi-7-1-step-by-step-guide-soap-to-idoc-scenario-using-ccbpm-with-response-message-using-sync-async-b

4/7

6/12/2015

SAP PI 7.1 Step by step guide for SOAP to IDOC scenario using BPM Sync-Async Bridge | EL Netweaver

We do have exact this problem and could solve it that way.


Looks like if youre using more operations in one service-interface and the most of them are
syncrous, all have to be syncrous (or it is a problem within gsoap which we have to use, cause QT
itself cant handle Webservices).
Anyway, that way it workes.

Mandeep virk
on March 9, 2012 at 2:39 PM said:

Hi Rene, I am glad that you find it suitable for your scenario and it worked for you. Stay
tuned..

sukumar
on May 29, 2012 at 4:35 PM said:

Hi,
How to trigger the response message from IDOC to BPM?
i have done the inblound FM development , do we need to populate the response message ? if so
please help on the SAP coding part.
REgards
Sukumar

Mandeep Virk
on June 7, 2012 at 12:38 AM said:

Hi Sukumar,
Please check Message Mapping part of blog.
Also read NOTE section in it carefully. It explains answer to your query.
We do not need any coding.
Here we are using a response structure which returns a fixed message.
Hope it helps. Let me know if you still have problem.
Thanks,
Mandeep Virk

Renuka
on September 19, 2012 at 10:55 AM said:
https://elnetweaver.wordpress.com/2011/11/26/sap-pi-7-1-step-by-step-guide-soap-to-idoc-scenario-using-ccbpm-with-response-message-using-sync-async-b

5/7

6/12/2015

SAP PI 7.1 Step by step guide for SOAP to IDOC scenario using BPM Sync-Async Bridge | EL Netweaver

Hi Mandeep,
I have more or less the same scenario. could you plz help me here.
My scenarion is
Request message
Non-SAP(Sync)>SAP PI>Mainframe(Async)
Response message
Mainframe(Async)>SAP PI>Non-SAP(Sync)
I started with the BPM. i think i need to use the SOAP and JMS because JMS
uses Websphere MQ. The message from Non SAP do not have any document
numbers. so i need to use the correlation id and conversion id . could you plz let
me know how to proceed with this.
this is bit urgent thanks a lot in advance..
Regards,
Renuka

Anita @ desiatpeace@yahoo.com
on October 2, 2012 at 9:51 PM said:

Hi,
I am looking to find an expert online tutor to teach me EDI/IDOC/Interfaces/Mapping. Please
contact me if your know this subject and have real time experience in this subject.
Thanks

Sergey Fedechkin
on January 22, 2013 at 7:27 PM said:

HI. What`s about the status of IDoc creation in ECC? How the sender should know about error in
IDoc?

Mandeep Virk
on January 25, 2013 at 1:56 AM said:

https://elnetweaver.wordpress.com/2011/11/26/sap-pi-7-1-step-by-step-guide-soap-to-idoc-scenario-using-ccbpm-with-response-message-using-sync-async-b

6/7

6/12/2015

SAP PI 7.1 Step by step guide for SOAP to IDOC scenario using BPM Sync-Async Bridge | EL Netweaver

Hi
This is async communication. Response should be sent back to Ecc using ALE audit
report separately. It is standard process and need to be configured between systems
involved.
MS Virk

felipef
on June 25, 2013 at 7:20 PM said:

Hello El Netweaver!
Why, when making the second Interface Mapping (ConfirmInboundDeliveryToWMMBID02Resp),
the Associated Mapping Program (ConfirmInboundDeliveryResponseFromWMMBID02) does not
appear in the list ?

Mandeep Virk
on July 3, 2013 at 3:49 PM said:

Hi Felipef,
Please read Note Section above Interface Mapping.
Mandeep Virk

https://elnetweaver.wordpress.com/2011/11/26/sap-pi-7-1-step-by-step-guide-soap-to-idoc-scenario-using-ccbpm-with-response-message-using-sync-async-b

7/7