<?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 Populating Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table/m-p/1919882#M382262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have four internal tables ITAB, KTAB, LTAB,FTAB&lt;/P&gt;&lt;P&gt;Fields in the first internal table ITAB&lt;/P&gt;&lt;P&gt;      VBELN LIKE VBAK-VBELN&lt;/P&gt;&lt;P&gt;      MATNR LIKE VBAP-MATNR&lt;/P&gt;&lt;P&gt;      KWMENG LIKE VBAP-KWMENG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fields in the second internal table KTAB&lt;/P&gt;&lt;P&gt;     D_ VBELN LIKE LIPS-VBELN&lt;/P&gt;&lt;P&gt;      LFIMG LIKE LIPS-LFIMG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fields in the third internal table LTAB&lt;/P&gt;&lt;P&gt;     S_ VBELN LIKE VBFA-VBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fields in the final internal table FTAB&lt;/P&gt;&lt;P&gt;      VBELN LIKE VBAK-VBELN&lt;/P&gt;&lt;P&gt;      MATNR LIKE VBAP-MATNR&lt;/P&gt;&lt;P&gt;      KWMENG LIKE VBAP-KWMENG&lt;/P&gt;&lt;P&gt;      D_VBELN LIKE LIPS-VBELN&lt;/P&gt;&lt;P&gt;      LFIMG LIKE LIPS-LFIMG&lt;/P&gt;&lt;P&gt;      S_VBELN LIKE VBFA-VBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB, KTAB, LTAB are populated with different select statements,&lt;/P&gt;&lt;P&gt;now, i want to move those values into FTAB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please,give me a hint,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;kc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2007 11:45:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-01T11:45:02Z</dc:date>
    <item>
      <title>Populating Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table/m-p/1919882#M382262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have four internal tables ITAB, KTAB, LTAB,FTAB&lt;/P&gt;&lt;P&gt;Fields in the first internal table ITAB&lt;/P&gt;&lt;P&gt;      VBELN LIKE VBAK-VBELN&lt;/P&gt;&lt;P&gt;      MATNR LIKE VBAP-MATNR&lt;/P&gt;&lt;P&gt;      KWMENG LIKE VBAP-KWMENG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fields in the second internal table KTAB&lt;/P&gt;&lt;P&gt;     D_ VBELN LIKE LIPS-VBELN&lt;/P&gt;&lt;P&gt;      LFIMG LIKE LIPS-LFIMG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fields in the third internal table LTAB&lt;/P&gt;&lt;P&gt;     S_ VBELN LIKE VBFA-VBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fields in the final internal table FTAB&lt;/P&gt;&lt;P&gt;      VBELN LIKE VBAK-VBELN&lt;/P&gt;&lt;P&gt;      MATNR LIKE VBAP-MATNR&lt;/P&gt;&lt;P&gt;      KWMENG LIKE VBAP-KWMENG&lt;/P&gt;&lt;P&gt;      D_VBELN LIKE LIPS-VBELN&lt;/P&gt;&lt;P&gt;      LFIMG LIKE LIPS-LFIMG&lt;/P&gt;&lt;P&gt;      S_VBELN LIKE VBFA-VBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB, KTAB, LTAB are populated with different select statements,&lt;/P&gt;&lt;P&gt;now, i want to move those values into FTAB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please,give me a hint,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;kc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 11:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table/m-p/1919882#M382262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T11:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table/m-p/1919883#M382263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.
   move corresponding itab to ftab.

   read table ktab with key d_vbeln eq itab-vbeln
   if sy-subrc eq 0.
     move corresponding ktab to ftab.
   endif.

   read table ltab with key s_vbeln eq itab-vbeln
   if sy-subrc eq 0.
     move corresponding ltab to ftab.
   endif.

   append ftab.
   clear ftab.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 11:52:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table/m-p/1919883#M382263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T11:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table/m-p/1919884#M382264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on your requirement.&lt;/P&gt;&lt;P&gt;If you need data from these tables based on conditions, etc, you have to loop at the first itab and then read the other tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab.
  read table ktab with key d_vbeln = itab-vbeln binary search.
    if sy-subrc eq 0.
*--   populate ftab with corresponding fields. e.g
      ftab-lfimg = ktab-lfimg.
    endif.

   read table ltab with key d_vbeln = itab-vbeln binary search.
    if sy-subrc eq 0.
*--  populate ftab with corresponding fields. e.g
    endif.
  append ftab.
  clear ftab.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;remember to sort your tables since binary search is used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 11:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table/m-p/1919884#M382264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T11:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table/m-p/1919885#M382265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create workareas of types of internal tables.&lt;/P&gt;&lt;P&gt;then use&lt;/P&gt;&lt;P&gt;move wa1-vbeln to wa4-vbeln.(wa1 type itab,wa4 type ftab)&lt;/P&gt;&lt;P&gt;move wa2-lfimg to wa4-lfimg.(wa2 type ktab)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;append wa4 to ftab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward points if it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        abapuser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 11:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table/m-p/1919885#M382265</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-03-01T11:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table/m-p/1919886#M382266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that &lt;/P&gt;&lt;P&gt;VBAK-VBELN is Sales order &lt;/P&gt;&lt;P&gt;LIKP-VBELN IS DELIVERY NUMBER .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       &amp;lt;b&amp;gt;  lips-vgbel = vbap-vbeln&lt;/P&gt;&lt;P&gt; and     lips-vgpos = vbap-posnr&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once u have this relation in place u can do teh &lt;/P&gt;&lt;P&gt;read in the loop and place the fields .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont do the read without the relationship . &lt;/P&gt;&lt;P&gt;understand the key relation ship between sales order and delivery number and then move .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2007 11:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table/m-p/1919886#M382266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-01T11:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table/m-p/1919887#M382267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi chandra,&lt;/P&gt;&lt;P&gt;i have tried with your hint,&lt;/P&gt;&lt;P&gt;FTAB is populating with only ITAB, first internal table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any other way,please,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 05:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-internal-table/m-p/1919887#M382267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T05:02:27Z</dc:date>
    </item>
  </channel>
</rss>

