<?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 Ebrahim Hatem on Medium]]></title>
        <description><![CDATA[Stories by Ebrahim Hatem on Medium]]></description>
        <link>https://medium.com/@ibo.shalka?source=rss-e00cacc97d05------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*DF5SKwudUIpz9Kxr.jpg</url>
            <title>Stories by Ebrahim Hatem on Medium</title>
            <link>https://medium.com/@ibo.shalka?source=rss-e00cacc97d05------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:08:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ibo.shalka/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[Determining if Two Date Ranges Overlap]]></title>
            <link>https://medium.com/@ibo.shalka/determining-if-two-date-ranges-overlap-501bcc3c732f?source=rss-e00cacc97d05------2</link>
            <guid isPermaLink="false">https://medium.com/p/501bcc3c732f</guid>
            <dc:creator><![CDATA[Ebrahim Hatem]]></dc:creator>
            <pubDate>Thu, 28 Jul 2022 10:14:23 GMT</pubDate>
            <atom:updated>2022-07-28T10:54:47.578Z</atom:updated>
            <content:encoded><![CDATA[<p>If you want to check if 2 dates overlap in another 2 dates, you can do it as written in the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*MFccMHgy-6H2uL2ERiTU6Q.png" /></figure><p>Option 1: ​</p><pre><br>Data1: Begda1 ENDDA 1<br>Data2: BEGDA2 ENDDA 2<br><br>IF i_endda1 &lt;= i_begda2 OR i_begda1 &gt;= i_endda2 .<br>      r_result = abap_false.<br>    ELSE.<br>      r_result = abap_true.<br>    ENDIF.<br><br><strong>Option 2: <br></strong><br>  IF ( i_begda2 &gt;= i_begda1 AND i_begda2 &lt;= i_endda1 ) OR<br>     ( i_endda2 &gt;= i_begda1 AND i_endda2 &lt;= i_endda1 ).<br><br>    r_result = abap_true.<br><br>  ENDIF.</pre><p>Option 3:</p><p>In LOOP</p><pre>Where period_1-begda LE period_2-endda AND<br> period_1-endda GE period_2-begda.</pre><p>Click hier to download the code</p><p><a href="https://gist.github.com/iboabap/565462ea49c36a945f4ad0a91a5a41a2">https://gist.github.com/iboabap/565462ea49c36a945f4ad0a91a5a41a2</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=501bcc3c732f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Process an internal table by using group by (ABAP 740)]]></title>
            <link>https://medium.com/@ibo.shalka/process-an-internal-table-by-using-group-by-abap-740-3e76ce79aa81?source=rss-e00cacc97d05------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e76ce79aa81</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ebrahim Hatem]]></dc:creator>
            <pubDate>Wed, 04 Dec 2019 17:48:35 GMT</pubDate>
            <atom:updated>2019-12-04T17:48:35.585Z</atom:updated>
            <content:encoded><![CDATA[<p>I would like to write in this story about group by. We have learnt SQL and the aggregation. In ABAP we have used this statement groub by in SQL. But in this story, i would like to tell you that, you can use this statement in LOOP to process an internal table.</p><p>In this example, I will use flight table and the criteria airline, flight number and currency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*f1lya5iSoKOuOzx49KeReg.jpeg" /></figure><pre>select * from sflight into table @data(lt_sflight).</pre><pre>**********************************************************************</pre><pre>“ Exmple 1</pre><pre>TYPES: BEGIN OF ts_flight, “ group</pre><pre>airline TYPE s_carrid,</pre><pre>flight_no TYPE S_CONN_ID,</pre><pre>currency type S_CURRCODE ,</pre><pre>size type i,</pre><pre>END OF ts_flight.</pre><pre>“</pre><pre>DATA ls_group TYPE ts_flight.</pre><pre>DATA lt_group TYPE TABLE OF ts_flight.</pre><pre>Data lt_group_copy like lt_group.</pre><pre>loop at lt_sflight into data(flight)</pre><pre>GROUP BY ( airline = flight-carrid</pre><pre>flight_no = flight-connid</pre><pre>currency = flight-currency</pre><pre>size = group size )</pre><pre>ascending ASSIGNING field-SYMBOL(&lt;group&gt;).</pre><pre>APPEND &lt;group&gt; TO lt_group.</pre><pre>lt_group_copy = value #( base lt_group_copy ( &lt;group&gt; ) ).</pre><pre>ENDLOOP.</pre><pre>**********************************************************************</pre><pre>“ Exmple 2</pre><pre>TYPES: BEGIN OF ts_flight2, “ group</pre><pre>airline TYPE s_carrid,</pre><pre>flight_no TYPE S_CONN_ID,</pre><pre>currency type S_CURRCODE ,</pre><pre>paymentsum type i,</pre><pre>size type i,</pre><pre>END OF ts_flight2.</pre><pre>“</pre><pre>DATA ls_group2 TYPE ts_flight2.</pre><pre>DATA lt_group2 TYPE TABLE OF ts_flight2.</pre><pre>loop at lt_sflight into data(flight2)</pre><pre>GROUP BY ( airline = flight2-carrid</pre><pre>flight_no = flight2-connid</pre><pre>currency = flight2-currency</pre><pre>size = group size )</pre><pre>ascending ASSIGNING field-SYMBOL(&lt;group2&gt;).</pre><pre>lt_group2 = value #( base lt_group2 (</pre><pre>airline = &lt;group2&gt;-airline</pre><pre>flight_no = &lt;group2&gt;-flight_no</pre><pre>currency = &lt;group2&gt;-currency</pre><pre>size = &lt;group2&gt;-size</pre><pre>paymentsum = REDUCE s_sum( init s = 0 for line in group &lt;group2&gt;</pre><pre>next s = s + line-paymentsum ) “ reduce</pre><pre>) ). “ value</pre><pre>ENDLOOP.</pre><pre>BREAK-POINT.</pre><pre>**********************************************************************</pre><pre>“ Exmple 3</pre><pre>TYPES: BEGIN OF ts_cols,</pre><pre>col1 TYPE char5,</pre><pre>col2 TYPE char5,</pre><pre>col3 TYPE char5,</pre><pre>END OF ts_cols.</pre><pre>TYPES: BEGIN OF ts_group_cols,</pre><pre>col1 TYPE char5,</pre><pre>size TYPE i,</pre><pre>END OF ts_group_cols.</pre><pre>DATA wa TYPE ts_group_cols.</pre><pre>DATA tab TYPE TABLE OF ts_group_cols.</pre><pre>TYPES tt_cols TYPE STANDARD TABLE OF ts_cols WITH DEFAULT KEY.</pre><pre>DATA(lt_tab) = VALUE tt_cols(</pre><pre>( col1 = ‘AB001 ‘ col2 = ‘Test2’ col3 = ‘Hap’ )</pre><pre>( col1 = ‘AB001 ‘ col2 = ‘Test2’ col3 = ‘Morg’ )</pre><pre>( col1 = ‘AB001 ‘ col2 = ‘Aishw’ col3 = ‘Tag’ )</pre><pre>( col1 = ‘AB002 ‘ col2 = ‘Ibo’ col3 = ‘Sund’ )</pre><pre>( col1 = ‘AB002 ‘ col2 = ‘Ibrah’ col3 = ‘Frei’ )</pre><pre>( col1 = ‘AB003 ‘ col2 = ‘Sad’ col3 = ‘Nix’ ) ).</pre><pre>LOOP AT lt_tab INTO DATA(ls_col)</pre><pre>GROUP BY ( id = ls_col-col1</pre><pre>size = GROUP SIZE )</pre><pre>ASCENDING REFERENCE INTO DATA(group_ref).</pre><pre>wa-col1 = group_ref-&gt;*-id.</pre><pre>wa-size = group_ref-&gt;*-size.</pre><pre>APPEND wa TO tab.</pre><pre>ENDLOOP.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e76ce79aa81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ABAP 740 Convert Range table to internal table and opposite]]></title>
            <link>https://medium.com/@ibo.shalka/abap-740-convert-range-table-to-internal-table-and-opposite-d75b32a5649d?source=rss-e00cacc97d05------2</link>
            <guid isPermaLink="false">https://medium.com/p/d75b32a5649d</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[sap-training]]></category>
            <dc:creator><![CDATA[Ebrahim Hatem]]></dc:creator>
            <pubDate>Thu, 21 Nov 2019 08:32:01 GMT</pubDate>
            <atom:updated>2019-11-21T08:32:01.040Z</atom:updated>
            <content:encoded><![CDATA[<p>I had a bad story in the past about range table and internal table. I have really struggled to convert range table to internal table to work with internal table and also another problem I wanted to convert table to range table to use it in selection the database. It was boring to do loop and endloop with some statments. Now with ABAP 740, we can convert it both internal table and range table easily. Let me to explain how can we do it.</p><ol><li><strong>Convert range table to internal table</strong></li></ol><p>You can convert it the range table to internal table by using statement mapping.</p><p>lt_but000 = CORRESPONDING #( range_partner MAPPING partner = low ).</p><p><strong>2. Convert internal table to range table by using Mapping.</strong></p><p>Range_partner2 = CORRESPONDING #( lt_but000 MAPPING low = partner ).</p><p><strong>3. Convert also internal table to range table by using For Loop.</strong></p><p>Range_partner3 = VALUE #( FOR wa IN lt_but000 ( sign = ‘I’ option = ‘EQ’ low = wa-partner ) ).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*T3Ht8W5tvFgVPcib2DL10Q.jpeg" /></figure><p>For more codes about ABAP 740 you can find it in this <a href="https://gist.github.com/iboabap/86ed6c0378b34bb9545ff41ac5208bc0">link</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d75b32a5649d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Replace the LOOP by using REDUCE operator]]></title>
            <link>https://medium.com/@ibo.shalka/replace-the-loop-by-using-reduce-operator-850cc0e7d76d?source=rss-e00cacc97d05------2</link>
            <guid isPermaLink="false">https://medium.com/p/850cc0e7d76d</guid>
            <category><![CDATA[abap]]></category>
            <dc:creator><![CDATA[Ebrahim Hatem]]></dc:creator>
            <pubDate>Tue, 20 Aug 2019 11:50:47 GMT</pubDate>
            <atom:updated>2019-08-20T11:50:47.757Z</atom:updated>
            <content:encoded><![CDATA[<p>Replace the LOOP by using REDUCE operator</p><p>This story is really short and it shows only how can someone use the for loop inside reduce operator insteal of Loop at ITAB. Even if you have more than Loop, you can although replace it by using for loop to do some calculation like sum, avg etc.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/177904a9a52dd36134fa15dc0e5fbe5d/href">https://medium.com/media/177904a9a52dd36134fa15dc0e5fbe5d/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*wczrA4oP_lSehC0hkBFe2A.jpeg" /></figure><p>Best regars<br>Ebrahim Hatem</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=850cc0e7d76d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create SAP Shortcut to Favorites ( Function, Transaction, Program)]]></title>
            <link>https://medium.com/@ibo.shalka/how-to-create-sap-shortcut-to-favorites-function-transaction-program-86b5ec325ccb?source=rss-e00cacc97d05------2</link>
            <guid isPermaLink="false">https://medium.com/p/86b5ec325ccb</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[sap-abap-training]]></category>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[abap]]></category>
            <dc:creator><![CDATA[Ebrahim Hatem]]></dc:creator>
            <pubDate>Tue, 18 Jun 2019 12:52:32 GMT</pubDate>
            <atom:updated>2019-06-18T12:52:32.814Z</atom:updated>
            <content:encoded><![CDATA[<p>In SAP, as we know, we can only add transactions to our favorites. But what are going to do if you have function module or programm which you would like to execute, so you have to call Transactions SE37 or SE38 and execute it.</p><p>In this Blog, I would like show you, how you can do it only with click or press key to execute your favorite. As well as you can manage your favorites ( Delete, Edit, Add, Hide).</p><p>So you have to create 2 Tables: one table for main node and the second one for childern nodes. <br>Main Nodes contains the header and second table contains the childern nodes. For example Main node I would like to add it for SAP Gateway and childern all transactions, program or Function to execute it later. We will explain it more when you creat the tables.</p><p>This our Program will look like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*lvpVWsOzJJ_QIMRTVwE-4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*emOUmTY5IRYv6mV_hiS5LA.jpeg" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0e46c85a31b1065b9b1756399b9beeed/href">https://medium.com/media/0e46c85a31b1065b9b1756399b9beeed/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86b5ec325ccb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Change SAP GUI language without to log off]]></title>
            <link>https://medium.com/@ibo.shalka/https-medium-com-ebrahim-hatem-change-sap-gui-language-without-to-log-off-36c6a987072f?source=rss-e00cacc97d05------2</link>
            <guid isPermaLink="false">https://medium.com/p/36c6a987072f</guid>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[sap-gui]]></category>
            <category><![CDATA[abap]]></category>
            <category><![CDATA[sap-client-list]]></category>
            <dc:creator><![CDATA[Ebrahim Hatem]]></dc:creator>
            <pubDate>Wed, 29 May 2019 08:14:46 GMT</pubDate>
            <atom:updated>2019-05-29T08:39:25.268Z</atom:updated>
            <content:encoded><![CDATA[<p>I would like to talk about my story about SAP GUI langauge. I have worked with many clients and if I would like to change the langauge from englisch to german or another langauge, I had to log off then log in with given a language. But with this program you don’t need anymore to log off. You can change the language directly.</p><p>So let us to start</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c85c0352e37420daaae09972d924742/href">https://medium.com/media/6c85c0352e37420daaae09972d924742/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*bX8l3pnEjg-eA1vGI49HqQ.jpeg" /><figcaption>Change language in current session</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36c6a987072f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>