NW ABAP Gateway (OData)

oData : Working with json data in backend

In certain scenarios, deeply nested data structures, multiple long text messages, etc. need to be passed from backend to frontend and sometimes complicated filter strings, mass data for processing, etc. can be passed from the frontend to the backend. In both these scenarios one can work with JSON data.   Examples for the former include data rich entities with large number of fields like vendor data, material data, etc., backend …

Read More »

Cache Cleanup in SAP Netweaver Gateway

Target Audience: SAP Fiori developers Dear Readers, I’m an SAPUI5/ SAP Fiori consultant.This blog is especially for SAPUI5 front end developers.This details about cleaning up of cache through various methods. Cache cleanup is required when we have made changes in the SAPUI5 code but it fails to reflect when the application is accessed through launchpad. Problem We all would have faced this issue of code changes not reflecting in Fiori …

Read More »

Exception handling in gateway projects

One of the most common requirements for any project is to have a proper exception handling framework. Same goes for any NetWeaver Gateway projects as well. In this blog, I would elaborate on a basic yet powerful exception handling mechanism which we followed in one of our projects and which assisted primarily in quickly pin-pointing source code where dumps and other issues occurred. I will leverage the concepts of Dynamic(CX_DYNAMIC_CHECK) …

Read More »

Generic Expanded Entity Implementation

NetWeaver Gateway provides GET_EXPANDED_ENTITY method for retrieving an entity together with Child entities, via. navigation properties. This approach provides better performance compared to calling individual entities separately for fetching data. The general approach for implementing GET_EXPANDED_ENTITY involves explicitly specifying which child entities can be retrieved along with parent entity through hardcoding of the navigation properties in the method implementation. This requires populating the data in the nested properties of the …

Read More »

Implementation of ETag for write services

  This article details an approach for implementing ETags in OData write scenarios in SAPUI5 applications. Traditionally SAP GUI applications have utilized pessimistic locking using lock objects to ensure data consistency in parallel usage scenarios like single material number being edited by two users concurrently, same employee’s work schedule getting updated in parallel in two sessions, etc. This tight coupling has some disadvantages; for example, one user can block the …

Read More »

Call external APIs and retrieve the data in ABAP

Hello All, As the ODATA protocol is getting famous nowadays, and so many APIs avail different services/data as ODATA service, how an ABAPer can male use of it? Here is one of the way to call an external API and get the data into ABAP system.   Step 1. Use class CL_HTTP_CLIENT to get an object of type IF_HTTP_Client. There are different methods for getting this object. example: by the …

Read More »

Defaulting OData response in json format

Hello All, In my ongoing learning I came across enough learning blogs on how to create OData services , debug it  consume it etc. However at some point I was stuck in the end about how do I default my web service response to json format? It might be very common concept for most of other learners but still could be handy for any new learner who need it as …

Read More »

Steps to create Deep Insert oData

Deep Insert oData Steps: Go to T-Code “SEGW” (ECC Server). Click on ‘Create Project’. The below pop-up window will appear. Enter Project Name, Description and assign the project to a Package. Click on execute button.  A project named ‘ZSL_SER_GRP_REP_TOTAL’ will be created.   Select the project name and click on save button. The below pop-up window will appear. Select the WB request or create a new one.   Click on …

Read More »

SAP Gateway Client – Tips and Tricks

Purpose of this blogpost: List little tricks while using the SAP Gateway Client. Who should read it: Anyone and everyone who uses SAP Gateway Client and wants to extract more from it. Relevant SAP Transaction: /IWFND/GW_CLIENT Format of this blogpost: Q&A Here we go. Que 1: I am not able to launch transaction /IWFND/GW_CLIENT. What should I do? Ans 1: Try /n/IWFND/ Que 2: I have entered the Service URI. …

Read More »

Handling date and time in POST requests in Odata

Hi all, Just thought I would share my recent thoughts and findings on a well debated area of Odata Development in ABAP. There are numerous blogs about the edm.dateTime object, but not really many solutions on how to ACTUALLY handle it. So I thought I would share my easy way with you all. First rule of odata dateTime club, do NOT just use string for convenience. I know it can …

Read More »

Do you want to Get SAP Courses?

Get SAP Courses and Training, Videos, Other Useful Resources
Join Now
Written by SAP Expert TEAM.
close-link
New Registration