Skip to Content

Creating of the Web Service from BAPI is very simple. By Default for all the Standard BAPI’s Web Services are defined. This procedure shows how to create web service from the custom BAPI.

Step – 1:

To Find the BAPI

Transaction Code – SE37 -> Enter Function Module Name -> Ex: – ZBAPI_ADVANCED_BPSEARCH -> It navigates to the below (fig – a) screen with all the details about that BAPI.

image

Fig – a:  Shows the Custom BAPI Detail

Step – 2:

Web Service Creation

Log on to the Object Navigator (Transaction Code – SE80) -> Enter the Function Group (It is there in the above fig – a.) in the Function Group Area.

 Fig – b:  Displays all the BAPI’s in that Function Group

Fig – b:  Displays all the BAPI’s in that Function Group

1) In Object name Window – it will show the Entered Function Group (fig – b).

2) Go to Function Modules -> Select Function Module -> Create the Web Service by Right Click on Function Module -> Create -> Web Service

3) It will take to Create Service Definition Window -> Continue (Over View) -> Give Service name (Ex: – ZAdvance_Search_BAPIService) and Short Text -> Continue (Create Service) -> Continue (Choose Endpoint) -> Continue.

4) Select the Check Box “Release Service for Runtime” (If you want Release the Service) -> Complete (Complete).

Note: – If “Release Service for Runtime” selects then it automatically Releases otherwise we have to do it manually.

Step – 3:

Assigning Package for the Web Service

 Fig – c:  Assigning Web Service to the package

Fig – c:  Assigning Web Service to the package

finish.

Mode is created. Access this Web Service in the normal Standard Web Service.

To report this post you need to login first.

9 Comments

You must be Logged on to comment or reply to a post.

  1. Venkata Srikant D.
    Hi

    I’m trying to follow your weblog but I’m not getting Create-> Web Service option . Do I need to have some pre-requisites for this to happen?

    Which version of R/3 is been used. Is it possible to do the same on 4.6C or 4.7

    (0) 
  2. Marcel Salein
    This is a great blog. In Visual Composer you have the problem, that you can only use webservices if you use webdynpro as compiler option. With this blog it’s now possible to use BAPIs and I think also RFCs  in Visual Composer under the webdynpro compiler.

    Thanks for this great blog.

    Best Regards,

    Marcel

    (0) 
    1. Sridhar k Post author
      Thanks Marcel, I have read your blogs on VC. They are wonderful and if possible write more on VC Controls like Charts, etc.

      Regards,
      Sridhar

      (0) 
    1. Sridhar k Post author
      If you are using ECC 6.0, All Standard BAPI’s are exposed as Web Services. You can directly use them.

      Regards,
      Sridhar

      (0) 
  3. But how can you consume the abap web service in WD as adaptive web service model with logical destination. To configure the logical destination we need either the wsil or wsdl. releasing the ABAP web service doesn’t really register/publish the service into the inspection.wsil, the link of the wsdl doesn’t really work as logical destination (in our case the link is: http://esmh0137.bss.cgi:8001/sap/bc/srt/rfc/sap/ZWS_TES_GET_WEEKS?sap-client=001&wsdl=1.1). While the link points to the wsdl file itself, logical destination expects something like http://esmh0137.bss.cgi:50100/AdobeDocumentServices/Config?wsdl which is not hte wsdl itself.
    So you have any idea about how abap web service works with webdynpro as adaptive web service model and with logical destination?

    Thanks
    Jayson

    (0) 

Leave a Reply