<?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 Sandeshthakre on Medium]]></title>
        <description><![CDATA[Stories by Sandeshthakre on Medium]]></description>
        <link>https://medium.com/@sandesh19thakre?source=rss-54a9d3b028f7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_q-HqJOVqXTmIAG1LBHZDg.jpeg</url>
            <title>Stories by Sandeshthakre on Medium</title>
            <link>https://medium.com/@sandesh19thakre?source=rss-54a9d3b028f7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:53:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sandesh19thakre/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[DME Exits.]]></title>
            <link>https://sandesh19thakre.medium.com/dme-exits-1a78705f11c0?source=rss-54a9d3b028f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a78705f11c0</guid>
            <dc:creator><![CDATA[Sandeshthakre]]></dc:creator>
            <pubDate>Thu, 27 Apr 2023 04:45:50 GMT</pubDate>
            <atom:updated>2023-04-27T04:45:50.791Z</atom:updated>
            <content:encoded><![CDATA[<p>DME stands for Data Medium Exchange having T-code <strong>DMEE</strong>(DME Engine).</p><p>Some business has this interface with banks which process their payment by just sending a payment file to the bank generally the file is in .xml or flat-file format which can be created by a standard process called <strong>DMEE.</strong></p><p>DMEE is a standard process that can be configured as required XML or flat-file output nodes are introduced in DMEE structure and the values are taken in either the structure or putting an exit which is a Function Module where code can be written for the fields which are not in the standard structure.</p><p>All the nodes can have separate FM or Exit or can be included in one Exit using <strong>Case Endcase</strong> on Node ID or separate FM can be included for each node.</p><h3>Function Module Can Be used:-</h3><ul><li>DMEE_EXIT_TEMPLATE_EXTEND_ABA</li><li>DMEE_EXIT_TEMPLATE</li><li>FI_PAYMEDIUM_SAMPLE_21 ( FM to Change File Name).</li></ul><p>The function Module mentioned above can be used for creating Exit for getting values on the node which cannot be satisfied by a standard structure whereas importing parameters we get all the fields which are present in DMEE and contains three exporting parameters Which are O_VALUE, C_VALUE, N_VALUE and P_VALUE which represents type C, N, P and O is for Output Return Value.</p><p>Importing Parameter for the FM is of type <strong>DMEE_PAYM_IF_TYPE </strong>where data from F110 is imported to FM which can be used to get other relevant fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*5zxHuka9XS_2EE04.png" /></figure><p>A node that needs to have Exit need to check RadioButton <strong>Exit module</strong>, wherein Attributes the type should be given as Exporting Parameters from FM.</p><p>Whatever the data is to show in node through Exit code is written in that particular exit as shown in the code and image beside.</p><blockquote><strong>DMEE_EXIT_TEMPLATE_EXTEND_ABA</strong><em> FM as exit code depending on the node Id.</em></blockquote><pre>CASE i_extension–node–node_id.<br>  WHEN &#39;N_8559886880&#39;.  &quot;&quot;Condition On Node ID.<br>    IF l_item–fpayp–dmbtr LT 200000.<br>      l_item–fpayh–formz = &#39;NEFT&#39;.<br>      o_value = l_item–fpayh–formz.<br>      c_value = l_item–fpayh–formz.<br>    ELSE.<br>      l_item–fpayh–formz = &#39;RTGS&#39;.<br>      o_value = l_item–fpayh–formz.<br>      c_value = l_item–fpayh–formz.<br>    ENDIF.<br>ENDCASE.</pre><blockquote><strong>DMEE_EXIT_TEMPLATE </strong><em>FM as an exit for the individual node.<br> This is when you need to map just for one node or to avoid confusion every node is given seperate Exit as in FM.</em></blockquote><pre>IF l_item–fpayp–dmbtr LT 200000.<br>  l_item–fpayh–formz = &#39;NEFT&#39;.<br>  o_value = l_item–fpayh–formz.<br>  c_value = l_item–fpayh–formz.<br>ENDIF.</pre><blockquote><strong>FI_PAYMEDIUM_SAMPLE_21 </strong><em>FM to change Filename</em></blockquote><p>The Importing Parameter i_filename which contains the file path where the file needs to be saved and exporting parameters which give file name c_filename.</p><blockquote><em>Config for Attaching FM For File Name to DMEE File</em></blockquote><p>T-code <strong>OBPM3 </strong>and find DME Format select and double click on Event Modules where FM name can be assigned with event 21.</p><blockquote><strong><em>Thank you for reading. Stay tuned!</em></strong></blockquote><p><em>Originally published at </em><a href="https://blogs.sap.com/2023/04/26/dme-exits./"><em>https://blogs.sap.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a78705f11c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Range and Sets.]]></title>
            <link>https://sandesh19thakre.medium.com/range-and-sets-b4278a619be9?source=rss-54a9d3b028f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4278a619be9</guid>
            <category><![CDATA[sap-abap]]></category>
            <category><![CDATA[dme]]></category>
            <category><![CDATA[dmee-tree]]></category>
            <dc:creator><![CDATA[Sandeshthakre]]></dc:creator>
            <pubDate>Tue, 25 Apr 2023 07:30:54 GMT</pubDate>
            <atom:updated>2023-04-25T07:30:54.522Z</atom:updated>
            <content:encoded><![CDATA[<p>Ranges in ABAP are similar to the internal table that saves group values or value intervals and has various applications like passing values in select Query and submitting reports with values.<br> Sets are used for saving the values to avoid hard coding in the program, where values can be changed in any system weather modifiable or not.</p><p>The range is also a Kind of standard internal table which has SIGN, OPTION, HIGH and LOW.</p><p><strong>A sign</strong> has two possible values</p><p><strong>I</strong> Inclusion</p><p><strong>E</strong> Exclusion.</p><p><strong>An Option</strong> has eight possible values</p><p><strong>EQ</strong> Equal</p><p><strong>NE</strong> Not Equal</p><p><strong>GE</strong> Greater Than or Equal</p><p><strong>GT</strong> Greater Than</p><p><strong>LE</strong> Less Than or Equal</p><p><strong>LT</strong> Less Than</p><p><strong>CP</strong> Contains a Pattern.</p><p><strong>LOW</strong> and <strong>HIGH</strong> are used to store the data which is to be compared in the combination<br> of Sign and Option, the Comparison is made and accordingly, data is processed.</p><p>Working with SAP ABAP come across many situations where Ranges are required for various purposes like selecting data from the database, deleting entries from Internal<br> Table, differentiating and sorting data from Internal Tables, and many more.</p><h3>Declaration Of Range.</h3><p>The syntax used to declare the range and use to fill the data into the range table.</p><pre>TYPES:r_typ TYPE RANGE OF sy-datum.<br>DATA: r_dtm  TYPE rng_typ,<br>      wa_rng TYPE LINE OF rng_typ.<br><br>APPEND VALUE #( sign = &#39;I&#39; option = &#39;EQ&#39; low = dt_frm high = dt_to ) TO r_dtm.<br><br>LOOP AT 1lt_dt INTO wa.<br>  wa_rng-sing-sign = &#39;I&#39;.<br>  wa_rng-option = &#39;EQ&#39;.<br>  wa_rng-llow = wa-sfield.<br>  APPEND wa_rng TO r_dtm.<br>ENDLOOP.<br><br>r_dtm = VALUE #( FOR &lt;wa&gt; IN 1lt_dt &quot;WHERE  ( sfield = &#39; &#39; )  &quot;&quot; Where Condition For Consitional Filling <br>                        LET lv_sign = &#39;I&#39; lv_option = &#39;EQ&#39; IN                    of Data In Range<br>                            sign   = lv_sign<br>                            option = lv_option<br>                          ( low   = &lt;wa&gt;-sfield ) ).</pre><h3>Use Of Range.</h3><p>Various use of Range in SAP ABAP.</p><h4>Selecting Data From Database(Select Query).</h4><pre>SELECT belnr,<br>       gjahr,<br>       bukrs<br>  FROM bkpf<br>  INTO @tbl<br>   WHERE budat IN @r_dtm.</pre><h4>Deleting Data from Internal Table.</h4><pre>DELETE tbl WHERE budat IN r_dtm.</pre><h4>Loop On Internal Table.</h4><pre>LOOP AT tbl INTO wa WHERE budat IN r_dtm. <br>ENDLOOP.</pre><h4>Submit Program.</h4><pre>SUBMIT sap1000 WITH budat IN r_dtm AND RETURN.</pre><p>Sets are the standard functionality that provides the privilege to avoid hard coding in<br> ABAP, the set is created in GS01, GS02 for change, and GS03 for Display.<br> There are four types of sets:<br><strong>1. Basic Sets</strong> are used to store multiple values for the particular field of a table.<br><strong>2. Single Sets</strong> are used to combine basic sets in Single sets.<br><strong>3. Multi sets</strong> are used to combine basic sets or single sets into Single sets.<br><strong>4. Key Figures</strong> are used for report painters.</p><p>Steps to Create Set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/0*fP1J1x_gdjcJLijZ.png" /></figure><p>Provide a name to the set and also a table name and hit ‘Enter’.</p><p>A pop-up will appear asking for the field of the Set, provide the field name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/0*MA1W0WnhbrZcgbzK.png" /></figure><p>Once the set is created we can maintain the values in it.<br> For changing the entries in Set T-code GS02 is used.</p><h4>Adding Data Into Sets.</h4><p>Whenever the Harcode is to be avoided from the code we can use a set there which can be maintained in PRD also so no code changes are required.</p><p>While Maintaining data in sets data can be in the form of from values to values and<br> also single value as multiple entries.</p><h4>Getting Data From Sets.</h4><p>Using FM.</p><pre>DATA set_vallues TYPE STANDARD TABLE OF rgsb4.<br><br>CALL FUNCTION &#39;G_SET_GET_ALL_VALUES&#39;<br>  EXPORTING<br>    client        = sy-mandt<br>    setnr         = &#39;ZTEST&#39;<br>    table         = &#39;BKPF&#39;<br>    fieldname     = &#39;BLART&#39;<br>  TABLES<br>    set_values    = set_vallues<br>  EXCEPTIONS<br>    set_not_found = 1<br>    OTHERS        = 2.<br>IF sy-subrc &lt;&gt; 0.<br>* Implement suitable error handling here<br>ENDIF.</pre><p>Selecting Directly into Range.</p><pre>TYPES:r_typ TYPE RANGE OF bkpf-blart.<br>DATA: r_dtm TYPE rng_typ.<br><br>SELECT valsign AS sign,<br>       valoption AS option,<br>       valfrom AS low,<br>       valto AS high<br>  FROM setleaf<br>   INTO CORRESPONDING FIELDS OF TABLE @rng_typ<br>    WHERE setname = &#39;ZTEST&#39;.</pre><p>Other FM used for sets</p><p>G_SET_CREATION for creation of set.<br> G_SET_MAINTENANCE to maintain set.<br> G_SET_GET_ID_FROM_NAME to get set ID.<br> G_SET_FETCH set value from set ID.</p><p>Finally, from an end-user point of view, it will be easy to maintain values in the set to get desired output.</p><p>I’m looking forward to hearing more. Feel free to comment and discuss.</p><p>Best regards, thanks for reading.</p><p><strong>Sandesh Thakare</strong></p><p><em>Originally published at </em><a href="https://blogs.sap.com/2023/02/03/range-and-sets./"><em>https://blogs.sap.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4278a619be9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAP ABAP New Syntax]]></title>
            <link>https://sandesh19thakre.medium.com/sap-abap-new-syntax-d5ea9143bccd?source=rss-54a9d3b028f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5ea9143bccd</guid>
            <category><![CDATA[sap]]></category>
            <category><![CDATA[sap-abap]]></category>
            <category><![CDATA[sap-abap-new-syntax]]></category>
            <category><![CDATA[abap-on-hana-training]]></category>
            <category><![CDATA[abap]]></category>
            <dc:creator><![CDATA[Sandeshthakre]]></dc:creator>
            <pubDate>Sun, 27 Sep 2020 04:36:42 GMT</pubDate>
            <atom:updated>2023-08-25T05:20:42.510Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*5ds9D12VKMfmWBRcV7guSg.jpeg" /></figure><p>After version 7.4 in SAP, new syntax where introduced which increases the efficiency of the code written and also makes it easy for developers, which includes <strong>Inline Declaration, Table Expression, Data Operations.</strong></p><p>Here are some of the new syntax which I have come across and found out to be very useful for working in ABAP and making coding less complex.</p><p><strong><em>1.Inline Declaration:</em><br></strong>Before 7.4 New syntaxes were not introduced the variable needs to be declared before using it, now using inline declaration variable can we declare and use at the same time, Below are some of the syntax which has changed after 7.4.</p><p>Whenever data is to be moved to a variable, can be declared at the same instance,</p><pre><strong>Old Syntax.</strong><br> DATA var1 TYPE char5.<br> var1 = ‘ABC’.</pre><pre><strong>New Syntax.</strong><br> DATA(var1) = ‘ABC’.</pre><p>Select Single From DataBase Table into Work Area</p><pre><strong>Old Syntax.</strong><br>DATA wa TYPE ....<br>SELECT SINGLE fld1 fld2 FROM ....<br>INTO wa <br>WHERE fld1 = var1<br>AND fld2 = var2.</pre><pre><strong>New Syntax.</strong><br>SELECT SINGLE fld1, fld2, FROM ....<br>INTO @DATA(wa)<br>WHERE fld1 = @var1<br>AND fld2 = @var2.</pre><p>Selecting Data From DataBase Table Into Internal Table,</p><pre><strong>Old Syntax.</strong><br>DATA itab TYPE TABLE OF ....<br>SELECT fld1 fld2 FROM ....<br>INTO TABLE itab<br>WHERE fld1 = var1<br>AND fld2 = var2.</pre><pre><strong>New Syntax.</strong><br>SELECT fld1, fld2 FROM ....<br>INTO TABLE @DATA(itab)<br>WHERE fld1 = @var1<br>AND fld2 = @var2.</pre><p>Declaration of the work area while operation on Internal Table,</p><pre><strong>Old Syntax.</strong><br>DATA wa TYPE structure<br>LOOP AT itab INTO wa.<br>or<br>READ TABLE itab into wa WITH KEY field1 = var1.</pre><pre><strong>New Syntax.</strong><br>LOOP AT itab INTO data(wa).<br>or<br>READ TABLE itab into data(wa) WITH KEY field1 = var1.</pre><p>Moving Data From One Table To Other.</p><pre><strong>Old Syntax.</strong><br>DATA lt_tab LIKE itab.<br>lt_tab[] = itab[].</pre><pre><strong>New Syntax.</strong><br>DATA(lt_tab) = itab[].</pre><p>Assigning Field Symbols</p><pre><strong>Old Syntax.</strong><br>FIELD-SYMBOLS: &lt;line&gt; type …<br>LOOP AT itab ASSIGNING &lt;line&gt;.<br>or <br>READ TABLE itab ASSIGNING &lt;line&gt; WITH KEY FLD1 = VAR1.</pre><pre><strong>New Syntax.</strong><br>LOOP AT itab ASSIGNING FIELD-SYMBOL(&lt;line&gt;).<br>OR<br>READ TABLE itab ASSIGNING FIELD-SYMBOL(&lt;line&gt;) WITH KEY FLD1 = VAR1.</pre><p><strong><em>2.Table Expression:<br></em></strong>In SAP whenever the data is to be taken from Internal Table to any variable in Code for further processing, Loop or Read Table are generally used to get that data from Internal Table to work area and then move to another variable, so this effort can be lessened by using the new syntax.</p><p>Get line from table to Work Area.</p><pre><strong>Old Syntax.</strong><br>READ TABLE itab INTO DATA(wa) WITH KEY fld1 = var1.</pre><pre><strong>New Syntax.</strong><br>DATA(wa) = itab[ fld1 = var1 ].</pre><p>Read table with Index 1.</p><pre><strong>Old Syntax.</strong><br>READ TABLE itab INTO DATA(wa) index 1.</pre><pre><strong>New Syntax.</strong><br>DATA(wa) = itab[ 1 ].</pre><p>Get a particular field from one table to another variable.</p><pre><strong>Old Syntax.</strong><br>READ TABLE itab INTO wa WITH KEY fld1 = var1.<br>IF sy-subrc EQ 0.<br>lv_var2 = wa-var2.<br>ENDIF.</pre><pre><strong>New Syntax.</strong><br>lv_var2 = itab[ fld1 = var1 ]-var2.</pre><p>Check particular Value is in Internal Table.</p><pre><strong>Old Syntax.</strong><br>READ TABLE itab TRANSPORTING NO FIELDS WITH KEY fld1 = var1.<br>IF sy-subrc = 0.</pre><pre>ENDIF<strong>.</strong></pre><pre><strong>New Syntax.</strong><br>IF line_exists( itab[ fld1 = var1 ] ).</pre><pre>ENDIF.</pre><p>Get Index Number of Particular Entry From Internal Table.</p><pre><strong>Old Syntax.</strong><br>READ TABLE itab TRANSPORTING NO FIELDS fld1 = var1. <br>IF sy-subrc eq 0<br>lv_tabix = sy-tabix.<br>ENDIF.</pre><pre><strong>New Syntax.</strong><br>lv_tabix = line_index( itab[ fld1 = var1 ] ).</pre><p>Modify Entry in Table.</p><pre><strong>Old Syntax.<br></strong>READ TABLE itab ASSIGNING &lt;lfs_tab&gt; fld1 = var1. <br>IF sy-subrc eq 0<br>&lt;lfs_tab&gt;-fld2 = &#39;Text&#39;.<br>ENDIF.</pre><pre><strong>New Syntax.<br></strong>itab[ fld1 = var1 ]-fld2 = &#39;Text&#39;.</pre><p>Note: While Using these Syntaxes in case of Table Expression use with Try Catch with <strong><em>cx_sy_itab_line_not_found </em></strong>and Entry.</p><p><strong><em>3.Data Operations:<br></em></strong>Here are some of the new Syntax which can be used for manipulating, changing, and storing data according to requirement.</p><p>Adding or Removing Leading Zeros to a Variable.</p><pre><strong>Old Synatx.</strong> <br>For Removing Leading Zeros<br>CALL FUNCTION ‘CONVERSION_EXIT_ALPHA_OUTPUT’<br> EXPORTING<br> input = var1<br> IMPORTING<br> OUTPUT = var1 .<br>For Adding Leading Zeros<br>CALL FUNCTION ‘CONVERSION_EXIT_ALPHA_INPUT’<br> EXPORTING<br> input = var1<br> IMPORTING<br> OUTPUT = var1 .</pre><pre><strong>New Syntax.</strong><br>For Removing Leading Zeros<br>var1 = |{ var1 ALPHA = OUT}|.<br>For Adding Leading Zeros<br>var1 = |{ var1 ALPHA = IN }|.</pre><p>Getting Data into Variable Depending on Condition.</p><pre><strong>Old Syntax.</strong><br>IF cond1.<br> var1 = fld1.<br>ELSE.<br> var1 = fld2.<br>ENDIF.</pre><pre><strong>New Syntax.</strong><br>var1 = COND #( WHEN cond1 THEN fld1 ELSE fld2 ).</pre><p>Case Endcase.</p><pre><strong>Old Syntax.</strong><br>CASE var1. <br>WHEN cond1.<br> var1 = fld1.<br>WHEN cond2.<br> var1 = fld2.<br>ENDCASE.</pre><pre><strong>New Syntax.</strong><br>var1 = SWITCH #( var1 WHEN cond1 THEN fld1 <br>                      WHEN cond2 THEN fld2 ).</pre><p>Creating Table and Filling Data into a Table</p><pre><strong>Old Syntax.</strong><br>DATA: itab TYPE TABLE OF structure,<br>      wa TYPE structure.</pre><pre>wa-fld1 = 1.<br>wa-fld2 = &#39;A&#39;.<br>APPEND wa TO itab.<br>CLEAR WA.</pre><pre>wa-fld1 = 2.<br>wa-fld2 = &#39;B&#39;.<br>APPEND wa TO itab.<br>CLEAR WA.</pre><pre><strong>New Syntax.</strong><br>DATA(itab) = VALUE structure(( fld1 = 1 fld2 = &#39;A&#39; )<br>                             ( fld1 = 2 fld2 = &#39;B&#39; )).</pre><p>Adding New entries to Internal Table already having entries.</p><pre><strong>Old Syntax.<br></strong>DATA: itab TYPE TABLE OF structure,<br>      wa TYPE structure.</pre><pre>wa-fld1 = 1.<br>wa-fld2 = &#39;A&#39;.<br>APPEND wa TO itab.<br>CLEAR WA.</pre><pre>wa-fld1 = 2.<br>wa-fld2 = &#39;B&#39;.<br>APPEND wa TO itab.<br>CLEAR WA.</pre><pre><strong>New Syntax.<br></strong>itab = VALUE #( BASE itab<br>          ( fld1 = 1 fld2 = &#39;A&#39; ) <br>          ( fld1 = 2 fld2 = &#39;B&#39; ) ).</pre><p>Concatenate for data type apart from C, N, D, T, or STRING. Before 7.4 use to get Syntax Error saying this, but with new Syntax, it’s possible for any Data Type.</p><pre><strong>Old Syntax.</strong><br>CONCATENATE &#39;The Value in inr is&#39; var1 into fld1.</pre><pre><strong>New Syntax.</strong><br>fld1 = |The Value in inr is { var1 }|.</pre><p>Combining two tables into a single table.</p><pre>Old Synatx<br><br>loop at itab1 into wa1.<br> append wa1 into itab3.<br>endloop.<br><br>loop at itab2 into wa2.<br> append wa2 into itab3.<br>endloop.<br><br>New Synatx.<br><br>itab3 = itab2.<br><br>itab3 = corresponding #( BASE ( itab3 ) itab2 ).</pre><p>Moving Data from one Container to another.</p><pre><strong>Old Syntax.</strong><br>MOVE-CORRESPONDING itab1 to itab2.</pre><pre><strong>New Syntax.</strong><br>itab2 = CORRESPONDING #( itab1 ).</pre><p>Using the Above Syntax only fields that are identical in the container will be moved to move it to other fields this new syntax can be used.</p><pre>itab2 = CORRESPONDING #( itab1 MAPPING t1_fld1 = t2_fld1 <br>                                       t1_fld2 = t2_fld2 ).</pre><p>If some fields need to excluded while moving corresponding fields, this syntax can be used.</p><pre>itab2 = CORRESPONDING #( itab1 EXCEPT t1_fld3,t1_fld4 ).</pre><p>Moving Data From Table to other by Splitting it into two fields.</p><pre>*--Defining Structure<br>TYPES: BEGIN OF gty_s_rseg_key,<br>        belnr TYPE belnr_d,<br>        gjahr TYPE gjahr,<br>       END OF gty_s_rseg,<br>    gty_rseg TYPE STANDARD TABLE OF gty_s_rseg WITH EMPTY KEY.</pre><pre><strong>Old Syntax.</strong><br>DATA: lt_awkey TYPE gty_rseg,<br>      lw_awkey TYPE gty_s_rseg.</pre><pre>LOOP AT lt_bkpf into lw_bkpf.<br> lw_awkey-belnr = lw_bkpf-awkey+0(10).<br> lw_awkey-gjahr = lw_bkpf-awkey+10(4). <br> APPEND lw_awkey to lt_awkey<br>ENDLOOP.</pre><pre><strong>New Syntax.</strong><br>DATA(lt_awkey) = VALUE gty_rseg( FOR &lt;lfs_bkpf&gt; IN lt_bkpf<br>                               ( belnr = &lt;lfs_bkpf&gt;-awkey+0(10)<br>                                 gjahr = &lt;lfs_bkpf&gt;-awkey+10(4) ) ).</pre><p>Display Message combining two or more Fileds.</p><pre><strong>Old Syntax.</strong><br>DATA lv_name TYPE sy-ucomm.<br>DATA lv_output TYPE char20.<br>CONCATENATE &#39;The User ID is&#39; lv_name INTO lv_output SEPARATED BY space.<br>MESSAGE lv_output TYPE &#39;E&#39; DISPLAY LIKE &#39;E&#39;.</pre><pre><strong>New Syntax.</strong><br>MESSAGE |The User ID is { lv_name }| TYPE &#39;E&#39; DISPLAY LIKE &#39;E&#39;.</pre><p>Object-Oriented.</p><pre><strong>Old Syntax.</strong><br>DATA: binary_content TYPE solix_tab.<br>DATA: xl_content TYPE xstring .</pre><pre>CALL METHOD cl_document_bcs=&gt;xstring_to_solix<br>EXPORTING<br>ip_xstring = xl_content<br>receiving<br>rt_solix = binary_content</pre><pre><strong>New Syntax.</strong><br>binary_content = cl_bcs_convert=&gt;xstring_to_solix( ip_xstring = xl_content ).</pre><p>Creating Object For OOABAP.</p><pre><strong>Old Syntax.</strong><br>DATA oref TYPE REF TO class.<br>CREATE OBJECT oref EXPORTING …</pre><pre><strong>New Syntax.</strong><br>DATA oref TYPE REF TO class.<br>oref = NEW #( … ).<br>or <br>with an inline declaration<br>DATA(oref) = NEW class( … )</pre><blockquote><em>Thank you for reading. Stay tuned!</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5ea9143bccd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>