cancel
Showing results for 
Search instead for 
Did you mean: 

SAP(IDOC) ---PI---webservice

Former Member
0 Kudos

Hi

Is it possible or not to send IDOC to webservice via PI ?

I need a necessary things and steps to setup in PI (BPM etc) to send the IDOC from SAP to Webservice via PI

thanks

manian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

BPM CONFIGURATION

Receive(Idoc)>transform(mapping of idoc to Reques)>Send(Mode-Synchronous)>Transform(Mapping of response to Idoc)>Send(output Idoc)

Answers (10)

Answers (10)

Former Member
0 Kudos

Hi manian ,

Above replies are correct and u can proceed.

But when u r integrating IDOC with webservices u need to get the response back ( Synchronous mode)

if u r not using response message it will generate error message in componet monitoring and in Message monitoring it shows Acknowledge errors..

So u need to send the response back from webservices to IDOC....But IDOC is Asynchronous..

Us the BPM using Asynch-Synch Bridge......

"Award Points if it is useful"

Regards,

Jayasimha Jangam

**********

Please read the Forum's Rules of Engagement,

i.e.,

/thread/117188 [original link is broken]

and refrain from requesting points

SDN PI/XI Forum Moderator

Former Member
0 Kudos

Hi,

The scenario you are looking is possible.

The following are steps needs to done on IR Side

1. Import the IDoc into your PI system.

2, Import the WSDL of your Webservice using External definitions of Interface Objects.

3. Create Inbound and Outbound Interface for the imported external definitions(Outbound interface is required incase we are going for synchronous communication).

4. Create message mapping and Interface mapping between Idoc and WSDL.

5.Activate the all above objects.

The following steps are required on ID Side.

1. Create a integration scenario and assign your SAP system to the scenario.

2. Create a Business Service to represent your Web service and define the sender and receiver messages.

3. Create a communication channel of type SOAP adapter

4. Assign the Web service to the Integration scenario.

5. As source is IDoc no sender agreement is required.

6 .Create a Receiver determination for your message and sender.

7. Create Interface determination to determine Inbound interface and mapping program.

8. Create Receiver Agreement.

Save and activate the objects.

Please a refer below scenario which is RFCtoSOAP to have an idea on steps involved.

ht[http://www.saptechnical.com/Tutorials/XI/RFCtoSOAP/page1.htm|RTFToSOAP]

Thanks

MNR

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

Refer this Blog.

By Shabarish Vijayakumar

Insted of sender RFC you are going to use IDoc.

Remember if your Webservice is going to be synchronous that you have to use Sync-Async Bridge.

By Sudhir Porumamilla

Thanks

SaNv...

Former Member
0 Kudos

hi,

Is it possible or not to send IDOC to webservice via PI ?

Yes . Possible to send IDOC to websevice using PI.

1.Import the IDOC.

2.Import your WSDL file using External Definition.

3.Create a Message Interface with Inbound.

4.Create Message Mapping and Interface Mapping.

5.Create Receiver business Service.

6.Create Receiver Communication chennal with SOAP adapter.

7.Give the target URL and SOAP action.

There is no need of BPM.IDOC is process only asynchronous.

If You want to send the Webservice response to some file then that time you need BPM.

Regards,

Prakasu

former_member183906
Active Contributor
0 Kudos

Its very well possible to send SAP IDOC to webservice.You need to use receiver SOAP adapter and sender IDOC adapter.

Synchronous- BPM

Asynshronous- No BPM

Some examples for your reference is as follows :

Your scenario is basicallty SAPR/3(IDOC)-SAPXI-3RD PARTY(WEBSERVICES).

In your scenario, you have to do the following steps:

1. Configure the ALE seetings between SAP R/3 to SAP XI such as

- creation of logical system-t-code SALE

- creation of RFC in sm 59 pointing to SAP XI

- creation of port and using the RFC pointing to SAP XI

- creation of Partner profile for outbound parameter

2. Ask the webservices team to provide you the wsdl file for the 3rd party system

3. Do the SLD configuration for respective software product, software component

4. Configure Integration repository , use the wsdl file as an external definition so no need to create data type n message type for your scenarios.Create message Interface as Inbound & select the message type from external defintion of wsdl file for output. Import the IDOC and do the mapping and Inteface mapping.

5. Create the Business Service as your 3rd party system is webservice

the configure your soap receiver adapter communication channel and mention the address location URL which is there in wsdl file , mention the user authentication parameters if required , mention the soap action which is there in wsdl.

No need to create IDOC Sender adapter.

Create receiver determination , Interface determination , receiver agreement. No need to create sender agreement ad no sender communication channel required in your case.

6. Now the configuration is over and download SOAP UI tool and test the wsdl file connectivity.Once it is o.k

7. start triggering your IDOC and and it will be sent to reciving 3rd party system via SOAP adapter.

Hope it helps you.

Former Member
0 Kudos

check this URL for posting IDOCs to XI :

Former Member
0 Kudos

Hi,

Yes You can send the Idoc to Webservice Very Well through XI

If you want Response back to SAP means we need to configure BPM else no need of any BPM

ALE Settings

Steps

SAP XI

1) RFC Destination (SM59)

a) Choose create.

b) Specify the name of the RFC destination

c) Select connection type as 3 and save

d) In the technical settings tab enter the details SAP SID/URL and system number#.

e) Enter the Gateway host as same details above SID/URL.

f) Gateway service is 3300+system number#.

g) In the Logon /Security tab, enter the client user & Password details of Destination system.

h) Test the connection and remote logon.

2) Create Port (IDX1)

a) Select create new button

b) Enter the port name as SAP+SID (The starting char should be SAP)

c) Enter the destination client.

d) Enter the RFC Destination created in SAP R/3 towards other system.

e) Save

3) Load Meta Data for IDOC (IDX2)

a) Create new

b) IDOC Message Type

c) Enter port created in IDX1.

SAP R/3

1) RFC Destination (SM59)

a) Choose create.

b) Specify the name of the RFC destination

c) Select connection type as 3 and save

d) In the technical settings tab enter the details SAP SID/URL and system number#.

e) Enter the Gateway host as same details above SID/URL.

f) Gateway service is 3300+system number#.

g) In the Logon /Security tab, enter the client user & Password details of Destination system.

h) Test the connection and remote logon.

2) Create Port (We21)

a) First Select Transactional RFC and then click create button

b) Enter the destination port name as SAP+SID (The starting char should be SAP)

c) Enter the destination client.

d) Enter the RFC Destination created in SAP R/3 towards other system.

e) Save

3) Create Partner Profile (WE20)

a) Create New

b) Create the Partner no. name as same the logical system name of the destination system.

c) Select Partner type LS

d) Enter details for Type: US/USER, Agent, and Lang.

e) Click on the + button to select the message type.

f) Select Partner no. and LS which ever create above.

g) Select Message type

h) Select Process code related to the Message type.

I) save.

In SLD u2013 System Landscape Directory

TS for R/3 (Logical system):-Assign the client name created in R/3 as Logical system Name.

Ts for Third Party (Logical system):-

BS for SAP R/3 (Logical system):- Assign the client name created in R/3 as Logical system Name.

BS for Third Party (Logical system):-Enter the XI logical system name.

In Transaction SALE

Define and Assign the logical system name.

IR

1)Import the Idoc in IR for Sender Side Structure and use this Idoc itself as DT MT and MI. No need to create

2) Import the wsdl file given from the webservice team

3) create MI for this webservice

4) create Mappping and interface mapping

ID

1)No need to create any Sender CC for Idoc, why because Idoc Sits on ABAP Stack and can directly interact with the IS

2) Create Receiver SOAP CC

3) Create Receiver Determination and Interface Det

4) Create Receiver agreement

5) no need of Sender agreement

REgards

Seshagiri

Edited by: N V Seshagiri on Aug 12, 2008 7:01 AM

Former Member
0 Kudos

Thanks to all of you,

It is a Synchronous scenario. Please let me know How to configure BPM for this scenario

Can you please give me steps

thanks

manian

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

You can go through below mentioned blogs .

Invoke Webservices using SAPXI

- troubleshoot the SOAP adapter.

Thanks

Former Member
0 Kudos

hello manian,

You can send the Data from the SAP Systems to Webservice.

using the IDOC ALE settings on R3 and XI .

using the SOAP Adapter on the Receiver Side.You webservice should be able to accept the Incoming Data from the IDOC.

But what is scenario ? Synchronous or Async.

if it asynchronous then you dont require any BPM.

regards

Ganga