<?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 Magnus Pasulke on Medium]]></title>
        <description><![CDATA[Stories by Magnus Pasulke on Medium]]></description>
        <link>https://medium.com/@MagPasulke?source=rss-1a7ab0226f2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yGIDTDoE-7gIkdV_OCFDSQ.jpeg</url>
            <title>Stories by Magnus Pasulke on Medium</title>
            <link>https://medium.com/@MagPasulke?source=rss-1a7ab0226f2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 18:35:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@MagPasulke/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[Getting started with SAP ABAP]]></title>
            <link>https://medium.com/@MagPasulke/getting-started-with-sap-abap-96a0e9968787?source=rss-1a7ab0226f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/96a0e9968787</guid>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[abap]]></category>
            <dc:creator><![CDATA[Magnus Pasulke]]></dc:creator>
            <pubDate>Fri, 09 Dec 2022 09:39:11 GMT</pubDate>
            <atom:updated>2022-12-09T09:39:11.441Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you interested in learning ABAP programming? ABAP, or Advanced Business Application Programming, is a programming language used for developing business applications for the SAP platform. It is a powerful language that allows users to create customized applications and improve business processes.</p><p>If you are new to ABAP programming, you may be wondering where to start. The good news is that there are plenty of online resources available to help you learn this language. Here are some tips on how to learn ABAP programming, along with some recommended online learning resources.</p><ol><li>Start with the basics. Before diving into more advanced topics, it’s important to first understand the fundamentals of ABAP programming. This includes learning the syntax, data types, and control statements used in ABAP.</li><li>Practice, practice, practice. As with any programming language, the best way to learn ABAP is to practice writing code. This will help you become more familiar with the language and improve your coding skills. The SAP ABAP Development Community offers a free online code editor, where you can write and test your own ABAP code.</li><li>Join online forums and communities. Another great way to learn ABAP is to connect with other ABAP developers and learn from their experiences. There are several online forums and communities, such as the SAP Community and the SAP Developers Network, where you can ask questions and learn from others who are also learning ABAP.</li><li>Take online courses and tutorials. If you want a more structured approach to learning ABAP, there are many online courses and tutorials available. These courses are often taught by experienced ABAP developers, and can provide a more in-depth understanding of the language. <br>There is an ABAP track on <strong>Exercism</strong>(<a href="https://exercism.org/tracks/abap">https://exercism.org/tracks/abap</a>) that helps to take first steps.<br>The <strong>SAP Developer Center</strong> (<a href="https://developers.sap.com/topics/abap.html">https://developers.sap.com/topics/abap.html</a>) offers a range of resources for learning ABAP, including tutorials, sample code, and documentation.</li><li>Consider attending SAP training. If you want to become an SAP certified ABAP developer, attending SAP training is highly recommended. SAP offers a variety of training courses, including in-person and online options, to help you learn ABAP and pass the certification exam.</li></ol><p>Overall, learning ABAP programming can be challenging, but with the right resources and dedication, it is possible to become proficient in this powerful language. By starting with the basics, practicing your coding skills, joining online forums and communities, taking online courses and tutorials, and considering attending SAP training, you can learn ABAP and develop valuable skills for your career.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96a0e9968787" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ABAP RESTful Application Programming Model in a nutshell]]></title>
            <link>https://medium.com/@MagPasulke/abap-restful-application-programming-model-in-a-nutshell-eab1c8c04c1c?source=rss-1a7ab0226f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/eab1c8c04c1c</guid>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Magnus Pasulke]]></dc:creator>
            <pubDate>Tue, 29 Nov 2022 12:02:47 GMT</pubDate>
            <atom:updated>2022-11-29T12:09:57.947Z</atom:updated>
            <content:encoded><![CDATA[<h4>Providing a glance at SAP’s development framework RAP</h4><p>The ABAP RESTful Application Programming Model is the standard development model for S/4 Hana applications. It is used to develop HANA optimized OData services that can be utilized to create UI5 applications or HTTP(S) APIs. It completely changes the way applications are built on the ABAP-platform.<br>Since it can be a little overwhelming when first approaching it, this article tries to explain the core concepts and components.</p><h3>What is a programming model?</h3><p>First a programming model defines all necessary steps, development artifacts and concepts to create an application.<br>Specifically this includes the definition of data models, operations, business logic and transactional behaviour (e.g. locking and numbering mechanisms) that are supported by the platform on which the application should be build.</p><p>Second a programming model defines technical artifacts that are necessary to build and analyze applications amongst different application layers (e.g. from database to UI).</p><p>Furthermore the platform on which a programming model can be applied provides APIs that can be utilized to realize a development.</p><p>Let’s have a look how these three parts manifest in the ABAP RESTfull programming model.</p><h3>1 + 2 — Technical artifacts and development steps</h3><p>The ABAP RESTfull application programming model uses <strong>technical artifacts on three levels of abstraction</strong> that cover different aspects of a modern business application. Going through these levels and creating the artifacts also characterizes the development flow:</p><h4><strong>Level 1 — Data Modelling &amp; Behavior</strong></h4><p>Creating a virtual data model (VDM) based on <strong>C</strong>ore <strong>D</strong>ata<strong> S</strong>ervices (CDS) Views &amp; defining the general behavior of the application e.g.:<br>- which CRUD capabilities are offered by the application?<br>- how do locking mechanisms apply?<br>- how is numbering done?</p><p>Technical Artifacs: CDS Views, Behavior Definition, Behavior Implementation</p><h4>Level 2 — Business Service Provisioning</h4><p>Binding the VDM to a web protocoll (OData), exposing its data modell and capabilities as a consumable service and defining the scope(entities) of this service.</p><p>Technical Artifacs: Service Definition &amp; Service Binding</p><h4>Level 3 — Service Consumption</h4><p>Consuming the OData service in a Fiori web application or another WebAPI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c_dzOhi0DUfLTxynRWQnfg.png" /><figcaption>Layers of ABAP RESTful Application Programming Model</figcaption></figure><h3>3 — Framework APIs</h3><p>Together with the programming modell SAP published various APIs &amp; Interfaces that help implementing the RESTfull Application Programming Model. We will name a two of them here without going into detail further:<br><a href="https://help.sap.com/docs/BTP/923180ddb98240829d935862025004d6/2a3da8a5b19e4f6b953e9a11fb5cc747.html"><strong>Business Object Provider API</strong></a> — helping to implement Business Logic in the application.<br><a href="https://help.sap.com/docs/BTP/923180ddb98240829d935862025004d6/2099ca03d741438284338508330c4b7d.html?q=RAP%20query%20engine"><strong>RAP Query engine</strong></a><strong> </strong>— helping to include legacy logic into a new RAP application.</p><h3>Getting to know new technical artifacts</h3><p>The RESTfull application programming model allows to create both analytical and transactional business applications running on S/4 Hana Cloud or on-premise. Compared to “classic” ABAP development it adds a few new development objects that need to be used within the development process:</p><p><strong>CDS Views</strong> — <strong>C</strong>ore <strong>D</strong>ata<strong> S</strong>ervices are the key element and foundation for application development. Representing the virtual data model (VDM) of the application, they can be enhanced with different annotations to cover different types of apps (transactional, analytical).<br><strong>Behavior definitions</strong> — defining the behavior (e.g. CRUD capabilities) of the developed service.<br><strong>Service definitions</strong> — defining which business object entities are covered within the developed service.<br><strong>Service bindings </strong>— to register our CDS views as a service, e.g. an OData V2 or V4 service that can be consumed by a UI5 or any other application.</p><h3>Types of Implementation</h3><p>Another important thing to understand when getting into RAP is the there are two different types of implementation that can be distinguished: <strong><em>managed or unmanaged</em></strong><br>The implementation type defines which framework component is providing the query and transactional logic.</p><h4>Managed Scenario</h4><p>When choosing the managed scenario the framework takes care of the query and transactional (CRUD) logic based on the CDS Entities of the VDM. This may help too gain speed within initial development but may cost some flexibility.</p><h4>Unmanaged Scenario</h4><p>In the unmanaged scenario the developer takes care of implementing CRUD operations. Therefore it allows more flexibility or to include legacy logic into the new business object.</p><p>Both scenarios can be enhanced by additional validation and determination logic that may not be covered by the framework API.</p><p>This was only a tiny glance at the ABAP RESTfull application programming model that should help to get a quick overview about components and lingo. the official documentation can be found here:</p><p><a href="https://help.sap.com/docs/BTP/923180ddb98240829d935862025004d6/289477a81eec4d4e84c0302fb6835035.html">ABAP RESTFull Application Programming Model</a></p><p>Further resources can be found here:</p><p><a href="https://blogs.sap.com/2019/10/25/getting-started-with-the-abap-restful-programming-model/">Getting started with the ABAP RESTfull Application Programming Model</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eab1c8c04c1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Pattern with ABAP — Factory Pattern]]></title>
            <link>https://medium.com/@MagPasulke/software-pattern-with-abap-factory-pattern-40e25d0338c2?source=rss-1a7ab0226f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/40e25d0338c2</guid>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[factory-pattern]]></category>
            <category><![CDATA[sap]]></category>
            <dc:creator><![CDATA[Magnus Pasulke]]></dc:creator>
            <pubDate>Wed, 26 Oct 2022 20:45:28 GMT</pubDate>
            <atom:updated>2022-10-26T20:47:36.773Z</atom:updated>
            <content:encoded><![CDATA[<h3>Software Patterns in ABAP — Factory Pattern</h3><h4>Applying the factory pattern in ABAP Objects</h4><h4>Problem and basic idea</h4><p>In this blog we want to look at the so-called <strong><em>factory design pattern</em></strong>. The pattern belongs to the generation design patterns. These determine how instances of an object are created at runtime.<br>The design pattern helps separate object creation from actual object representation. The object creation is simply “ordered” at the factory and the caller does not have to worry about the construction of the corresponding object and its configuration.</p><h4>Class diagram and code sample</h4><p>Let’s first have a look at one implementation in a class diagram.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N4fDvdBYsbgiIcUoYPLnpg.png" /><figcaption>Class Diagram of Factory Pattern Sample</figcaption></figure><p>The caller requests the creation of a new smartphone object at the <strong><em>phoneFactory</em></strong>.</p><pre>DATA(phone) = lcl_phonefactory=&gt;get_phone_instance( ).</pre><p>Before the <strong><em>phoneFactory </em></strong>creates a phone object, the method read_phones_config is used to determine which type of smartphone is to be created. This could e.g. be defined by customizing settings or other configuration. After determining the smartphone type, the corresponding object is created and returned to the caller.</p><pre>METHOD read_phones_config.<br>    &quot;read config and return smartphone type<br>    &quot; SELECT xx from whereever<br>    phonetype = &#39;iPhone&#39;.<br>  ENDMETHOD.</pre><pre>METHOD get_phone_instance.<br>    &quot;create smartphone object based on config<br>    CASE read_phones_config( ).<br>      WHEN &#39;iPhone&#39;.<br>        phone = NEW lcl_iphone( ).<br>      WHEN &#39;androidPhone&#39;.<br>        phone = NEW lcl_androidphone( ).<br>    ENDCASE.</pre><pre>ENDMETHOD.</pre><p>If another type of smartphone is to be created in future, the code does not have to be changed by the caller. The caller merely “orders” the object creation from the phone factory and leaves the object selection and creation to the factory class.</p><p>Full sample:</p><pre>REPORT zmapga_factory_demo.</pre><pre>CLASS lcl_phone DEFINITION ABSTRACT CREATE PUBLIC.<br>  &quot;abstract smartphone class  <br>  PUBLIC SECTION.<br>    METHODS:<br>       constructor IMPORTING price TYPE price,<br>       get_price RETURNING VALUE(price) TYPE price.<br>  PROTECTED SECTION.<br>  PRIVATE SECTION.<br>    DATA: _price TYPE price.<br>ENDCLASS.</pre><pre>CLASS lcl_phone IMPLEMENTATION.</pre><pre>  METHOD constructor.<br>    _price = price.<br>  ENDMETHOD.<br>  METHOD get_price.<br>    price = _price.<br>  ENDMETHOD.</pre><pre>ENDCLASS.</pre><pre>CLASS lcl_iphone DEFINITION INHERITING FROM lcl_phone.<br>  &quot;iPhone class<br>  PUBLIC SECTION.<br>    METHODS constructor.<br>  PROTECTED SECTION.<br>  PRIVATE SECTION.</pre><pre>ENDCLASS.</pre><pre>CLASS lcl_iphone IMPLEMENTATION.</pre><pre>METHOD constructor.<br>    super-&gt;constructor( price = &#39;1000.00&#39; ).<br>  ENDMETHOD.</pre><pre>ENDCLASS.</pre><pre>CLASS lcl_androidphone DEFINITION INHERITING FROM lcl_phone.<br>  &quot;AndroidPhone<br>  PUBLIC SECTION.<br>    METHODS constructor.<br>  PROTECTED SECTION.<br>  PRIVATE SECTION.</pre><pre>ENDCLASS.</pre><pre>CLASS lcl_androidphone IMPLEMENTATION.</pre><pre>METHOD constructor.<br>    super-&gt;constructor( price = &#39;399.99&#39; ).<br>  ENDMETHOD.</pre><pre>ENDCLASS.</pre><pre>CLASS lcl_phonefactory DEFINITION.<br>  &quot;Phone Factory class to create instances<br>  PUBLIC SECTION.<br>    CLASS-METHODS get_phone_instance RETURNING VALUE(phone) TYPE REF TO lcl_phone.<br>  PROTECTED SECTION.<br>  PRIVATE SECTION.<br>    CLASS-METHODS read_phones_config RETURNING VALUE(phonetype) TYPE string.</pre><pre>ENDCLASS.</pre><pre>CLASS lcl_phonefactory IMPLEMENTATION.</pre><pre>METHOD read_phones_config.<br>    &quot;read config and return smartphone type<br>    &quot; SELECT xxx ...<br>    phonetype = &#39;iPhone&#39;.<br>  ENDMETHOD.</pre><pre>METHOD get_phone_instance.</pre><pre>CASE read_phones_config( ).<br>      WHEN &#39;iPhone&#39;.<br>        phone = NEW lcl_iphone( ).<br>      WHEN &#39;androidPhone&#39;.<br>        phone = NEW lcl_androidphone( ).<br>    ENDCASE.</pre><pre>ENDMETHOD.</pre><pre>ENDCLASS.</pre><pre>START-OF-SELECTION.</pre><pre>  DATA(phone) = lcl_phonefactory=&gt;get_phone_instance( ).<br>  WRITE: phone-&gt;get_price( ).</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40e25d0338c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easy ABAP Business Application Log (BAL) with the Interface IF_RECA_MESSAGE_LIST]]></title>
            <link>https://medium.com/@MagPasulke/easy-abap-business-application-log-bal-with-the-interface-if-reca-message-list-665b19181b84?source=rss-1a7ab0226f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/665b19181b84</guid>
            <category><![CDATA[sapprogramming]]></category>
            <category><![CDATA[message-list]]></category>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[business-application-log]]></category>
            <dc:creator><![CDATA[Magnus Pasulke]]></dc:creator>
            <pubDate>Tue, 27 Jul 2021 15:54:50 GMT</pubDate>
            <atom:updated>2021-07-27T15:56:32.143Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*4g9Cgv96GoFtbHVPGYi84w.png" /></figure><p>The Business Application Log (BAL) is a convenient way of saving error, information and success messages and displaying them for evaluation in the course of an ABAP program.</p><p>The function modules of the function groups SBAL* are a frequently used option for creating the log. These make a somewhat unwieldy impression, especially in comparison with the log options of younger programming languages.</p><p>The interface IF_RECA_MESSAGE_LIST offers an alternative to the SBAL* function modules. It allows to use a message collector object very easily. Messages from different sources — message classes, system variables or exception classes — can be processed. The following article shows an example of a message collector based on ABAP class cl_reca_message_list implementing above mentioned interface.</p><h4><strong>Creating a Business Application Log in Transaction SLG0</strong></h4><p>Before we can work with the actual interface in the program code, we should first create a log object and subobject. This is done in transaction SLG0. Simply choose new entries and assign an object and subobject name. We use <em>LOGOBJECT </em>and <em>SUBOBJECT </em>for this sample.</p><h4><strong>Instantiation of the message collector</strong></h4><p>During instantiation of the message collector we need to provide the logobject and subobject to the factory class cf_reca_message_list. Optionally the expiration date could also be set. See line 12 of below gist.</p><h4>Adding messages to the message collector</h4><p>Messages can be added from different sources — free text, message classes, exception or system variables. Lines 14 to 44 of below gist show some examples for adding messages. Besides adding the message itself, the methods add, add_symsg and add_from_exception also offer the possibility to assign different levels of detail and problem classes to the message.</p><h4>Storing the log</h4><p>Writing the log to the database is done when calling the store method. Once can choose whether the log should be stored directly or in a separate update task triggered by the next commit.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f79d14852c49eea86233d8adb7debf3c/href">https://medium.com/media/f79d14852c49eea86233d8adb7debf3c/href</a></iframe><h4>Displaying the Log</h4><p>Use transaction SLG1 to display your log. The log object and subobject can be used to simplify the search.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=665b19181b84" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>