cancel
Showing results for 
Search instead for 
Did you mean: 

Using BAPI as WebService Interface in SAP PI

Former Member
0 Kudos

Hello,

Situation is:

BAPI is imported in SAP PI from SAP R/3 system.

The BAPI will be used for R/3 as Sync.Receiver.

A Web Application should connect to SAP PI with the same message structure for request and response.

So the idea is to publish the BAPI interface as a WSDL for this partner.

But when doing this in Directory SAP PI does not offer BAPIs as Interfaces for WSDL, only message interfaces created

in Repository are offered.

BAPIs are interfaces per definition. So we dont need a message interface to add the BAPI to it.

Maybe this woin t work anyhow with a SAP system.

But how to use the BAPI for a WSDL?

Is it required to create an interface for this purpose and add this one in the Directory WSDL create function?

Best regards

Dirk

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

you cannot create a WSDL direct from RFC or IDoc. But you can create a service interface based on the RFC or IDoc as message type, so you can forward the message without mapping.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Meinhard,

There are more ways to get where you want to go, some are mentioned above.

You can also do the following:

1) From the BAPI you create the Webservice in R3 (as described in the link from pavan kumar)

2) Go to trx SOAMANGER (in R3) and get the URL for the WSDL

3) Import the WSDL in PI as an External Definition (ED)

4) Now you create an INBOUND, synchronous, service interface with the external definition.

5) After saving the SI you can create a matching Outbound service interface (it's a menu option)

Now you can use these service interfaces in the Integration directory.

You can even create an ICO (integrated configuration) provided you use SOAP communication channels.

kr

Robert

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>>But how to use the BAPI for a WSDL?

>>>Is it required to create an interface for this purpose and add this one in the Directory WSDL create function

As Stefan mentioned, first import RFC in PI as message type. Then create service interface for this. Use Integration Directory to create wsdl for the service interface. Now you can have webservice that has RFC's request and response structure

Hope you understand.

Former Member
0 Kudos

Hi Baskar,

I've used this method.

I think this is the best solution for exposing RFC's.

Soap to RFC Integration is working,

but the data in the SOAP Request is not passed into the RFC Request.

Did I miss something?

Thanks..

agasthuri_doss
Active Contributor
0 Kudos

Dirk,

>>But how to use the BAPI for a WSDL?

you can get the WSDL form - the Directory WSDL create function?

Thanks

Agasthuri

former_member183908
Active Contributor
0 Kudos

Hi Dirk,

--> If you want to use BAPI as WSDL refer the below link

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e0a53caf-bf0e-2e10-45b9-ba5a63eb810e

Thanks