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

How to expose a bapi as Rest webservice to consume in web applications

Hello experts , i now seriously need your suggestion here. Is there a way to expose a BAPI as a rest webservice which can be consumed by a web application in the end.

What is ICF ( Internet Communication Framework) ? Does this help in generating web service from BAPI ?

Netweaver Gateway might help to generate services but may not be recommended here in our scenario.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 19, 2014 at 10:56 PM

    David,

    Open up the FM in SE37 and chose the below menu path.

    UTILITIES->MORE UTILITIES - > CREATE A WEB SERVICE - > FROM THE FUNCTION MODULE.

    Once you are there, SAP will take you thru various steps thru which you can expose the FM as a web service to be consumed from web applications.

    Thanks,

    Vikram.M

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 20, 2014 at 06:37 AM

    Please refer Real Web Services with REST and ICF for creation of rest services in sap. The BAPI will have to be called in your handler class.

    I think your best bet would be to transfer the data in the body of the http request and use simple transformation(with multiple roots) to convert the xml data to sap formats. GZIP can also be used to compress the data that is being sent. We have done this successfully in one of our projects.

    However this approach(RESTful Service) would involve more work when compared to the approach suggested by Vikram. If SOAP based services are ok, then you should go ahead with Vikram's approach.

    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.