Questions tagged [sap-gateway]

Use this tag when the question involves implementing OData-compliant REST APIs in SAP Gateway, and everything about SAP Gateway Foundation: OData service implementation, proxy classes for OData services, REST messages (GET, PUT, POST, DELETE), etc.. NOT to be confused with "SAP Gateway for Microsoft" [sap-gwm].

SAP Gateway (Formerly known as "SAP NetWeaver Gateway") is a technology that allows connecting different platforms and environments based on open standards like .

It provides tools and environment for development OData services for connecting SAP and non-SAP systems. SAP Gateway can be deployed either standalone or on top of ECC system by installing SAP_GWFND component.


Official community page: https://community.sap.com/topics/gateway

190 questions
6
votes
1 answer

SAP Gateway $filter on $expand Entity

I've seen two post about the URL convention, but my question is specific to the SAP's Gateway implementation for OData web services assuming. When trying to use $filter in combination with $expand we get the error message: Left hand expression of…
Bryan Abrams
  • 337
  • 1
  • 4
  • 16
6
votes
1 answer

What is the difference between SOAP web-services and an OData service?

I already built different SOAP webservices in java (years ago..) and different OData Services with the SAP Gateway in abap. The major difference (except of the programming language) is that I recieve a WSDL (likely XML) with a SOAP-webservice- with…
The_Lord
  • 83
  • 2
  • 5
5
votes
2 answers

sapui5 table shows only the same record

I have created a webservice and trying to bind data using oData protocol in SAPUI5. I have created a table: createContent : function(oController) { jQuery.sap.require("sap.ui.table.Table"); //Create table control with properties …
Radek
  • 1,403
  • 3
  • 25
  • 54
4
votes
2 answers

SAP Gateway development: How do I write well 'mapable' function modules?

When developing SAP Gateway projects using the SEGW t-code, I always try to import entity sets from function modules / BAPIs. Besides being very fast and useful, I am - mostly - also able to map the data sources to the CRUD-Q operation methods of…
SDD64
  • 706
  • 13
  • 28
3
votes
0 answers

Generating Swagger from SAP Gateway?

I've setup swagger docs for SAP Gateway services using https://inspector.swagger.io/builder and https://app.swaggerhub.com/ However, the free plan is very limited (3 Public API's), plus the URL is set at app.swaggerhub.com. Is there any way the…
Adam Harkus
  • 2,050
  • 2
  • 36
  • 64
3
votes
1 answer

Modify response headers in SEGW Odata service

I have an OData Service Created with SEGW. In my DPC_EXT class I want to modify the response headers. in other words, before the entityset is returned I want to add my custom header to the response, so that the front-end can handle those custom…
Kevin Mueller
  • 628
  • 3
  • 10
  • 23
2
votes
1 answer

How to correctly implement $expand query in SEGW?

I was trying to implement the $expand query option for an Odata Service in SEGW... I basically have UsersSet and ProductsSet... and the relation is m:n between users and products (Users can have multiple products, and products can belong to multiple…
MMMM
  • 3,320
  • 8
  • 43
  • 80
2
votes
0 answers

HTTP/1.1 401 Unauthorized with OData generated endpoint

I am trying to generate the objects of an API OData Service in my application. This service is a vendoring app by ERP SAP (version 2.0). The authorization header property is a Basic credential. After I add the header and click the button to…
2
votes
0 answers

Serve partial content (HTTP 206) via SAP Gateway Media into SAPUI5 App

In my SAPUI5 application I am trying to include a video, which is working very well. The video is from a media stream from SAP Gateway, which is built with OData V2. The video is shown in a custom SAPUI5-Control, very simple, just a html-video…
Chris
  • 63
  • 4
2
votes
3 answers

Pass an empty value to an OData V2 Edm.Time property

I have a variable type time but sometimes this variable doesn't have anything. When it is initial, it shouldn't be "000000", I want an empty value without anything (no zeros). Let me explain my problem with the code: IF lwa_hora IS INITIAL. CLEAR…
kyara
  • 133
  • 6
2
votes
2 answers

Resource not found for segment when calling GetEntity in OData service

I have function that exports a structure containing 4 numbers (int4). The function import is a flag. I created a data model in SEGW for the function and created a GetEntity mapping I encountered a problem that when I run the request with key =…
Assaf
  • 63
  • 4
  • 11
2
votes
1 answer

SAPUI5: OData V2 returns error "The Data Services Request could not be understood due to malformed syntax"

I'm trying to use OData V2 as suggested in this comment. The issue is whenever I use sap.ui.model.odata.v2.ODataModel rather than the deprecated sap.ui.model.odata.ODataModel, I get this error from SAP Gateway Error Log The Data Services Request…
Abdulelah
  • 77
  • 3
  • 10
2
votes
1 answer

Can you return specific errors from a SAP Gateway service?

We have a 3rd party that places orders onto our system via a JSON payload into an SAP Gateway Service. The structure of the Gateway Service holds the structure of the data expected in the JSON. From the Gateway Service, an ABAP function is called…
Adam Harkus
  • 2,050
  • 2
  • 36
  • 64
2
votes
0 answers

Read Cookies in SAP Gateway Methods

when implementing a SAP Gateway Service (using DPC_EXT Classes), I'd like to access some custom cookies. But I dont seem to be able to access them... Using following code lo_faqcade = /iwbep/if_mgw_conv_srv_runtime~get_dp_facade(…
iPirat
  • 2,197
  • 1
  • 17
  • 30
2
votes
1 answer

Sap odata: Export a single Variable with abap

I have got a function module that counts some variables in sap system and export it as single INT4. But when I try to use this in gateway service, it says me "no output table mapped" How can i overcome it, I tried to put this variable in a table…
İbrahim Özcan
  • 103
  • 3
  • 12
1
2 3
12 13