<?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: Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4401524#M1046233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;u need to fetch data by clubbing both the table. use for all entries or inner join, than only u will get proper data.&lt;/P&gt;&lt;P&gt;i am sending my sample code check it and&lt;/P&gt;&lt;P&gt;try to code like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: vbrk.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;types: begin of gs_vbrk,&lt;/P&gt;&lt;P&gt;       vbeln TYPE vbrk-vbeln,&lt;/P&gt;&lt;P&gt;       waerk TYPE vbrk-waerk,&lt;/P&gt;&lt;P&gt;       fkdat TYPE vbrk-fkdat,&lt;/P&gt;&lt;P&gt;       kunag TYPE vbrk-kunag,&lt;/P&gt;&lt;P&gt;       end of gs_vbrk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_vbrk type standard table of gs_vbrk,&lt;/P&gt;&lt;P&gt;      wa_vbrk type gs_vbrk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of gs_vbrp,&lt;/P&gt;&lt;P&gt;       VBELN type vbrp-VBELN,  "sales order&lt;/P&gt;&lt;P&gt;       MATNR type vbrp-MATNR,  "material no&lt;/P&gt;&lt;P&gt;       ARKTX type vbrp-ARKTX,  "material description&lt;/P&gt;&lt;P&gt;       ntgew type vbrp-ntgew,  "quantity&lt;/P&gt;&lt;P&gt;       gewei type vbrp-gewei,  "quantity unit&lt;/P&gt;&lt;P&gt;       netwr type vbrp-netwr,  "currency&lt;/P&gt;&lt;P&gt;       WERKS type vbrp-WERKS,  "plant&lt;/P&gt;&lt;P&gt;       end of gs_vbrp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_vbrp type standard table of gs_vbrp,&lt;/P&gt;&lt;P&gt;      wa_vbrp type gs_vbrp.&lt;/P&gt;&lt;P&gt;****************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of gs_final0,&lt;/P&gt;&lt;P&gt;       vbeln TYPE vbrk-vbeln,&lt;/P&gt;&lt;P&gt;       waerk TYPE vbrk-waerk,&lt;/P&gt;&lt;P&gt;       fkdat TYPE vbrk-fkdat,&lt;/P&gt;&lt;P&gt;       kunag TYPE vbrk-kunag,&lt;/P&gt;&lt;P&gt;       MATNR type vbrp-MATNR,  "material no&lt;/P&gt;&lt;P&gt;       ARKTX type vbrp-ARKTX,  "material description&lt;/P&gt;&lt;P&gt;       ntgew type vbrp-ntgew,  "quantity&lt;/P&gt;&lt;P&gt;       gewei type vbrp-gewei,  "quantity unit&lt;/P&gt;&lt;P&gt;       netwr type vbrp-netwr,  "currency&lt;/P&gt;&lt;P&gt;       WERKS type vbrp-WERKS,  "plant&lt;/P&gt;&lt;P&gt;       end of gs_final0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_final0 type standard table of gs_final0,&lt;/P&gt;&lt;P&gt;      wa_final0 type gs_final0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;select-options: s_vbeln for vbrk-vbeln.&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln&lt;/P&gt;&lt;P&gt;       waerk&lt;/P&gt;&lt;P&gt;       fkdat&lt;/P&gt;&lt;P&gt;       kunag from vbrk into table it_vbrk where vbeln in s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select VBELN&lt;/P&gt;&lt;P&gt;       MATNR&lt;/P&gt;&lt;P&gt;       ARKTX&lt;/P&gt;&lt;P&gt;       ntgew&lt;/P&gt;&lt;P&gt;       gewei&lt;/P&gt;&lt;P&gt;       netwr&lt;/P&gt;&lt;P&gt;       WERKS from vbrp into table it_vbrp for all entries in it_vbrk where vbeln eq it_vbrk-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_vbrk into wa_vbrk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move wa_vbrk-vbeln to wa_final0-vbeln.&lt;/P&gt;&lt;P&gt;move wa_vbrk-waerk to wa_final0-waerk.&lt;/P&gt;&lt;P&gt;move wa_vbrk-fkdat to wa_final0-fkdat.&lt;/P&gt;&lt;P&gt;move wa_vbrk-kunag to wa_final0-kunag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_vbrp into wa_vbrp with key wa_vbrk-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move wa_vbrp-MATNR to wa_final0-MATNR.&lt;/P&gt;&lt;P&gt;move wa_vbrp-ARKTX to wa_final0-ARKTX.&lt;/P&gt;&lt;P&gt;move wa_vbrp-ntgew to wa_final0-ntgew.&lt;/P&gt;&lt;P&gt;move wa_vbrp-gewei to wa_final0-gewei.&lt;/P&gt;&lt;P&gt;move wa_vbrp-netwr to wa_final0-netwr.&lt;/P&gt;&lt;P&gt;move wa_vbrp-WERKS to wa_final0-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_final0 to it_final0.&lt;/P&gt;&lt;P&gt;clear wa_final0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Sep 2008 12:17:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-02T12:17:06Z</dc:date>
    <item>
      <title>Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4401520#M1046229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my requirement I have fetched pspnr from prps table and have placed in a internal table in the same way fetched projn and placed in another internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have to combine both the internal table into a single table so used move codn&lt;/P&gt;&lt;P&gt;Move a to c&lt;/P&gt;&lt;P&gt;Move b to c &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this codn though the values are present in a and not b the values are getting overwritten and the table c doesnu2019t have any value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to code this part&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 11:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4401520#M1046229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T11:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4401521#M1046230</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;if all 3 tables have the same structure:&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;itab1&amp;gt; TO &amp;lt;itab3&amp;gt;.&lt;/P&gt;&lt;P&gt;APPEND LINES OF &amp;lt;itab2&amp;gt; TO &amp;lt;itab3&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if they have different structure:&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;itab1&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;itab3-field&amp;gt; = &amp;lt;itab1-field&amp;gt;.&lt;/P&gt;&lt;P&gt;READ TABLE &amp;lt;itab2&amp;gt; INTO... WITH KEY .....&lt;/P&gt;&lt;P&gt;&amp;lt;itab3-field&amp;gt; = &amp;lt;itab2-field&amp;gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 11:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4401521#M1046230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T11:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4401522#M1046231</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;loop at itab1.&lt;/P&gt;&lt;P&gt;    itab3 = itab1.&lt;/P&gt;&lt;P&gt;    append itab3.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;loop at itab2.&lt;/P&gt;&lt;P&gt;     itab3 = itab2.&lt;/P&gt;&lt;P&gt;    append itab3.&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;Regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Harish Kumar on Sep 2, 2008 5:52 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 12:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4401522#M1046231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T12:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4401523#M1046232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Creat A internal table and fetch data from PRPS, &lt;/P&gt;&lt;P&gt;Create C internal Table and fetch data PROJN from second table for all interies in A internal table. &lt;/P&gt;&lt;P&gt;This way u can get all the records from both tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN on both tables from where u r getting data of PSPNR and PROJN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 12:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4401523#M1046232</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2008-09-02T12:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4401524#M1046233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;u need to fetch data by clubbing both the table. use for all entries or inner join, than only u will get proper data.&lt;/P&gt;&lt;P&gt;i am sending my sample code check it and&lt;/P&gt;&lt;P&gt;try to code like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: vbrk.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;types: begin of gs_vbrk,&lt;/P&gt;&lt;P&gt;       vbeln TYPE vbrk-vbeln,&lt;/P&gt;&lt;P&gt;       waerk TYPE vbrk-waerk,&lt;/P&gt;&lt;P&gt;       fkdat TYPE vbrk-fkdat,&lt;/P&gt;&lt;P&gt;       kunag TYPE vbrk-kunag,&lt;/P&gt;&lt;P&gt;       end of gs_vbrk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_vbrk type standard table of gs_vbrk,&lt;/P&gt;&lt;P&gt;      wa_vbrk type gs_vbrk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of gs_vbrp,&lt;/P&gt;&lt;P&gt;       VBELN type vbrp-VBELN,  "sales order&lt;/P&gt;&lt;P&gt;       MATNR type vbrp-MATNR,  "material no&lt;/P&gt;&lt;P&gt;       ARKTX type vbrp-ARKTX,  "material description&lt;/P&gt;&lt;P&gt;       ntgew type vbrp-ntgew,  "quantity&lt;/P&gt;&lt;P&gt;       gewei type vbrp-gewei,  "quantity unit&lt;/P&gt;&lt;P&gt;       netwr type vbrp-netwr,  "currency&lt;/P&gt;&lt;P&gt;       WERKS type vbrp-WERKS,  "plant&lt;/P&gt;&lt;P&gt;       end of gs_vbrp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_vbrp type standard table of gs_vbrp,&lt;/P&gt;&lt;P&gt;      wa_vbrp type gs_vbrp.&lt;/P&gt;&lt;P&gt;****************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of gs_final0,&lt;/P&gt;&lt;P&gt;       vbeln TYPE vbrk-vbeln,&lt;/P&gt;&lt;P&gt;       waerk TYPE vbrk-waerk,&lt;/P&gt;&lt;P&gt;       fkdat TYPE vbrk-fkdat,&lt;/P&gt;&lt;P&gt;       kunag TYPE vbrk-kunag,&lt;/P&gt;&lt;P&gt;       MATNR type vbrp-MATNR,  "material no&lt;/P&gt;&lt;P&gt;       ARKTX type vbrp-ARKTX,  "material description&lt;/P&gt;&lt;P&gt;       ntgew type vbrp-ntgew,  "quantity&lt;/P&gt;&lt;P&gt;       gewei type vbrp-gewei,  "quantity unit&lt;/P&gt;&lt;P&gt;       netwr type vbrp-netwr,  "currency&lt;/P&gt;&lt;P&gt;       WERKS type vbrp-WERKS,  "plant&lt;/P&gt;&lt;P&gt;       end of gs_final0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_final0 type standard table of gs_final0,&lt;/P&gt;&lt;P&gt;      wa_final0 type gs_final0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;select-options: s_vbeln for vbrk-vbeln.&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln&lt;/P&gt;&lt;P&gt;       waerk&lt;/P&gt;&lt;P&gt;       fkdat&lt;/P&gt;&lt;P&gt;       kunag from vbrk into table it_vbrk where vbeln in s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select VBELN&lt;/P&gt;&lt;P&gt;       MATNR&lt;/P&gt;&lt;P&gt;       ARKTX&lt;/P&gt;&lt;P&gt;       ntgew&lt;/P&gt;&lt;P&gt;       gewei&lt;/P&gt;&lt;P&gt;       netwr&lt;/P&gt;&lt;P&gt;       WERKS from vbrp into table it_vbrp for all entries in it_vbrk where vbeln eq it_vbrk-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_vbrk into wa_vbrk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move wa_vbrk-vbeln to wa_final0-vbeln.&lt;/P&gt;&lt;P&gt;move wa_vbrk-waerk to wa_final0-waerk.&lt;/P&gt;&lt;P&gt;move wa_vbrk-fkdat to wa_final0-fkdat.&lt;/P&gt;&lt;P&gt;move wa_vbrk-kunag to wa_final0-kunag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_vbrp into wa_vbrp with key wa_vbrk-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move wa_vbrp-MATNR to wa_final0-MATNR.&lt;/P&gt;&lt;P&gt;move wa_vbrp-ARKTX to wa_final0-ARKTX.&lt;/P&gt;&lt;P&gt;move wa_vbrp-ntgew to wa_final0-ntgew.&lt;/P&gt;&lt;P&gt;move wa_vbrp-gewei to wa_final0-gewei.&lt;/P&gt;&lt;P&gt;move wa_vbrp-netwr to wa_final0-netwr.&lt;/P&gt;&lt;P&gt;move wa_vbrp-WERKS to wa_final0-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_final0 to it_final0.&lt;/P&gt;&lt;P&gt;clear wa_final0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 12:17:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4401524#M1046233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T12:17:06Z</dc:date>
    </item>
  </channel>
</rss>

