Skip to Content
author's profile photo Former Member
Former Member

How To Expose BAPI As a Webservise

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 13, 2008 at 06:24 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 14, 2008 at 05:07 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 14, 2008 at 07:23 AM

    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:

    ● 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.

    ● 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 ...

    ● 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.

    ● 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 14, 2008 at 08:11 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.