<?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 read stmt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt/m-p/2683552#M620534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;in which scenario we will write the READ STATEMENT???&lt;/P&gt;&lt;P&gt;and when we write read stnt.. any preconditions we want write..like&lt;/P&gt;&lt;P&gt;sy-subrc ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2007 07:52:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-16T07:52:20Z</dc:date>
    <item>
      <title>read stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt/m-p/2683552#M620534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;in which scenario we will write the READ STATEMENT???&lt;/P&gt;&lt;P&gt;and when we write read stnt.. any preconditions we want write..like&lt;/P&gt;&lt;P&gt;sy-subrc ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 07:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt/m-p/2683552#M620534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T07:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: read stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt/m-p/2683553#M620535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the below will be helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ for Files,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reads a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;READ DATASET &amp;lt;dsn&amp;gt; INTO &amp;lt;f&amp;gt; [LENGTH &amp;lt;len&amp;gt;].&lt;/P&gt;&lt;P&gt;Reads the contents of the file &amp;lt;dsn&amp;gt; on the application server to the variable &amp;lt;f&amp;gt;. The number of bytes transferred can be written to &amp;lt;len&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;READ for any Internal Table&lt;/P&gt;&lt;P&gt;Reads a line from any internal table. &lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;READ TABLE &amp;lt;itab&amp;gt;  FROM &amp;lt;wa&amp;gt;&lt;/P&gt;&lt;P&gt;                  |WITH TABLE KEY &amp;lt;k1&amp;gt; = &amp;lt;f1&amp;gt;... &amp;lt;kn&amp;gt; = &amp;lt;fn&amp;gt; &lt;/P&gt;&lt;P&gt;                  |WITH KEY = &amp;lt;f&amp;gt;&lt;/P&gt;&lt;P&gt;                  |WITH KEY &amp;lt;k1&amp;gt; = &amp;lt;f1&amp;gt;... &amp;lt;kn&amp;gt; = &amp;lt;fn&amp;gt; &lt;/P&gt;&lt;P&gt;      INTO &amp;lt;wa&amp;gt; [COMPARING &amp;lt;f1&amp;gt; &amp;lt;f2&amp;gt;... |ALL FIELDS]&lt;/P&gt;&lt;P&gt;                [TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f2&amp;gt;... |ALL FIELDS|NO FIELDS]&lt;/P&gt;&lt;P&gt;     |ASSIGNING &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;This statement reads either the line of the internal table with the same key as specified in the work area &amp;lt;wa&amp;gt;, the line with the key specified in the TABLE KEY addition, the line that corresponds fully to &amp;lt;f&amp;gt;, or the one corresponding to the freely-defined key in the KEY addition. The contents of the line are either written to the work area &amp;lt;wa&amp;gt;, or the line is assigned to the field symbol &amp;lt;FS&amp;gt;. If you assign the line to a work area, you can compare field contents and specify the fields that you want to transport.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;READ for Index Tables&lt;/P&gt;&lt;P&gt;Reads a line of an index table. &lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;READ TABLE &amp;lt;itab&amp;gt; INDEX &amp;lt;idx&amp;gt; INTO &amp;lt;wa&amp;gt;... | ASSIGNING &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;Reads the line with the index &amp;lt;idx&amp;gt;. The result is available as described above. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;READ for Lists&lt;/P&gt;&lt;P&gt;Reads the contents of a line from a list. &lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;READ LINE  &amp;lt;n&amp;gt; [INDEX &amp;lt;idx&amp;gt;] [OF CURRENT PAGE|OF PAGE &amp;lt;p&amp;gt;]&lt;/P&gt;&lt;P&gt;          |CURRENT LINE&lt;/P&gt;&lt;P&gt;          [FIELD VALUE &amp;lt;f1&amp;gt; [INTO &amp;lt;g1&amp;gt;]... &amp;lt;fn&amp;gt; [INTO &amp;lt;gn&amp;gt;]].&lt;/P&gt;&lt;P&gt;Reads either the line &amp;lt;n&amp;gt; on the current or specified list or page, or the last line to have been selected by the user. The addition specifies the fields that you want to read, and the target fields into which they should be placed. The entire line is always placed in the system field SY-LISEL, and the HIDE area is filled for the line. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;READ for Programs&lt;/P&gt;&lt;P&gt;Reads ABAP programs from the program library. &lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;READ REPORT &amp;lt;prog&amp;gt; INTO &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;Copies the lines of the program &amp;lt;prog&amp;gt; into the internal table &amp;lt;itab&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ramya&lt;/P&gt;&lt;P&gt;        RAMYA RAVIKUMAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 07:55:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt/m-p/2683553#M620535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T07:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: read stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt/m-p/2683554#M620536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose if u have two internal tables itab1 and itab2 with a one common field&lt;/P&gt;&lt;P&gt;and if u want to move the data to final intetrnal table from these two tables then we use this read stmt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at iitab1.&lt;/P&gt;&lt;P&gt;read table itab2 with key vbeln = itab1-vbeln using binary seaarch&lt;/P&gt;&lt;P&gt;check sy-subrc value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move data&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 08:01:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt/m-p/2683554#M620536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T08:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: read stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt/m-p/2683555#M620537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;goto &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abap editor and type READ and put the cursor at the starting of read and then press F1 u will get more information on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u have doubt on any of the ABAP statements do like above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Points If Useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 08:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt/m-p/2683555#M620537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T08:13:19Z</dc:date>
    </item>
  </channel>
</rss>

