<?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: Select stmt into corresponding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-into-corresponding/m-p/3499060#M841656</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;When you use INTO TABLE or INTO CORRESPONDING FIELDS OF TABLE clause for SELECT it refreshes the target internal table and replaces all entries witht he current select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when the second SELECT runs, it refreses itab and replaced it with entries from second select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change it as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kunnr name1 from kna1into corresponding fileds of table itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lifnr from lfa1 &lt;STRONG&gt;appending&lt;/STRONG&gt; corresponding fileds of table itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, note, that the :LFA1 entries would get added under KNA1 entries in table itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aditya Laud on Feb 27, 2008 2:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2008 07:34:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-27T07:34:24Z</dc:date>
    <item>
      <title>Select stmt into corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-into-corresponding/m-p/3499059#M841655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a structure with 3 fields from different tables and iam selecting and passing to itab by using into corresponding fields of table itab,but it not taking the value in the first select statement. plz help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ST_KNA1,&lt;/P&gt;&lt;P&gt;             kunnr type kna1-kunnr,&lt;/P&gt;&lt;P&gt;             nam1 type kna1-name1,&lt;/P&gt;&lt;P&gt;             lifnr   type lfa1-lifnr,&lt;/P&gt;&lt;P&gt;             end of ST_KNA1.&lt;/P&gt;&lt;P&gt;DATA : itab type st_kna1 initial size 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : wa_itab type st_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kunnr name1 from kna1into corresponding fileds of table itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lifnr from lfa1 into corresponding fileds of table itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab into wa_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ wa_itab-kunnr&lt;/P&gt;&lt;P&gt;wa_itab-name1,&lt;/P&gt;&lt;P&gt;wa_itab-lifnr,&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;It is selecting kunnr name1 &amp;amp; lifnr but in table in having only lifnr field value....&amp;amp; printing only lifnr value so plz help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 07:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-into-corresponding/m-p/3499059#M841655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T07:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select stmt into corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-into-corresponding/m-p/3499060#M841656</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;When you use INTO TABLE or INTO CORRESPONDING FIELDS OF TABLE clause for SELECT it refreshes the target internal table and replaces all entries witht he current select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when the second SELECT runs, it refreses itab and replaced it with entries from second select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change it as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kunnr name1 from kna1into corresponding fileds of table itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lifnr from lfa1 &lt;STRONG&gt;appending&lt;/STRONG&gt; corresponding fileds of table itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, note, that the :LFA1 entries would get added under KNA1 entries in table itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aditya Laud on Feb 27, 2008 2:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 07:34:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-into-corresponding/m-p/3499060#M841656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T07:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select stmt into corresponding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-into-corresponding/m-p/3499061#M841657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working fine,thank you very much..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 09:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-into-corresponding/m-p/3499061#M841657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T09:52:17Z</dc:date>
    </item>
  </channel>
</rss>

