cancel
Showing results for 
Search instead for 
Did you mean: 

How To Expose BAPI As a Webservise

Former Member
0 Kudos

Hi Guys,

I am currently working with BAPI’s. And I want this BAPI to be exposed as a webservise. Any one can explain me with the procedure. Your help should be appreciated. Thanks in advance.

Kiran.B

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

if you use standard BAPIs you can download the wsdl description from:

http://<Host System>:<Port 80XX>/sap/bc/bsp/sap/webservicebrowser/search.html?sap-client=<client>

Then you can import this file in the Integration Repository (external Definitions) and you will the necessary messages (inbound and outbound).

Regards

Patrick

Former Member
0 Kudos

Hi kiran

Creating a Web Service

Use

You create a Web service so that users can access the available functions, such as an RFC-enabled function module, function group, BAPI, or XI message, even those stored in a different system.

Two roles are provided for creating Web services:

&#9679; Web Service Developer

The Web service developer defines the Web service at design time. He or she knows the application logic as well as the resulting conditions for the communication type (for example, stateless/stateful), and the required security level. He or she defines these properties at an abstract level. Specific details, such as the transport binding or security concept to be used, are defined only later during the Web service configuration.

&#9679; Web Service Configurator

The Web service configurator defines the behavior of the Web service at runtime. He or she knows the system landscape and the technical requirements of the application server where the Web service is to be called. On the basis of the abstract definition of the Web service, the configurator can decide during configuration which specific attributes should be assigned to the features defined at design time.

Prerequisites

To create or consume Web services, you need the authorizations associated with the role SAP_BC_WEBSERVICE_ADMIN. You must add the authorization S_ICF_ADMIN (authorization for the Internet Communication Framework) to your profile. You use the authorization S_SERVICE for starting external services.

Procedure

Um einen ...

&#9679; To create a Web service for a function module, function group, BAPI, or XI message interface with a predefined feature profile, use the Web Service Creation Wizard.

&#9679; To specify the features of the Web service yourself, follow the procedure described in Creating a Virtual Interface.

You can also create Web services using the Web Service Creation Wizard, and then change the virtual interface and Web service definition in the Object Navigator (SE80), by choosing Enterprise Services ® Web Service Library.

for step by step kindly follow these links

http://help.sap.com/saphelp_nw04/helpdata/en/e9/ae1b9a5d2cef4ea4b579f19d902871/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/37/12dd95a22831469a2363d98b19506b/content.htm

hope this wil solve your problem

regards

if helpful kindly reward points

Former Member
0 Kudos

Hi,

the main requirement for creting the web service using the function module is the function should be RFC enabled.

1. To create web service of this Function Module

Go to Utilities ->More utilities->create a web service->from function module

2. A new wizard will be open to create the web service and click on continue.

3. Enter the web service name (any name that you want to give) and give the short description, select the Endpoint type as Fuinction Module and click on continue.

4. Select the Function Module name that you are using.

5. select the profile as Basic Authentication: SOAP Pro.

6. Press continue to release the web service. The web service is now created

To check the web service Go to the transaction WSADMIN and select the node

SOAP Application for RFC-Complaint FMs and expand the node and select your web service that you have created and expand the web service node up to the last .

Now to test the web service select the last node and click on the web service home page button and it will open the home page.

from this page u will get the wsdl file as well as you can testthe web service.

Regards

Seshagiri

Former Member
0 Kudos

Check the following blogs

/people/sebin.thomas/blog/2008/01/09/exposing-remote-function-module-as-web-service-in-xi--step-by-step

/people/kumar.prashant4/blog/2006/07/14/using-rfc-as-webservice-in-webdynpro

/people/sridhar.k2/blog/2006/09/12/creating-and-exposing-bapi-as-web-service-and-using-it-in-web-dynpro

/people/amol.joshi2/blog/2007/01/29/rfc-calls-from-adapter-modulesthe-web-service-way

Former Member
0 Kudos

HI,

Refer the below links.

Exposing webservice through R3.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80fa3dff-ce76-2a10-3f94-f3df8f2d...

Exposing BAPI as Web Services through SAP XI

/people/community.user/blog/2006/10/24/exposing-bapi-as-web-services-through-sap-xi

refer this link to know how to create and expose BAPI as a web service:

/people/sridhar.k2/blog/2006/09/12/creating-and-exposing-bapi-as-web-service-and-using-it-in-web-dynpro

chirag