<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Read Statement in internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371072#M1993653</link>
    <description>&lt;P&gt;In general, and on this theme, I believe the ABAP documentation is pretty awesome... It's a good balance between describing in simple terms and explaining "advanced" or "deeper" things. It's not too wordy, but clear and concise.&lt;/P&gt;&lt;P&gt;Then there are things like this. I believe COMPARING is an old thing (though I've never used it). But EMPTY KEY is 7.40, right? So at least the doc should've been touhced...&lt;/P&gt;</description>
    <pubDate>Sat, 27 Feb 2021 15:38:30 GMT</pubDate>
    <dc:creator>joltdx</dc:creator>
    <dc:date>2021-02-27T15:38:30Z</dc:date>
    <item>
      <title>Read Statement in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371066#M1993647</link>
      <description>&lt;P&gt;program:&lt;/P&gt;
  &lt;P&gt;REPORT ZDEMO.&lt;BR /&gt;DATA: BEGIN OF REC,&lt;BR /&gt; COL1 TYPE I,&lt;BR /&gt; COL2 TYPE I,&lt;BR /&gt; END OF REC.&lt;BR /&gt;DATA:ITAB1 LIKE TABLE OF REC WITH NON-UNIQUE KEY COL1.&lt;BR /&gt;DO 3 TIMES.&lt;BR /&gt; REC-COL1 = SY-INDEX. REC-COL2 = SY-INDEX ** 3.&lt;BR /&gt; APPEND REC TO ITAB1.&lt;BR /&gt;ENDDO.&lt;BR /&gt;LOOP AT ITAB1 INTO REC.&lt;BR /&gt; WRITE: / REC-COL1, REC-COL2.&lt;BR /&gt;ENDLOOP.&lt;BR /&gt;ULINE.&lt;BR /&gt;ULINE.&lt;BR /&gt;REC-COL1 = 5. REC-COL2 = 8.&lt;BR /&gt;READ TABLE ITAB1 FROM REC INTO REC COMPARING COL2.&lt;BR /&gt;WRITE: / 'SY-SUBRC = ', SY-SUBRC.&lt;BR /&gt;SKIP.&lt;BR /&gt;WRITE: / REC-COL1, REC-COL2.&lt;/P&gt;
  &lt;P&gt;Output: &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1895554-4evtu.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Ques: why the sy-subrc is coming 4 (not found any entry) while I was searching as: COMPARING COL2. and col2 = 8 is there in the internal table.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 15:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371066#M1993647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-02-26T15:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Read Statement in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371067#M1993648</link>
      <description>&lt;P&gt;Thank you for
visiting SAP Community to get answers to your questions. Since this is your
first question, I recommend that you familiarize yourself with our Q&amp;amp;A
Tutorial: &lt;A href="https://developers.sap.com/tutorials/community-qa.html"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;,
as it provides tips for preparing questions that draw responses from our
members. Should you wish, you can revise your question by selecting Actions,
then Edit.&lt;/P&gt;&lt;P&gt;By adding a picture
to your profile you encourage readers to respond: &lt;A href="https://www.youtube.com/watch?v=46bt1juWUUM"&gt;https://www.youtube.com/watch?v=46bt1juWUUM&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 15:29:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371067#M1993648</guid>
      <dc:creator>former_member34</dc:creator>
      <dc:date>2021-02-26T15:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Read Statement in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371068#M1993649</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Yeah, COMPARING is not working like that. It can be used to compare fields in the &lt;EM&gt;found&lt;/EM&gt; line. &lt;A href="https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abapread_table_transport_options.htm" target="_blank"&gt;Here's the ABAP Documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The sy-subrc = 4 comes from the fact that there is no line matching rec, that is col1=5 and col2=8.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 15:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371068#M1993649</guid>
      <dc:creator>joltdx</dc:creator>
      <dc:date>2021-02-26T15:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read Statement in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371069#M1993650</link>
      <description>&lt;P&gt;Wanting to know what the COMPARING statement does, I checked the documentation.. surprise surprise, it seems like instead of pre-fixes like "lt_", we're gonna use post-fixes "_tab" instead? Is that supposed to be clean code? And wait, we don't need to be consistent either, for the second table doesn't have the post-fix.. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: sflight_tab TYPE SORTED TABLE OF sflight
                  WITH UNIQUE KEY carrid connid fldate,
      sflight_wa  LIKE LINE OF sflight_tab,
      output      TYPE TABLE OF string WITH EMPTY KEY.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Feb 2021 22:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371069#M1993650</guid>
      <dc:creator>Patrick_vN</dc:creator>
      <dc:date>2021-02-26T22:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Read Statement in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371070#M1993651</link>
      <description>&lt;P&gt;Ok so &lt;STRONG&gt;sflight_tab&lt;/STRONG&gt; means: table of sflight. No real semantic information there. It's not much better than &lt;STRONG&gt;CONSTANTS c_x VALUE 'X'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Why would we need the initial S?!&lt;/P&gt;&lt;P&gt;I'd use &lt;STRONG&gt;flights&lt;/STRONG&gt;, I guess. &lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 08:20:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371070#M1993651</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2021-02-27T08:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Read Statement in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371071#M1993652</link>
      <description>(&lt;A href="https://answers.sap.com/users/56352/pvnierop.html"&gt;Patrick Van Nierop&lt;/A&gt; see Matthew reply to you)</description>
      <pubDate>Sat, 27 Feb 2021 10:27:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371071#M1993652</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-02-27T10:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Read Statement in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371072#M1993653</link>
      <description>&lt;P&gt;In general, and on this theme, I believe the ABAP documentation is pretty awesome... It's a good balance between describing in simple terms and explaining "advanced" or "deeper" things. It's not too wordy, but clear and concise.&lt;/P&gt;&lt;P&gt;Then there are things like this. I believe COMPARING is an old thing (though I've never used it). But EMPTY KEY is 7.40, right? So at least the doc should've been touhced...&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 15:38:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-in-internal-table/m-p/12371072#M1993653</guid>
      <dc:creator>joltdx</dc:creator>
      <dc:date>2021-02-27T15:38:30Z</dc:date>
    </item>
  </channel>
</rss>

