<?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: populating final itab in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509534#M1423240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; I dont wanna loop it_vbap and get the data ..... any other technique plz...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to. If you want to get all the records, you can't use the READ TABLE sentence, you need to loop. But if what you really mean is that you don't want to loop over the entire internal table, then you should use a sorted table instead of a standard one. You then just use the sentence LOOP AT... WHERE... with the corresponding table key and that's all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nag's solution should also work if you are certain that the records you need to read are just 2 and consecutive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2010 13:31:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-21T13:31:49Z</dc:date>
    <item>
      <title>populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509519#M1423225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have internal table it_actual which has 2 records for every ebeln.......i want to get it final internal table it_final&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT it_final .&lt;/P&gt;&lt;P&gt;            READ TABLE it_actual WITH KEY ebeln = it_final-ebeln.&lt;/P&gt;&lt;P&gt;            it_final-wrbtr = it_actual-wrbtr.&lt;/P&gt;&lt;P&gt;            it_final-beznk = it_actual-beznk.&lt;/P&gt;&lt;P&gt;            it_final-lifnr = it_actual-lifnr.&lt;/P&gt;&lt;P&gt; MODIFY it_final.&lt;/P&gt;&lt;P&gt;           ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get first record twice.i counldnt get 2nd record of it_actual for every ebeln.&lt;/P&gt;&lt;P&gt;any help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 09:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509519#M1423225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T09:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509520#M1423226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;increase key like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT it_final .
READ TABLE it_actual WITH KEY ebeln = it_final-ebeln
                              ebelp =  it_final-ebeln. " add this
it_final-wrbtr = it_actual-wrbtr.
it_final-beznk = it_actual-beznk.
it_final-lifnr = it_actual-lifnr.
MODIFY it_final.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:03:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509520#M1423226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T10:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509521#M1423227</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;Read statement read first line of the record.In read statement add line item. Use within loop&lt;/P&gt;&lt;P&gt;Try the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at it_actual ebeln = it_final-ebeln&lt;/P&gt;&lt;P&gt;it_final-wrbtr = it_actual-wrbtr.&lt;/P&gt;&lt;P&gt;it_final-beznk = it_actual-beznk.&lt;/P&gt;&lt;P&gt;it_final-lifnr = it_actual-lifnr.&lt;/P&gt;&lt;P&gt;MODIFY it_final.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: dharma raj on Jan 21, 2010 3:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509521#M1423227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T10:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509522#M1423228</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;I don't seem to understand what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, READ TABLE returns just one record. If there are multiple records for the same EBELN in the internal table it_actual, then READ on this internal table will always return the first record for that EBELN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509522#M1423228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T10:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509523#M1423229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please debug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509523#M1423229</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-21T10:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509524#M1423230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. Sort it_Actual by ebelen.&lt;/P&gt;&lt;P&gt;2.  and Try this code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

LOOP AT it_final .
READ TABLE it_actual WITH KEY ebeln = it_final-ebeln.
WF_TABIX = SY-TABIX    " Ins
it_final-wrbtr = it_actual-wrbtr.
it_final-beznk = it_actual-beznk.
it_final-lifnr = it_actual-lifnr.
MODIFY it_final.

* Second read
wf_tabix = wf_tabix + 1.
READ TABLE IT_aCTUAL with index = wf_tabix.
* Process your data
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this Helps&lt;/P&gt;&lt;P&gt;Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509524#M1423230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T10:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509525#M1423231</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;In you it_actual internal table add one more filed as flag char (1), then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify your code as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_final .&lt;/P&gt;&lt;P&gt;READ TABLE it_actual WITH KEY ebeln = it_final-ebeln flag ne ' '.&lt;/P&gt;&lt;P&gt;it_actual-flag = 'Y'.&lt;/P&gt;&lt;P&gt;modify it_actual index sy-tabix transporting flag. &lt;/P&gt;&lt;P&gt;it_final-wrbtr = it_actual-wrbtr.&lt;/P&gt;&lt;P&gt;it_final-beznk = it_actual-beznk.&lt;/P&gt;&lt;P&gt;it_final-lifnr = it_actual-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY it_final.&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;This will Help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509525#M1423231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T10:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509526#M1423232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Try the below code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_actual .&lt;/P&gt;&lt;P&gt;READ TABLE it_final WITH KEY ebeln = it_actual-ebeln.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;  it_final-wrbtr = it_actual-wrbtr.&lt;/P&gt;&lt;P&gt;  it_final-beznk = it_actual-beznk.&lt;/P&gt;&lt;P&gt;  it_final-lifnr = it_actual-lifnr.&lt;/P&gt;&lt;P&gt;MODIFY it_final.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i have a question, Do u want the it_final internal table to have all the records as of it_actual or just modify the existing records in it_final with corresponding values from it_actual records.&lt;/P&gt;&lt;P&gt;The above code will modify the existing records from it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinakar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509526#M1423232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T10:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509527#M1423233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:BEGIN OF it_vbak OCCURS 0, 
     vbelnLIKE vbak-vbeln,
     bukrs_vf LIKE vbak-bukrs_vf,data,
     END OF it_vbak.

DATA: BEGIN OF it_vbap OCCURS 0,
       vbeln TYPE vbap-vbeln,  "SALES ORDER NUMBER
       posnr TYPE vbap-posnr,
        END OF it_vbap.

 DATA:BEGIN OF it_final OCCURS 0,
             vbeln LIKE vbak-vbeln,
             bukrs_vf LIKE vbak-bukrs_vf,data,
             posnr TYPE vbap-posnr,
          END OF it_final.


SELECT-OPTIONS:s_vbeln FOR it_vbak-vbeln.
            

SELECT vbeln bukrs_vf vkorg FROM vbak INTO TABLE it_vbak WHERE vbeln IN s_vbeln.

  IF NOT it_vbak[] IS INITIAL.
    SELECT vbeln posnr FROM vbap INTO TABLE it_vbap FOR ALL ENTRIES IN it_vbak WHERE vbeln = it_vbak-vbeln .
ENDIF.
       
  LOOP AT it_vbak.
    it_final-vbeln = it_vbak-vbeln.
    it_final-bukrs_vf = it_vbak-bukrs_vf.
    APPEND it_final.
    ENDLOOP.


    loop at it_final.
      read table it_vbap with key vbeln = it_final-vbeln.
      it_final-posnr = it_vbap-posnr.
      modify it_final.
    endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i get posnr which is 10 always...how to get 10 20 30 40 (posnr )......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:48:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509527#M1423233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T10:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509528#M1423234</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 need to apply the same logic again:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    loop at it_final.
      loop at it_vbap where vbeln = it_final-vbeln.
      it_final-posnr = it_vbap-posnr.
      modify it_final.
    endloop.
    endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509528#M1423234</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2010-01-21T10:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509529#M1423235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The same logic applies here, first you have to loop into vbap able and read the vbak data. see below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_vbap.&lt;/P&gt;&lt;P&gt;   read table it_vbak with key vbeln = it_vbap-vbeln.&lt;/P&gt;&lt;P&gt;    if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;      it_final-vbeln = it_vbak-vbeln.&lt;/P&gt;&lt;P&gt;      it_final-bukrs_vf = it_vbak-bukrs_vf.&lt;/P&gt;&lt;P&gt;      it_final-posnr = it_vbap-posnr.&lt;/P&gt;&lt;P&gt;    APPEND it_final.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinakar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 10:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509529#M1423235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T10:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509530#M1423236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont wanna loop it_vbap and get the data ..... any other technique plz...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 11:03:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509530#M1423236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T11:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509531#M1423237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi dinakar ...&lt;/P&gt;&lt;P&gt;i dont wanna modify ..i want all the records of it_actual.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 11:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509531#M1423237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T11:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509532#M1423238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This logic doesn't modify but appends all the records to final internal table.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinakar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 12:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509532#M1423238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T12:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509533#M1423239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Please cehk the code&lt;/P&gt;&lt;P&gt;  LOOP AT it_vbak.&lt;/P&gt;&lt;P&gt;	loop at it_vbap where vebln = it_vbak-vbeln.&lt;/P&gt;&lt;P&gt;	    it_final-vbeln = it_vbak-vbeln.&lt;/P&gt;&lt;P&gt;	    it_final-bukrs_vf = it_vbak-bukrs_vf.&lt;/P&gt;&lt;P&gt;	    it_final-posnr = it_vbap-posnr.&lt;/P&gt;&lt;P&gt;	    APPEND it_final.&lt;/P&gt;&lt;P&gt;	endloop.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;debug the code and if u r getting posnr always 10 means check te table entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 12:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509533#M1423239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T12:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509534#M1423240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; I dont wanna loop it_vbap and get the data ..... any other technique plz...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to. If you want to get all the records, you can't use the READ TABLE sentence, you need to loop. But if what you really mean is that you don't want to loop over the entire internal table, then you should use a sorted table instead of a standard one. You then just use the sentence LOOP AT... WHERE... with the corresponding table key and that's all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nag's solution should also work if you are certain that the records you need to read are just 2 and consecutive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 13:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509534#M1423240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T13:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509535#M1423241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is preventing you to loop at vbap?&lt;/P&gt;&lt;P&gt;this is the best way of coding. else you are ending up with two loop statements which can hamper the performance. and in both the loops, you are building ur final itab only. then why not do it all at once by looping at vbap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 14:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509535#M1423241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T14:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509536#M1423242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this Before the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT it_actual BY ebeln, ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND if you want only the Order Num. You could do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT RECORDS FROM it_actual COMPARING ebeln.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 17:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509536#M1423242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T17:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: populating final itab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509537#M1423243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to everyone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 14:38:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-itab/m-p/6509537#M1423243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T14:38:07Z</dc:date>
    </item>
  </channel>
</rss>

