<?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 table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834304#M922053</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;do this way  ..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at int_tab1 into wa_tab1
   read table tab2 with key tab2-field1 = wa_tab1-field2.
   if sy-subrc = 0.
      move tab2-field2 to tab3-field3.
      append tab3.
      clear tab3.
  endif.
endloop &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2008 11:29:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-13T11:29:28Z</dc:date>
    <item>
      <title>read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834300#M922049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at int_tab1 into wa_tab1&lt;/P&gt;&lt;P&gt; read table tab2 with key tab2-field1 = wa_tab1-field2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for the record fetched above I want to do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move tab2-field2 to tab3-field3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;How can I capture the record from read statement&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 11:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834300#M922049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T11:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834301#M922050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at int_tab1 into wa_tab1&lt;/P&gt;&lt;P&gt;read table tab2 with key tab2-field1 = wa_tab1-field2.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;tab3-field3 = tab2-field2.&lt;/P&gt;&lt;P&gt; &amp;lt;....&amp;gt;&lt;/P&gt;&lt;P&gt;append tab3.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 11:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834301#M922050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T11:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834302#M922051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at int_tab1 into wa_tab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table tab2 with key tab2-field1 = wa_tab1-field2&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    write tab2-field2 to tab3-field3.&lt;/P&gt;&lt;P&gt;*or ... tab3-field3 = tab2-field2.&lt;/P&gt;&lt;P&gt;    append tab3.&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>Tue, 13 May 2008 11:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834302#M922051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T11:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834303#M922052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at int_tab1 into wa_tab1 .&lt;/P&gt;&lt;P&gt;read table tab2 with key field1 = wa_tab1-field2&lt;/P&gt;&lt;P&gt;tab3-field3 = itab2-field1.&lt;/P&gt;&lt;P&gt;append itab3.&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 11:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834303#M922052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T11:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834304#M922053</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;do this way  ..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at int_tab1 into wa_tab1
   read table tab2 with key tab2-field1 = wa_tab1-field2.
   if sy-subrc = 0.
      move tab2-field2 to tab3-field3.
      append tab3.
      clear tab3.
  endif.
endloop &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 11:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834304#M922053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T11:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834305#M922054</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;&lt;/P&gt;&lt;P&gt;  If your output requirement is such that you can fill the output table even though tab2-field2 is empty then you can proceed as given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at int_tab1 into wa_tab1&lt;/P&gt;&lt;P&gt;  read table tab2 with key tab2-field1 = wa_tab1-field2&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    tab3-field3 = tab2-field2.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  append tab3.&lt;/P&gt;&lt;P&gt;  clear tab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the requirement is such that you need to proceed further only if tab2-field2 is filled then you can proceed as given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at int_tab1 into wa_tab1&lt;/P&gt;&lt;P&gt;  read table tab2 with key tab2-field1 = wa_tab1-field2&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    tab3-field3 = tab2-field2.&lt;/P&gt;&lt;P&gt;  append tab3.&lt;/P&gt;&lt;P&gt;  clear tab2.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  clear tab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 11:36:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834305#M922054</guid>
      <dc:creator>anub</dc:creator>
      <dc:date>2008-05-13T11:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834306#M922055</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;loop at int_tab1 into wa_tab1&lt;/P&gt;&lt;P&gt;read table tab2 with key tab2-field1 = wa_tab1-field2.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;tab3-field3 = tab2-field2.&lt;/P&gt;&lt;P&gt;&amp;lt;....&amp;gt;&lt;/P&gt;&lt;P&gt;append tab3.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 11:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/3834306#M922055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T11:38:05Z</dc:date>
    </item>
  </channel>
</rss>

