<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gurkan Yilmaz on Medium]]></title>
        <description><![CDATA[Stories by Gurkan Yilmaz on Medium]]></description>
        <link>https://medium.com/@gurkan.yilmaz_95950?source=rss-49f36b48334c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*I64tlVZXcsZ5DDoGxkAVEw.jpeg</url>
            <title>Stories by Gurkan Yilmaz on Medium</title>
            <link>https://medium.com/@gurkan.yilmaz_95950?source=rss-49f36b48334c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 03:38:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gurkan.yilmaz_95950/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ABAP Development — Ultimate Guide to Structuring ABAP Reports]]></title>
            <link>https://medium.com/@gurkan.yilmaz_95950/abap-development-ultimate-guide-to-structuring-abap-reports-163933a35440?source=rss-49f36b48334c------2</link>
            <guid isPermaLink="false">https://medium.com/p/163933a35440</guid>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[ui5]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Gurkan Yilmaz]]></dc:creator>
            <pubDate>Wed, 29 May 2019 08:21:49 GMT</pubDate>
            <atom:updated>2019-05-29T08:21:49.748Z</atom:updated>
            <content:encoded><![CDATA[<h3>ABAP Development — Ultimate Guide to Structuring ABAP Reports</h3><p>As ABAP developers we can easily say that, most of the time, we create new reports or we deal with the ones which already present in our systems.</p><p>Especially in legacy systems reports can be quite problematic. Few thousand lines of code in a same include, lots of forms and performs done recursively, submits to the other reports, function calls etc. can make us drown in these reports.</p><p>So I would like to state out some concepts that you can use in your daily developments which will help you or your team to maintain your codebase easily in the future.</p><p>Or if you never developed something in ABAP-OO, this might be a starting point for you. You can use this guide to implement a report from scratch.</p><p>It might seems complicated at first glance but you will definitely benefit of this design techniques when your reports grow bigger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*UXOpTt1zB45NFaNhrW8uXw.png" /></figure><p><em>All of these suggestions are my personal opinions, you may agree or disagree, please do not hesitate to contact with me to discuss the details.</em></p><p>Before we start, let’s create our list of DO’s and DON’ts when developing a new report.</p><p><strong>DO’s</strong></p><ul><li>Keep the report line count as minimal as possible,</li><li>Create global classes for separate layers,</li><li>Design your classes depending on their responsibility, do not give them functions more than it is necessary,</li><li>Implement exception based error control system if it is possible,</li><li>Follow OO design concepts and principles,</li><li>Code for the interface — Use interfaces for polymorphism, type storage and constant share between the classes,</li></ul><p><strong>DON’ts ;</strong></p><ul><li>Do not use forms,</li><li>Do not use function modules, if you must, either encapsulate them in classes or transfer the implementation inside of another class,</li><li>Avoid heavy usage of local classes, do not bloat them with objects,</li><li>Limit usage of includes,</li><li>Limit usage of global variables, do not depend on them,</li><li>Do not over-engineer the classes,</li><li>Do not hard code values or strings,</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*pdnFMmpLyW5IcSiOT91gyQ.png" /><figcaption>Overview of the 3 Tier Implementation</figcaption></figure><p><strong>Yes this looks pretty simple</strong>, but how we should implement it in ABAP ?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*laFGaw3jUOHXY_1pkbsbIw.png" /></figure><p>So let’s create a scenario which we are going to implement for a customer. Our customer wants from us to change its partners category (<strong>BUT000-TYPE</strong>) according to their partner number (<strong>BUT000-PARTNER</strong>). And after this change, they want to display it in <strong>ALV</strong> with the option of save or discard. To provide the highest benefit I will keep the classes as simple as possible.</p><p>So let’s create a scenario which we are going to implement for a customer. Our customer wants from us to change its partners category (<strong>BUT000-TYPE</strong>) according to their partner number (<strong>BUT000-PARTNER</strong>). And after this change, they want to display it in <strong>ALV.</strong> To provide the highest benefit I will keep the implementation <strong>as simple as possible</strong>.</p><p>We will be getting our data from <strong>BUT000</strong> table.</p><p>Here is our condition;</p><ul><li>We need to change the <strong>partner category</strong>,</li></ul><p>Now if we make a quick checklist;</p><ul><li>We will have local facade class to glue everything together,</li><li>We need an ALV class to represent our data,</li><li>We need a partner class to manipulate the data,</li><li>And finally we will need a data access object(dao) class to do CRUD operations.</li></ul><p>So here is the overview of our architecture.</p><p>Depending on the requirements of course, we can increase the number of logic and dao classes. Also we can increase the interaction between the objects.</p><p>Here is the source code if you like to check out,</p><p><strong>Report:</strong></p><p><strong>Include:</strong></p><p><strong>Class : zcl_partner_dao</strong></p><p><strong>Class : zcl_alv</strong></p><p><strong>Class : zcl_partner</strong></p><p>I hope you liked the article!</p><p>Don’t forget the check out my other posts! You can find them in my profile.</p><pre><a href="https://www.linkedin.com/in/gurkan-yilmaz/">https://www.linkedin.com/in/gurkan-yilmaz/</a></pre><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=163933a35440" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginning Development on SAP HANA]]></title>
            <link>https://medium.com/@gurkan.yilmaz_95950/beginning-development-on-sap-hana-f333be1f7268?source=rss-49f36b48334c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f333be1f7268</guid>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[eclipse]]></category>
            <category><![CDATA[sapui5]]></category>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[hana]]></category>
            <dc:creator><![CDATA[Gurkan Yilmaz]]></dc:creator>
            <pubDate>Wed, 20 Sep 2017 13:07:12 GMT</pubDate>
            <atom:updated>2017-09-20T13:07:12.114Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article we will start preparing our environment for developing HANA applications and extensions.</p><p>To connect our HANA DB, we have to download Eclipse installation package which meet our expectations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-SFrpreMUHzbJuiQ.png" /></figure><pre>tools.hana.ondemand.com</pre><p>As you see Eclipse Neon currently supports packages we need.</p><p>You can download Eclipse Neon link below;</p><pre><a href="http://www.eclipse.org/neon/">www.eclipse.org/neon/</a></pre><p>After downloading Eclipse you should import relevant packages from SAP Development Tools.</p><pre>Open Eclipse Neon -&gt; Help -&gt; Install New Software</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*w4LdNLWCwSz-SZ5C.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kRGVQ6UMgUnW0J_e.png" /></figure><p>You can either choose to install all available packages from repository or you can only install SAP HANA Tools package, it is up to you.</p><p>After installation of required tools, you should switch your Eclipse perspective to HANA Development to be able to see Systems section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fqAC25iH2TLs8y41.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/0*II52g1Ce9KpM3i_M.png" /></figure><p>After clicking open, you will see available perspectives.</p><p>Choose SAP HANA Development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/0*gvIzCXMfhJSOBYjP.png" /></figure><p>Now click on Add System and add details of your HANA DB.</p><pre>Key Point : Your HANA DB <br>IP and instance is <br>different than<br>your SAP NW server, so<br>you should get details<br>and necessary user-password<br>details from your Basis<br>consultant.</pre><p>Enter necessary details of your HANA details and connect to system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/0*igrVLl8An3aHim0d.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/0*W3qY4kfA7nRtzSRH.png" /></figure><p>After successful connection, you can see details of your DB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/0*uKn1X79YitO5Fxi2.jpg" /></figure><p>Most critical point of this configuration guide is the Security section. If you don’t have necessary security permissions you cannot do any operations on system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d4v995i8ZTIQe7C8.jpg" /></figure><p>In next chapter of this series we will talk about what is our options on HANA databases to help our development process. See you next time.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f333be1f7268" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ABAP 7.40–7.50 Inline Declarations]]></title>
            <link>https://medium.com/@gurkan.yilmaz_95950/abap-7-40-7-50-inline-declarations-9b146ddc78c0?source=rss-49f36b48334c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b146ddc78c0</guid>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[sapui5]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[hana]]></category>
            <dc:creator><![CDATA[Gurkan Yilmaz]]></dc:creator>
            <pubDate>Wed, 20 Sep 2017 13:06:26 GMT</pubDate>
            <atom:updated>2017-09-20T13:06:26.786Z</atom:updated>
            <content:encoded><![CDATA[<p>In my blogging series, I will try to share my experiences, tips and tricks about development of topics like ABAP, HANA, SAPUI5, iOS, JavaScript etc. with short articles whenever I find time to write.</p><p>Because I work as SAP development consultant, I spend most of my time using SAP’s great and fast backend language ABAP. Here is everyday tricks, you might find useful.</p><p>In our first post I will try to give you some insights about inline declarations in ABAP language. There are few time saving features you can use in your everyday coding sessions.</p><p>So lets start!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2887592eeaaa52740290b8087f6a316a/href">https://medium.com/media/2887592eeaaa52740290b8087f6a316a/href</a></iframe><p>In our next blog I will continue focusing on 7.40–7.50 syntax features. Then I’m planning to move on simple step-by-step tutorials on different topics to get things little exiting.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b146ddc78c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP HANA — AMDP CRUD Operations — Heart of the HANA Development]]></title>
            <link>https://medium.com/@gurkan.yilmaz_95950/sap-hana-amdp-crud-operations-heart-of-the-hana-development-8a8a3f5ba953?source=rss-49f36b48334c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a8a3f5ba953</guid>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[hana-development]]></category>
            <category><![CDATA[hana]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Gurkan Yilmaz]]></dc:creator>
            <pubDate>Wed, 20 Sep 2017 07:36:43 GMT</pubDate>
            <atom:updated>2017-09-20T07:36:44.132Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*_DkoAU96GsMG6VBa.jpg" /></figure><p>In this blog, we are going to talk about one of the most important topic in the world of HANA development. AMDP’s — so called ABAP Managed Database Procedure’s are quite useful when dealing with big chunks of data.</p><p>Let’s start with simple example.</p><p>In this scenario let’s say you need to get massive amount of data from the db or delete it. But in the meantime you do not want to compromise from the performance. So we will create a class which manages the CRUD operations using AMDP’s.</p><p>So I will use an old class that I’ve used one of my projects so you can see the possibilities while working with AMDP’s.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/83d4a8c4652e6b25ae3b51254ec6b2ac/href">https://medium.com/media/83d4a8c4652e6b25ae3b51254ec6b2ac/href</a></iframe><p>Most important part is here is, if you want to use any class with AMDP’s, you have to implement ‘ if_amdp_marker_hdb ‘ interface. So we have 2 static methods that we can access without creating an instance of the class. One of them copies data from one table to another and the other one just erases the data in tables.</p><p>So when you are writing the method of the class you have to add some keywords with which tables you are going to use, if not you cannot do any operations on these tables.</p><p>So we add both method declarations and table names to our methods.</p><pre>BY DATABASE PROCEDURE FOR HDB<br>LANGUAGE SQLSCRIPT<br>USING cfin_accit cfin_acchd cfin_accit_app cfin_acccr cfin_accpa_char<br>      cfin_accfi cfin_acctx cfin_accit_wt cfin_accit_ccs cfin_accchg<br>      cfin_accchg cfin_ausz_clr fins_cfin_mig_lg.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/0*yUs51SH5zdF3vgZs.jpg" /></figure><p>So as you see in the method below we can filter data’s in the CFIN_ACCIT table with native HANA method ‘APPLY_FILTER’.</p><p>Then we can select and get data from db. Also you can delete data from tables using DELETE keyword as we use in ABAP.</p><p>There are also fast alternatives like TRUNCATE but it is restricted for only local tables.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c249bbce3a3189c36fda027f1b03c630/href">https://medium.com/media/c249bbce3a3189c36fda027f1b03c630/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/0*AJ-boav2J48TDtDO.jpg" /></figure><p>For local variables you shouldn’t forget the use ‘:’ all the time.</p><p>So here below is the sample of create operation.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d8e36c98039f1b994a6be106c1e2476/href">https://medium.com/media/3d8e36c98039f1b994a6be106c1e2476/href</a></iframe><p>So what we do here is called as ‘Code Pushdown’. We are decoupling db layer and ABAP layer from each other. And the CRUD operations on database level are blazing fast using AMDP’s, thanks to HANA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*gRwdF9ul3jjCmkpT.jpg" /></figure><p>Here comes the pro tip!</p><p>So while working with HANA you will feel a little bit not-documented enough. And what I am going to show you is the best way to find example code in your own db.</p><p>In your HANA repository just open the schema named ‘_SYS_BIC’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/0*MTmvp_EPO-Kia-8c.png" /></figure><p>In this schema you can find lots of standard db procedures to reference for your developments.</p><p>It might look little bit different than AMDP’s but in the end they all are written in SQLSCRIPT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1iM1s7RVzhvDJmaA.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*nlsKNhl85adXvjTH.png" /></figure><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a8a3f5ba953" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[( SAP Fiori ) SAPUI5 Development — Using External Libraries in Your Projects! — Underscore.js]]></title>
            <link>https://medium.com/@gurkan.yilmaz_95950/sap-fiori-sapui5-development-using-external-libraries-in-your-projects-underscore-js-deeab88fe206?source=rss-49f36b48334c------2</link>
            <guid isPermaLink="false">https://medium.com/p/deeab88fe206</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[sapui5]]></category>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[fiori]]></category>
            <category><![CDATA[sap]]></category>
            <dc:creator><![CDATA[Gurkan Yilmaz]]></dc:creator>
            <pubDate>Wed, 20 Sep 2017 07:33:35 GMT</pubDate>
            <atom:updated>2017-09-20T07:33:35.488Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/744/0*McxJemDJ-umbpD-0.jpg" /></figure><p>In one of my projects, I needed to use responsive real-time charts to display some data. But SAPUI5 charts library was not enough to provide that kind of flexibility. So I decided to use external library to achieve my customer’s request. With little bit of research I realised there is so little information about using external libraries. As you know there are tons of great javascript libraries to explore, why we are not using them ?</p><pre>If you have not started developing SAPUI5 applications, or don&#39;t have an idea where﻿ start just check out my previous blogs.</pre><p>In this tutorial we are going to implement Underscore.js framework to our project.</p><pre>Underscore.js provides over 100 functions that support both your <br>favorite workaday functional helpers: map, filter, invoke — as well <br>as more specialized goodies: function binding, javascript templating, <br>creating quick indexes, deep equality testing, and so on.</pre><pre>underscorejs.org</pre><p>So basically Underscore.js is a library that provides toolkit to manipulate your javascript objects. It has quite useful functions for your daily development scenarios.</p><p>Let’s create empty SAPUI5 project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3iUHCwFqYxWfZ-rh.png" /></figure><p>We could have implemented Underscore.js library adding it on our index.html page using script tags like this ;</p><pre>&lt;script src=&quot;http://underscorejs.org/underscore-min.js&quot;&gt;&lt;/script&gt;</pre><p>But most of our SAP system’s are internal use only, so they will not have an access to javascript library on public server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/0*ra2OWlUA2gT2u1m8.png" /></figure><p>Create a folder name lib on your project and add file named ‘underscore.js’.</p><p>What we are going to do now is copying Underscore.js source code and paste it in our file.</p><pre>Open ;</pre><pre><a href="http://underscorejs.org/underscore-min.js">http://underscorejs.org/underscore-min.js</a></pre><pre>You will source code of the library copy all and paste it in your<br>&#39;underscore.js&#39;﻿ file.<br></pre><pre>Right click on code editor after you paste all code <br>and click on &#39;Beautify&#39;.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q8DJRODlQy1fDfgk.png" /></figure><p>You will see there are lots of errors and warnings in Underscore.js code. Just ignore them and save the file.</p><p>You can check all details about the functions in Underscore.js from the link below.</p><pre>underscorejs.org/<em>#collections</em></pre><p>Then add onInit function to your controller file and add ‘debugger’ keyword. We are using it to debug our onInit function.</p><pre>SAPUI5 provides the following lifecycle hooks:</pre><pre>onInit: Called when a view is instantiated and its controls <br>(if available) have already been created; used to modify the <br>view before it is displayed to bind event handlers and do other <br>one-time initialization.</pre><pre>onExit: Called when the view is destroyed; used to free resources <br>and finalize activities.</pre><pre>onAfterRendering: Called when the view has been rendered and, <br>therefore, its HTML is part of the document; used to do post-rendering manipulations of the HTML. SAPUI5 controls get this hook after being rendered.</pre><pre>onBeforeRendering: Invoked before the controller view is re-rendered <br>and not before the first rendering; use onInit() for invoking the hook before the first rendering.</pre><p>Now open MainView.controller.js and add our brand new library to our controller file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lEKPndidAbeHHaO9.png" /></figure><p>I’ve just copied and pasted some of samples in Underscore.js.</p><p>Final version of our code ;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/44011b8822025be5005cab7cb183265f/href">https://medium.com/media/44011b8822025be5005cab7cb183265f/href</a></iframe><p>Now click Run and open Chrome developer tools with F12 before application starts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/0*DNddoiyUTd2280jp.png" /></figure><p>It works!</p><p>I hope you find it useful in your projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*DyJ3Thp5CXMd90bs.jpg" /></figure><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=deeab88fe206" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Object Oriented ABAP — Core Concepts — Abstraction — Inheritance — Constructors — Dynamic ALV]]></title>
            <link>https://medium.com/@gurkan.yilmaz_95950/object-oriented-abap-core-concepts-abstraction-inheritance-constructors-dynamic-alv-79246076a704?source=rss-49f36b48334c------2</link>
            <guid isPermaLink="false">https://medium.com/p/79246076a704</guid>
            <category><![CDATA[oop]]></category>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[sap]]></category>
            <dc:creator><![CDATA[Gurkan Yilmaz]]></dc:creator>
            <pubDate>Wed, 20 Sep 2017 07:30:30 GMT</pubDate>
            <atom:updated>2017-09-20T07:30:30.227Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*iNBcD_cZ2DtIotHw.jpg" /></figure><p>Why do we use OO programming ?</p><p>We use concept of ‘objects’ to create our codebase, reduce complexity and maintain reusability of our code.</p><p>A class is template or blueprint for our objects. We can simply create our classes using real-life delegations and add behaviours to them.</p><p>There are few paradigms under the spotlight to explain. If we are going to list them, most important ones are;</p><pre>- Abstraction<br>- Polymorphism<br>- Inheritance<br>- Interfaces<br>- Encapsulation</pre><p>So we are going to use wikipedia for explanations of these concepts and then we will implement them in ABAP.</p><pre>Constructor;</pre><pre>In class-based object-oriented programming, <br>a constructor (abbreviation: ctor) in a class is a special <br>type of subroutine called to create an object. </pre><pre>It prepares the new object for use, often accepting arguments <br>that the constructor uses to set required member variables.<br></pre><pre>Abstraction</pre><pre>In software engineering and computer science, abstraction is a <br>technique for arranging complexity of computer systems. <br>It works by establishing a level of complexity on which a person <br>interacts with the system, suppressing the more complex details <br>below the current level. The programmer works with an idealized <br>interface (usually well defined) and can add additional levels of <br>functionality that would otherwise be too complex to handle. <br></pre><pre>For an example, a programmer writing code that involves numerical <br>operations may not be interested in the way numbers are represented <br>in the underlying hardware (e.g. whether they&#39;re 16 bit or 32 bit <br>integers), and where those details have been suppressed it can be <br>said that they were abstracted away, leaving simply numbers with <br>which the programmer can work. In addition, a task of sending an <br>email message across continents would be extremely complex if the <br>programmer had to start with a piece of fiber optic cable and basic <br>hardware components. By using layers of complexity that have been <br>created to abstract away the physical cables and network layout, <br>and presenting the programmer with a virtual data channel, <br>this task is manageable.</pre><p>You should remember that if you are creating an abstract class you can not create instance from it. If you want to create object you need to create class which is subclass of abstract class. Also abstract classes must have at least one abstract method.</p><p>And also inheritance simply is ;</p><pre>Inheritance</pre><pre>In object-oriented programming, inheritance is when an object or <br>class is based on another object (prototypal inheritance) or class <br>(class-based inheritance), using the same implementation.</pre><p>In our scenario we have to get data from database dynamically and show it in 2 different ways. One of them is Grid ALV and the other one WRITE keyword of ABAP.</p><p>Let’s create abstract data class which gets data from our database.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d00582ee8462e1c3403abc198948b50/href">https://medium.com/media/3d00582ee8462e1c3403abc198948b50/href</a></iframe><p>So what happens here is we wrote a local class with 3 methods.</p><p>First method Constructor is a special method which only called when our object is instantiated.</p><p>Second method get_data is public method of the our class. We interact and get data from database with this method. We could encapsulate it in our constructor but it is not our point right now.</p><p>And the third method is show_data which is an abstract method and as you know abstract methods cannot have a body. We will have 2 more classes inherited from our base class ‘lcl_persistent’, to have different show options. One of them will use factory alv method and the other will only write rows in our internal table to the screen. They will both implement our abstract method in different ways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/0*eE4d3LI1NVxMZGEv.jpg" /></figure><p>Now lets create our first class to implement our base class.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b54a8d20257083bbacf68af4862efe45/href">https://medium.com/media/b54a8d20257083bbacf68af4862efe45/href</a></iframe><p>This class will show an ALV when its methods called. But in urgent change we need to show only data on screen using WRITE keyword. So we create another class.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/df82ff7a28f20281df637316a3490dc7/href">https://medium.com/media/df82ff7a28f20281df637316a3490dc7/href</a></iframe><p>So as you see with inheritance we can easily use get_data method of our base class without need of writing any repetitive code. With abstraction we can easily integrate our methods in different ways. Code maintenance is far easier and code reusability is high if you use oop.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2fd44a14cecd4937dc8adc26f9d88c07/href">https://medium.com/media/2fd44a14cecd4937dc8adc26f9d88c07/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*XGyiXPSiM3d-idk9.jpg" /></figure><p>We will dive into other topics of OOP in next chapters. Full source code below.</p><p>Happy coding!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9bde936c1da0e6aa5f98632ed670c1ad/href">https://medium.com/media/9bde936c1da0e6aa5f98632ed670c1ad/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79246076a704" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP HANA Development — Database Triggers]]></title>
            <link>https://medium.com/@gurkan.yilmaz_95950/sap-hana-development-database-triggers-d7b582dae3fc?source=rss-49f36b48334c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7b582dae3fc</guid>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[trigger]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[hana]]></category>
            <dc:creator><![CDATA[Gurkan Yilmaz]]></dc:creator>
            <pubDate>Wed, 20 Sep 2017 07:22:08 GMT</pubDate>
            <atom:updated>2017-09-20T07:22:08.676Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/485/0*UEH5Ivw_0DZs3re6.jpg" /></figure><p>If you haven’t started developing HANA before or if you don’t have development environment ready, check out my previous blogs.</p><p>Database triggers have huge role in database development in most products like MS SQL, Oracle etc. But ABAPers didn’t have access tools like triggers before HANA databases. So we had to write reports for jobs, rfc’s or table events to achive data replication on our tables. But with HANA, this paradigm made easy. I gotta be honest. It is easy to create triggers. Yet they are simple but powerful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*6HqhK-oqLb29Ek63.jpg" /></figure><p>With dual installation of AS ABAP on the same instance of HANA database, let’s say we have 2 different systems. One of them is CRM system and the other one is Hybris Marketing (yMarketing) system. Most of the new installations of CRM and yMarketing shares same databases but different database schemas. According to this, they live in same database but they can not share their data with each other in ABAP stack. What do we do ? How we can pass data between 2 schemas ? Here, triggers comes to help.</p><pre>From now on I am going to call ;</pre><pre>CRM Schema -&gt; SAPABAP1<br>yMarketing Schema -&gt;SAPABAP2</pre><p>To replicate our tables from schema to another, we have to open Catalog section first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*trOx_0CcEbVf2XE3.png" /></figure><p>As you see each schema has its own tables, procedures, triggers, views etc.</p><p>Now what we are going to do is, to replicate BUT000 table which holds customer data.</p><p>I wrote different kinds of triggers but now for the sake of simplicity, I will share basic triggers to you to see how simple is data sharing between schemas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*B_AKh90jl-IHOXQp.png" /></figure><p>Open a sql console in SAPABAP1 schema and write down code below. (Right click on SAPABAP1 schema and click Open SQL Console ).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4ea18cc3c212081962c062abc376d4de/href">https://medium.com/media/4ea18cc3c212081962c062abc376d4de/href</a></iframe><p>So what we do is, we take ‘100’, Client , Partner , DB Live Timestamp and ‘I’ values from SAPABAP1 row and send it to SAPABAP2 when new record is inserted. Do not forget to create appropriate table to replicate in SAPABAP2 schema before replicating in ABAP stack.</p><p>To send update event ;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a99472f1fed6051f45e9e990c9f3b99d/href">https://medium.com/media/a99472f1fed6051f45e9e990c9f3b99d/href</a></iframe><p>To send delete event;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/58fd9fdaf8e9d21a7c4a483f23ada7f8/href">https://medium.com/media/58fd9fdaf8e9d21a7c4a483f23ada7f8/href</a></iframe><p>So why do we have 3 different events , Insert, Update and Delete ? Because replication is one way only. You can send data between schemas or in schemas but you can not manipulate target table. You have to use timestamps and flags to know which data is actual.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*i0OKH-7p7zz3rg5G.jpg" /></figure><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7b582dae3fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[( SAP Fiori ) SAPUI5 Development — Controllers and UI Elements]]></title>
            <link>https://medium.com/@gurkan.yilmaz_95950/sap-fiori-sapui5-development-controllers-and-ui-elements-a488a4230474?source=rss-49f36b48334c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a488a4230474</guid>
            <category><![CDATA[sapui5]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[fiori]]></category>
            <dc:creator><![CDATA[Gurkan Yilmaz]]></dc:creator>
            <pubDate>Wed, 20 Sep 2017 07:18:46 GMT</pubDate>
            <atom:updated>2017-09-20T07:18:46.166Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/494/0*Sy5dGl5LJDrxktvv.png" /></figure><p>In this blog we are going to implement various UI elements using SAPUI5 framework and we will create our controller classes for actions.</p><p>If you do not know how to download and install Web IDE and and create new project, just check my previous blogs.</p><p>After creating an empty project you will see that there are few files automatically generated. These are;</p><pre>1- index.html<br>2- MainView.controller.js<br>3- MainView.view.xml</pre><p>Index.html file is our initial file four our application. It contains wrapper for SAPUI5 framework and various source file paths for our application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*S7w7XSbJ16xJZSyc.png" /></figure><p>MainView.controller.js file is where our business logic and event functions goes.</p><p>And the MainView.view.xml file is contains our UI elements.</p><p>Let’s start, implementing our first UI components to our project. You can always check out SAPUI5’s sdk documentation for referencing purposes.</p><p>We are going to add a form, labels and button to our application. So keep going and add xml code below to MainView.view.xml file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8aba5db04eb50c76b5429f6c7360fb67/href">https://medium.com/media/8aba5db04eb50c76b5429f6c7360fb67/href</a></iframe><p>Save and press Run button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3YYlX03ELf8bIc-4.png" /></figure><p>As you see we added some fields, toolbar, labels, input fields and button to our view. So in our case what we expect is after we fill the fields and click on ‘ Send ‘ button, we want all the details be shown in message toast.</p><pre>&lt;Button type=&quot;Default&quot; press=&quot;onSend&quot; text=&quot;Send&quot; /&gt;</pre><p>With these line of code, our view will look into our controller class and try to execute function called onSend. It does not do anything right now because we did not implement anything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*P4cVp2pL4EwCs5D6.jpg" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9873ec29df0c7f53bdf2c2a659e38734/href">https://medium.com/media/9873ec29df0c7f53bdf2c2a659e38734/href</a></iframe><p>With oView object, we get instance of our current view. If we examine it on debugging you will see all relevant properties of this object in debug window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L9W1SPcHU2vCn2CZ.png" /></figure><p>Now change the content of MainView.view.xml file;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4696c2125c7d27def84320b52f16c789/href">https://medium.com/media/4696c2125c7d27def84320b52f16c789/href</a></iframe><p>And controller file;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e1ab1f9c81d43ab325488f23788a1263/href">https://medium.com/media/e1ab1f9c81d43ab325488f23788a1263/href</a></iframe><p>You can see that, you can get values of fields so easily in controller files. Now use this information with your imagination and manipulate all data within controller file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Zr4A6-bKZ2SozYkr.png" /></figure><p>You can always look for sdk documentation for details of functions and properties of your objects.</p><pre>Pro Tip;<br>Use setProperty function to manipulate UI elements.</pre><p>Final look of our demo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PA_KWxBWE2BG8sbh.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*b-4quVI6pWLcLgEe.jpg" /></figure><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a488a4230474" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP HANA CDS Views — Speed Up Your Data Flow]]></title>
            <link>https://medium.com/@gurkan.yilmaz_95950/sap-hana-cds-views-speed-up-your-data-flow-8ff9d9c203af?source=rss-49f36b48334c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ff9d9c203af</guid>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[hana]]></category>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Gurkan Yilmaz]]></dc:creator>
            <pubDate>Wed, 20 Sep 2017 07:11:28 GMT</pubDate>
            <atom:updated>2017-09-20T07:11:28.721Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*JEJSZTH_psri55aB.jpg" /></figure><p>Code Pushdown is main motto of development of HANA Databases. We use this technology stack to develop our reports and business logic.</p><p>In HANA development there are different kinds of views to support our development. One of the most important data modeling infrastructure is CDS views.</p><p>To start developing CDS views, you have to be in ABAP Development Perspective. If you don’t have this environment, you have to install Eclipse then ABAP Development tools from link below. You can reference my previous blogs to learn more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*SwHRRhucvmhYgj7f.jpg" /></figure><p>Enter and log on your ABAP System and click on File-&gt;New-&gt;Other and write CDS in search bar. Choose Data Definition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yD7BKQHBqfxcy6MH.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9hYd8NW4v-34peep.png" /></figure><p>Choose package and write name for your view then confirm your request number.</p><p>I will create view with join for this tutorial for the sake of simplicity. So I choose second template. You can try other ones and explore capabilities of CDS views.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ykuyFm59FvJdUuiz.png" /></figure><p>We will create CDS view for partner details with email addresses. For partner details I will use BUT000 table and for email addresses I will use ADR6 table. We want outcome of these mock datas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_b2bxTgOMZQXW2B9.png" /></figure><p>Click finish and template will be ready to implement.</p><p>You can just copy and paste the code below or you can customize for your tables.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4ecbab38c8b872003202a4d8564271ca/href">https://medium.com/media/4ecbab38c8b872003202a4d8564271ca/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*uxViPd6rf_fSjSP1.jpg" /></figure><p>Now our view is ready right click on it and activate it then you can test with data preview option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1El146LvGKDD5TKX.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*D-FmvoMAU7hacD1k.png" /></figure><p>So now your data is ready to consume from ABAP side. It is fast, solid and elegant way to consume your heavy-weight data.</p><p>How you can consume it from ABAP side ? If you enter SE11 and check your CDS, from views section you will see that it automatically generated by SAP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XvL42aFtyYAbZ6kw.png" /></figure><p>Pro-Tip : If you add ‘ @OData.publish: true ‘ annotation to your code, you can consume this view directly as OData service!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/0*zAVMnr8w9rtKpFyn.jpg" /></figure><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ff9d9c203af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[( Fiori Backend ) Rest API Development With SAP Gateway — CRUDQ Operations — Part 1]]></title>
            <link>https://medium.com/@gurkan.yilmaz_95950/fiori-backend-rest-api-development-with-sap-gateway-crudq-operations-part-1-76124b4531f?source=rss-49f36b48334c------2</link>
            <guid isPermaLink="false">https://medium.com/p/76124b4531f</guid>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[rest]]></category>
            <category><![CDATA[odata]]></category>
            <dc:creator><![CDATA[Gurkan Yilmaz]]></dc:creator>
            <pubDate>Wed, 20 Sep 2017 06:45:42 GMT</pubDate>
            <atom:updated>2017-09-20T06:45:42.721Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*H_Cy3GFTdSwiKHNcptHfLQ.jpeg" /></figure><p>“ Web Services “</p><p>Ultimate keyword for almost all available jobs in the market today.</p><p>So what is a web service ?</p><p>According to wikipedia here is the definition of web services:</p><pre>A web service is a service offered by an electronic device to another electronic device, communicating with each other via the World Wide Web. </pre><pre>In a Web service, Web technology such as HTTP, originally designed for human-to-machine communication, is utilized for machine-to-machine communication, more specifically for transferring machine readable file formats such as XML and JSON. In practice, the web service typically provides an object-oriented web-based interface to a database server, utilized for example by another web server, or by a mobile application, that provides a user interface to the end user.</pre><p>In ABAP world, developing web service is so easy, you can build a API with lots of operations in just a day. But with emerging advances and changes in tech stacks does offer you a lots of different options. For example, in most of our development scenarios we usually develop SOAP services. With changes in products like SAPUI5 or Hybris Marketing etc. , SAP started to use its own Rest API development environment which called SAP Gateway.</p><p>Look at the image below to see main differences between SOAP and REST services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W6OXMBxip-YwuudM.png" /></figure><p>As you see from the header, there are few operations you can achieve using REST services.</p><p>C(reate), R(ead), U(pdate), D(elete), Q(uery) are the most commonly used ones.</p><p>In our current business scenario, lets say we have to provide our business partners to a mobile app so they can either consume all of them or they filter partners by using partner id.</p><p>First of all we are going to create data structure type using Data Dictionary — SE11. With this data structure we are going to determine which data we are going to share with api.</p><p>I created an structure and named as ‘ZMOBILE_MEMBERS’ and added few fields in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J5vLAqmMUCKsJUlA.png" /></figure><pre>SEGW - SAP Gateway</pre><p>Enter the t-code and you will see main window of Gateway. Then click on to ‘Create New Project’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UU2cjgUpMsHXqlzN.png" /></figure><p>Now it is time to import our structure into our data model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/0*qaWgkOSmA_eYHZTN.png" /></figure><p>You can see there are few options available when you are importing new data model. You can import model from a file or you can use RFC Function Module interface or even you can use search helps and create model from it.</p><p>In this case we are going to use DDIC(Data Dictionary) Structure section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7VA3n1W7Gwb9p-YO.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BpSkWBpVLd7rTVRt.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q2_5mEldBrUOJwQj.png" /></figure><p>Enter a suitable name for your entity and check Create Default Entity Set so we can do our query operation.</p><p>Now choose for the fields you want to be shown.</p><p>And finally determine your key field.</p><p>All good to go. Now we are ready to implement our service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8l4H7Pjqb8ofWOYB.png" /></figure><p>In service implementation tab you will see the operations we mentioned before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zw7bKoIGUM2JsRAR.png" /></figure><p>We are going to implement GetEntity( Read ) and GetEntitySet( Query ) methods of our entity class. Before doing anything, save and click Generate Runtime Objects button. — Circle with white-red pattern -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_3FqViWSvhnRwCtB.png" /></figure><p>Gateway is now going to generate our data provider and model provider classes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*KZjbsptVYSGQYkOg.png" /></figure><p>Now right click on Query operation and choose Go to ABAP workbench option.</p><p>Your data provider class is ready to provide some data. But there is an issue. Just because we haven’t told it do provide anything, it does not work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*X98XmN0IBCyX_urP.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WWNcuztZ3HMdEZJM.png" /></figure><p>Open edit mode and choose MEMBERSSET_GET_ENTITYSEY method, then click on redefine.</p><p>We are ready to implement.</p><p>I am just going to write few lines of code to get our data, no filter, no error handling, we are assuming everything is going to be OK.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d34a28915dde74bae138a89a545a53d/href">https://medium.com/media/3d34a28915dde74bae138a89a545a53d/href</a></iframe><p>Save and activate.</p><p>Before trying out our service, we have register it on gateway.</p><p>Enter t-code;</p><pre>/n/IWFND/MAINT_SERVICES</pre><p>Click on add service button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZDEZYOHJm9olS1Zr.png" /></figure><p>Choose your service and then click Add Selected Services button.</p><p>After you see metadata loaded successfully popup, your service is now ready to consume.</p><p>Go back, find and double click on your service. Then click on SAP Gateway Client button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*rpc5ZO7hLA6XL1dV.png" /></figure><p>Be sure that, you are trying to access correct service.</p><pre>// in our case, url is;</pre><pre>/sap/opu/odata/sap/ZREST_MOBILE_BACKEND_SRV/?$format=xml</pre><p>If you execute this url using Gateway Client you can access metadata of your service. Sometimes it is important when you develop applications using different frameworks which wants to buffer your services using your metadata. If you are going to need detailed information about the service, click on Add URI Option and choose sap-documentation=all option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9GNiqM8CfdusJK60.png" /></figure><p>After execution you can see the detailed information about your service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BuAEqylsbIfajMEf.png" /></figure><p>It is time to try if our implementation works or not :)</p><p>Click on EntitySets button and choose correct entityset.</p><p>You can see there are all options available for us to use, in our case we are going to use GET method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*avgR_UAa7sbaPzJ8.png" /></figure><p>Change format to json and click execute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HZyrCMHtBcLKFVzB.jpg" /></figure><p>It works! Now you can parse your data with any tool or language you want!</p><p>If you want to learn more about HTTP methods, you can dig into Mozilla Developer Network which I highly recommend.</p><pre>developer.mozilla.org/en-US/docs/Web/HTTP/Methods</pre><p>To learn more about Rest;</p><pre><a href="http://www.restapitutorial.com/">www.restapitutorial.com</a></pre><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76124b4531f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>