---
title: How to Test ABAP Business Services in SAP Gateway Client
description: Learn how to efficiently test ABAP business services using SAP Gateway Client, ensuring your OData services are active, accessible, and correctly structured.
image: https://blog.sap-press.com/hubfs/How%20to%20Test%20ABAP%20Business%20Services%20in%20SAP%20Gateway%20Client.jpg
---

[![rheinwerk-sappress-logo-header-1](https://blog.sap-press.com/hubfs/rheinwerk-sappress-logo-header-1.svg)](https://blog.sap-press.com/) [Blog](https://blog.sap-press.com)

- Books 
    - Get an overview of our books and courses on every relevant SAP topic. 
          - [Programming](https://sap-press.com/programming/)
          - [Administration](https://sap-press.com/administration/)
          - [BI](https://sap-press.com/business-intelligence/)
          - [Finance](https://sap-press.com/finance-controlling/)
          - [Logistics](https://sap-press.com/logistics/)
          - [HR](https://sap-press.com/human-resources/)
          - [CRM & Sales](https://sap-press.com/marketing-sales/)
          - [HANA](https://sap-press.com/hana/)
          - [Introductions](https://sap-press.com/introductions/)
          - [E-Bites](https://sap-press.com/e-bites/)
          - [Certification Guides](https://www.sap-press.com/certification-guides/)
          - [Rheinwerk Courses](https://www.sap-press.com/online-courses/)
- Book Subscription 
    - Get unlimited access to all SAP PRESS books! 
          - [SAP PRESS Subscription](https://sap-press.com/subscriptions/)

[Programming](https://blog.sap-press.com/tag/programming)

# How to Test ABAP Business Services in SAP Gateway Client

![SAP PRESS](https://blog.sap-press.com/hubfs/Twitter_profile_pic.svg)  by [SAP PRESS](https://blog.sap-press.com/author/sap-press)

Working with OData services in SAP often begins with understanding how to access and test those services, and the service URL plays a central role in that process.

 

The *service URL* is used by the current [ABAP](https://learning.sap-press.com/abap)system to access the business service. This URL specifies the virtual directory of the service and uses the following syntax (here it’s for OData V2):

`/sap/opu/odata/<service.binding.name>`

 

One use case where you need the service URL involves testing business services via SAP Gateway Client. To access SAP Gateway Client, you must run Transaction /IWFND/MAINT\_SERVICE. Alternatively, you can also use Transaction /IWFND/GW\_CLIENT.

 

You can now call your service (see figure below):

1. Click on the **Filter** button, and select the desired business service. You can find the business service using the name you assigned as part of the service binding.
2. Enter the name of the service in the **Technical Service Name**
3. Start the service by clicking the **SAP Gateway Client**

You can tell whether the service has started successfully, for example, by the fact that the service metadata is read. Only if the service was found successfully will the metadata readout work.

![Finding and Starting a Service in SAP Gateway Client](https://blog.sap-press.com/hs-fs/hubfs/image-png-Nov-21-2025-06-43-15-2617-PM.png?width=1125&height=715&name=image-png-Nov-21-2025-06-43-15-2617-PM.png)

 

To read the metadata, you need to add the URI option **$metadata** to the service URL. In the figure below, you can see the service URL for your service. If you access SAP Gateway Client via Transaction /IWFND/GW\_CLIENT, you only need to copy the service URL from the service binding.

![Service URL in the SAP Gateway Client](https://blog.sap-press.com/hs-fs/hubfs/image-png-Nov-21-2025-06-43-44-5632-PM.png?width=1131&height=424&name=image-png-Nov-21-2025-06-43-44-5632-PM.png)

 

Evaluating the service metadata is an easy way to obtain an overview of an OData service. This metadata is made available to the consumer and helps you recognize the structure and organization of the entities, navigation, and service operations. Put simply, the service metadata is an interface description for OData services.

 

To retrieve this information, you can add the URI option **$metadata** to the service URL. The SAP Gateway Client supports you in this (see figure below):

1. Click the **Add URI Option** button.
2. A popup window opens where you select the URI option **$metadata**.
3. Click on the **Execute** button. Now the metadata will be loaded.

![Displaying Metadata of an OData Service in SAP Gateway Client](https://blog.sap-press.com/hs-fs/hubfs/image-png-Nov-21-2025-06-44-04-6508-PM.png?width=1132&height=671&name=image-png-Nov-21-2025-06-44-04-6508-PM.png)

 

In the metadata, you can find entities, navigation elements, and operations of the business service. The next figure shows the metadata of the business service exposed via service binding ZUI\_TRAVEL\_ODATA\_O2. Here, a function import (FunctionImport) is marked, which represents the setStatusBooked action defined specifically for the associated business object. You’ll find a function import in the [OData](https://blog.sap-press.com/introduction-to-odata-in-sap) service for all actions you define yourself. You’ll also find annotations for the standard operations (create, update, and delete) in the metadata (e.g., sap-creatable).

![Metadata of an OData Service in SAP Gateway Client](https://blog.sap-press.com/hs-fs/hubfs/image-png-Nov-21-2025-06-44-19-1337-PM.png?width=1128&height=660&name=image-png-Nov-21-2025-06-44-19-1337-PM.png)

 

SAP Gateway Client has some advantages compared to other testing options, such as the automatic handling of ETags. When consuming a service on the same system on which SAP Gateway Client is installed, you don’t have to worry about authentication. It also interprets the metadata and can thus, for example, provide input help for the possible entity sets. On the other hand, the testing option via the [SAP Fiori elements](https://learning.sap-press.com/sap-fiori-overview#sap-fiori-elements) preview described in the following section can only be used for UI services.

## Conclusion

Testing a business service through SAP Gateway Client offers a straightforward way to validate that an OData service is active, accessible, and correctly structured. By using the service URL, along with helpful features like built-in metadata retrieval, automatic ETag handling, and input assistance, you can quickly gain insight into the entities, navigation paths, and operations exposed by the service. While SAP Fiori elements previews provide UI-focused testing, SAP Gateway Client remains an essential tool for backend service inspection and troubleshooting, ensuring that your OData services are functioning as designed.

 

Editor’s note: This post has been adapted from a section of the book *[ABAP RESTful Application Programming Model: The Comprehensive Guide](https://www.sap-press.com/abap-restful-application-programming-model_6161/?utm_source=sappressblog&utm_medium=referral&utm_campaign=Blogs&utm_term=2752_chapter6&utm_content=2752) *by Lutz Baumbusch, [Matthias Jäger](https://www.linkedin.com/in/matthias-j%C3%A4ger-835a601a6/), and [Michael Lensch](https://www.linkedin.com/in/michael-lensch-b3a13a137/). Lutz has worked as an SAP developer since 2000 and has been responsible for international SAP projects in various roles and areas. Matthias is a freelance full-stack ABAP developer, architect, and trainer. Michael leads a team of SAP developers at All for One Group SE.

 

This post was originally published 12/2025.

## Recommendation

[![ABAP RESTful Application Programming Model](https://blog.sap-press.com/hs-fs/hubfs/2752-1.jpg?width=170&name=2752-1.jpg)](https://www.sap-press.com/abap-restful-application-programming-model_6161/?utm_source=sappressblog&utm_medium=referral&utm_campaign=Blogs&utm_term=2752_chapter6&utm_content=2752)

**ABAP RESTful Application Programming Model**

The ABAP RESTful application programming model (RAP) is the cornerstone of modern development for SAP—get on the cutting edge with this guide! Develop applications from the ground up, from data modeling with CDS to interface generation with SAP Fiori elements. Walk through concrete use cases, including managed and unmanaged scenarios, and then adapt your applications to the SAP BTP, ABAP environment. You’re on your way to working with RAP!

[Learn More](https://www.sap-press.com/abap-restful-application-programming-model_6161/?utm_source=sappressblog&utm_medium=referral&utm_campaign=Blogs&utm_term=2752_chapter6&utm_content=2752)

![SAP PRESS](https://blog.sap-press.com/hubfs/Twitter_profile_pic.svg)

**by [SAP PRESS](https://blog.sap-press.com/author/sap-press)**

SAP PRESS is the world's leading SAP publisher, with books on ABAP, SAP S/4HANA, SAP IBP, intelligent technologies, SAP Business Technology Platform, and more!

[Programming](https://blog.sap-press.com/tag/programming) [How To](https://blog.sap-press.com/tag/how-to)

[![Share on facebook](https://7528309.fs1.hubspotusercontent-na1.net/hub/7528309/hubfs/raw_assets/public/mV0_d-web-default-modules_hubspot/img/facebook-color.png?width=24&name=facebook-color.png)](https://www.facebook.com/share.php?u=https%3A%2F%2Fblog.sap-press.com%2Fhow-to-test-abap-business-services-in-sap-gateway-client%3Futm_medium%3Dsocial%26utm_source%3Dfacebook) [![Share on linkedin](https://7528302.fs1.hubspotusercontent-na1.net/hub/7528302/hubfs/raw_assets/public/mV0_d-web-default-modules_hubspot/img/linkedin-color.png?width=24&name=linkedin-color.png)](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fblog.sap-press.com%2Fhow-to-test-abap-business-services-in-sap-gateway-client%3Futm_medium%3Dsocial%26utm_source%3Dlinkedin) [![Share on twitter](https://7528304.fs1.hubspotusercontent-na1.net/hub/7528304/hubfs/raw_assets/public/mV0_d-web-default-modules_hubspot/img/twitter-color.png?width=24&name=twitter-color.png)](https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Fblog.sap-press.com%2Fhow-to-test-abap-business-services-in-sap-gateway-client%3Futm_medium%3Dsocial%26utm_source%3Dtwitter&url=https%3A%2F%2Fblog.sap-press.com%2Fhow-to-test-abap-business-services-in-sap-gateway-client%3Futm_medium%3Dsocial%26utm_source%3Dtwitter&source=tweetbutton&text=) [![Share on email](https://7528311.fs1.hubspotusercontent-na1.net/hub/7528311/hubfs/raw_assets/public/mV0_d-web-default-modules_hubspot/img/email-color.png?width=24&name=email-color.png)](mailto:?subject=Check+out+https%3A%2F%2Fblog.sap-press.com%2Fhow-to-test-abap-business-services-in-sap-gateway-client%3Futm_medium%3Dsocial%26utm_source%3Demail&body=Check+out+https%3A%2F%2Fblog.sap-press.com%2Fhow-to-test-abap-business-services-in-sap-gateway-client%3Futm_medium%3Dsocial%26utm_source%3Demail)

### Comments

### Latest Blog Posts

[![How to Define a Business Service with CDS and SAP Fiori Elements](https://blog.sap-press.com/hs-fs/hubfs/How%20to%20Define%20a%20Business%20Service%20with%20CDS%20and%20SAP%20Fiori%20Elements.png?height=600&name=How%20to%20Define%20a%20Business%20Service%20with%20CDS%20and%20SAP%20Fiori%20Elements.png)](https://blog.sap-press.com/how-to-define-a-business-service-with-cds-and-sap-fiori-elements)

[Programming](https://blog.sap-press.com/tag/programming)

## [How to Define a Business Service with CDS and SAP Fiori Elements](https://blog.sap-press.com/how-to-define-a-business-service-with-cds-and-sap-fiori-elements)

[Read More](https://blog.sap-press.com/how-to-define-a-business-service-with-cds-and-sap-fiori-elements)

[![How to Create an SAP Fiori Elements User Interface](https://blog.sap-press.com/hs-fs/hubfs/Creating%20an%20SAP%20Fiori%20Elements%20User%20Interface.png?height=600&name=Creating%20an%20SAP%20Fiori%20Elements%20User%20Interface.png)](https://blog.sap-press.com/how-to-create-an-sap-fiori-elements-user-interface)

[Programming](https://blog.sap-press.com/tag/programming)

## [How to Create an SAP Fiori Elements User Interface](https://blog.sap-press.com/how-to-create-an-sap-fiori-elements-user-interface)

[Read More](https://blog.sap-press.com/how-to-create-an-sap-fiori-elements-user-interface)

**Subscribe to our blog!**Get notified about future blog updates.

- <https://www.facebook.com/sappress>
- <https://twitter.com/sappress>
- <https://linkedin.com/company/sap-press>
- <https://www.instagram.com/sap_press/>
- <https://blog.sap-press.com/rss.xml>

### The official SAP PRESS Blog

As the world’s leading SAP publisher, SAP PRESS’ goal is to create resources that will help you accelerate your SAP journey. The SAP PRESS Blog is designed to provide helpful, actionable information on a variety of SAP topics, from SAP ERP to SAP S/4HANA. Explore ABAP, FICO, SAP HANA, and more!

### SAP Blog Topics

- [All Topics](https://blog.sap-press.com)
- [Logistics](https://blog.sap-press.com/tag/logistics)
- [Programming](https://blog.sap-press.com/tag/programming)
- [FICO](https://blog.sap-press.com/tag/fico)
- [Administration](https://blog.sap-press.com/tag/administration)
- [Business Intelligence](https://blog.sap-press.com/tag/business-intelligence)
- [What Is?](https://blog.sap-press.com/tag/what-is)
- [Featured](https://blog.sap-press.com/tag/featured)
- [CRM & Sales](https://blog.sap-press.com/tag/crm-sales)
- [Video](https://blog.sap-press.com/tag/video)
- [Human Resources](https://blog.sap-press.com/tag/human-resources)

### Blog curated by

[![Rheinwerk Publishing & SAP PRESS Logo](https://blog.sap-press.com/hubfs/rheinwerk-sappress-logo-header-1.svg)](https://sap-press.com) [Visit the SAP PRESS Store](https://sap-press.com)

### About

- [Home](https://sap-press.com/)
- [About Us](https://sap-press.com/the-publisher/)
- [Contact](mailto:info@rheinwerk-publishing.com)
- [Legal Notes](https://sap-press.com/legal-notes/)
- [Privacy Policy](https://sap-press.com/privacy/)
- [Terms of Use](https://sap-press.com/terms/)
- [Guest Posting](https://blog.sap-press.com/guest-posting)

© 2026 Rheinwerk Publishing, Inc. | Change Privacy Options

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "SAP PRESS",
    "url" : "https://blog.sap-press.com/author/sap-press"
  },
  "dateModified" : "2025-12-17T13:52:22.067Z",
  "datePublished" : "2025-12-08T14:00:03.000Z",
  "headline" : "How to Test ABAP Business Services in SAP Gateway Client",
  "image" : [ "https://blog.sap-press.com/hubfs/How%20to%20Test%20ABAP%20Business%20Services%20in%20SAP%20Gateway%20Client.jpg" ],
  "mainEntityOfPage" : {
    "@id" : "https://blog.sap-press.com/how-to-test-abap-business-services-in-sap-gateway-client",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://blog.sap-press.com/hubfs/Logo-1.jpg"
    },
    "name" : "Rheinwerk Publishing, Inc."
  }
}
```