Creating and Using a Web Service in SAP ERP

  • by Kees Bond, Principal Consultant, CIBER Netherlands BV
  • November 1, 2012
Learn how to create a Web service in an SAP system and then publish and use it.
Key Concept

A Web service is a method of communication between two electronic devices over the Internet. It has an interface described in a machine-processable format — specifically the Web Services Description Language (WSDL). Other systems interact with the Web service in a manner prescribed by its description using SOAP messages, typically conveyed using HTTP with an XML serialization in conjunction with other Web-related standards. There are many Web services already available on the Internet; for example, to get the weather for a particular city or to check stock exchange data.

SAP systems contain a lot of data, and it is now more common for companies to look for ways to access that data from other legacy systems or mobile devices. Access to the data should be done in a structured and secure manner. Using a Web service is one such method for getting data from SAP systems.

This article shows you how to create a function module and create a Web service from it. Then I show you how to consume the Web service with a third-party tool (SOAPUI) and how to call the Web service from an Android application. In my example scenario I am using some standard function modules in SAP to retrieve airline flight information based on a carrier ID (LH).

The functionality discussed in this article is available from SAP ERP Central Component (SAP ECC) version 5.0.

Kees Bond

Kees Bond is a senior HCM consultant and ABAP consultant with 17 years of experience with SAP. He followed an HBO education in Amsterdam and lives in the Netherlands.

He started his SAP career in the first Dutch hospital to implement SAP. He was responsible for the implementation of the HCM module components PA, OM, time, and payroll. Currently, Kees is working as a principal consultant for CIBER Netherlands BV.

See more by this author


No comments have been submitted on this article. 

Please log in to post a comment.

To learn more about subscription access to premium content, click here.