<?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: pick specific record from internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pick-specific-record-from-internal-table/m-p/322764#M4917</link>
    <description>&lt;P&gt;Hamdy,&lt;/P&gt;&lt;P&gt;itab_temp[]  = itab[].&lt;/P&gt;&lt;P&gt;Sort itab_temp by vbeln posnr.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from itab_temp comparing vbeln posnr.&lt;/P&gt;&lt;P&gt;Now use these two tables for looping append whatever the data you need to whichever the itab you need.&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2017 13:33:30 GMT</pubDate>
    <dc:creator>kiran_k8</dc:creator>
    <dc:date>2017-01-20T13:33:30Z</dc:date>
    <item>
      <title>pick specific record from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pick-specific-record-from-internal-table/m-p/322762#M4915</link>
      <description>&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/16387-va05-ink-li.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I need to pick the highlighted records to get some data and append it under the highlighted records also, how it is be performed inside loop ?!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 13:24:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pick-specific-record-from-internal-table/m-p/322762#M4915</guid>
      <dc:creator>former_member329853</dc:creator>
      <dc:date>2017-01-20T13:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: pick specific record from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pick-specific-record-from-internal-table/m-p/322763#M4916</link>
      <description>&lt;P&gt;Could you explain a bit more about what exactly you are trying to do? Also, including some code would help as well. I think I see what you are trying to do but not assuming.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 13:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pick-specific-record-from-internal-table/m-p/322763#M4916</guid>
      <dc:creator>ChrisSolomon</dc:creator>
      <dc:date>2017-01-20T13:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: pick specific record from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pick-specific-record-from-internal-table/m-p/322764#M4917</link>
      <description>&lt;P&gt;Hamdy,&lt;/P&gt;&lt;P&gt;itab_temp[]  = itab[].&lt;/P&gt;&lt;P&gt;Sort itab_temp by vbeln posnr.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from itab_temp comparing vbeln posnr.&lt;/P&gt;&lt;P&gt;Now use these two tables for looping append whatever the data you need to whichever the itab you need.&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 13:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pick-specific-record-from-internal-table/m-p/322764#M4917</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2017-01-20T13:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: pick specific record from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pick-specific-record-from-internal-table/m-p/322765#M4918</link>
      <description>&lt;P&gt;I don't think that is what he is trying to do.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 13:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pick-specific-record-from-internal-table/m-p/322765#M4918</guid>
      <dc:creator>ChrisSolomon</dc:creator>
      <dc:date>2017-01-20T13:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: pick specific record from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pick-specific-record-from-internal-table/m-p/322766#M4919</link>
      <description>&lt;P&gt;There seems to be a link to the third field ETENR (schedule line) too. For one delivery it is the ETENR = 1 records and the other ETENR = 2. There is definitely more to this story and having the "whys" and "whats" will definitely help the overall answer. I can write a LOOP statement that will work for this particular case, but won't for the very next piece of data that the original poster comes across.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;   LOOP AT itab INTO DATA(itab_line) WHERE ( vbeln = '4088' and etenr = '1' )
                                           OR ( vbeln = '4087' and etenr = '2' ).  
     "Other code  
     APPEND...       
   ENDLOOP. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you are looking to insert a record into the middle of the existing ITAB, I suggest you look at the complete help about internal tables, their types, sorting and keys. You can't quite just add a record at a random position of your choice without appending all the records in the order of your choice to a temporary table and then copy it back to the original table. If you are worried about performance at all, this would be the worst case as far as performance goes. I would suggest a sorted table with a properly declared key.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 14:15:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pick-specific-record-from-internal-table/m-p/322766#M4919</guid>
      <dc:creator>raghug</dc:creator>
      <dc:date>2017-01-20T14:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: pick specific record from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pick-specific-record-from-internal-table/m-p/322767#M4920</link>
      <description>&lt;P&gt;In t-code: VA05 sales orders are been displayed I want to create an enhancement to get new data and append it under each sales orders and its items, the image above clarify the data in the internal table that's passed to ALV to be displayed ( no problem with duplication), when tha sales ordes have to line items I want to pick the second one to fetch data with vblen and posnr and append the new lines below it, &lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2017 00:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pick-specific-record-from-internal-table/m-p/322767#M4920</guid>
      <dc:creator>former_member329853</dc:creator>
      <dc:date>2017-01-21T00:26:04Z</dc:date>
    </item>
  </channel>
</rss>

