<?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: data selection into same itab in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-into-same-itab/m-p/3587613#M863781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i dont think so you can do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to use read statemnt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2008 06:29:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-25T06:29:20Z</dc:date>
    <item>
      <title>data selection into same itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-into-same-itab/m-p/3587611#M863779</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;itab having txz01 and bukrs field , bukrs having data.&lt;/P&gt;&lt;P&gt;can i do like this to fetch data for txz01 for all bukrs having in same itab.&lt;/P&gt;&lt;P&gt;is this correct to fetch data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select txz01 from ekpo &lt;/P&gt;&lt;P&gt;into corresponding fields of table gt_item &lt;/P&gt;&lt;P&gt;                       for all entries in gt_item&lt;/P&gt;&lt;P&gt; where bukrs = gt_item-bukrs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 06:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-into-same-itab/m-p/3587611#M863779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T06:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: data selection into same itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-into-same-itab/m-p/3587612#M863780</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;syntactically there is no wrong.&lt;/P&gt;&lt;P&gt;but, if u use like this ur previous data in that itab will we cleared off and new selected data only will present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 06:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-into-same-itab/m-p/3587612#M863780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T06:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: data selection into same itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-into-same-itab/m-p/3587613#M863781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i dont think so you can do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to use read statemnt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 06:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-into-same-itab/m-p/3587613#M863781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T06:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: data selection into same itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-into-same-itab/m-p/3587614#M863782</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;Make use of below alternatives........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not gt_item[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select txz01 from ekpo &lt;/P&gt;&lt;P&gt;into corresponding fields of table gt_item1 &lt;/P&gt;&lt;P&gt;for all entries in gt_item&lt;/P&gt;&lt;P&gt;where bukrs = gt_item-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not gt_item[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select txz01 from ekpo appending &lt;/P&gt;&lt;P&gt;into corresponding fields of table gt_item &lt;/P&gt;&lt;P&gt;for all entries in gt_item&lt;/P&gt;&lt;P&gt;where bukrs = gt_item-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 06:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-into-same-itab/m-p/3587614#M863782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T06:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: data selection into same itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-into-same-itab/m-p/3587615#M863783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;syntactically correct. but you will end up fetching the same data. copy to a temp table and then moce back to the original one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 06:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-into-same-itab/m-p/3587615#M863783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T06:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: data selection into same itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-into-same-itab/m-p/3587616#M863784</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;You are having BUKRS values in table gt_item. so you want txz01 field in gt_item in same table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bettere declare another internal table gt_item01 of same type of gt_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_item.&lt;/P&gt;&lt;P&gt;move-corresponding gt_item to gt_item01.&lt;/P&gt;&lt;P&gt;append gt_item01.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&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;here you have bukrs in gt_item01.***&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;&lt;/P&gt;&lt;P&gt;loop at gt_item..&lt;/P&gt;&lt;P&gt;select txz01 from ekpo &lt;/P&gt;&lt;P&gt;into corresponding fields of table gt_item01&lt;/P&gt;&lt;P&gt;where bukrs = gt_item-bukrs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify gt_item01 index sy-tabix  transporting txz01.&lt;/P&gt;&lt;P&gt;endoop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in table gt_item01 you have field values of both bukrs and txz01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this once....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sunil kairam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2008 06:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-into-same-itab/m-p/3587616#M863784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-25T06:41:29Z</dc:date>
    </item>
  </channel>
</rss>

