<?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 tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485809#M226738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx all of you.&lt;/P&gt;&lt;P&gt;Vivek, it helped me a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know how can I do if i have one more internal table, meaning if i have to move 3 internal tables data to a 4th internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the internal tables are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st:&lt;/P&gt;&lt;P&gt;data: begin of i_data occurs 0,&lt;/P&gt;&lt;P&gt;bstnk like vbak-bstnk,&lt;/P&gt;&lt;P&gt;vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;end of i_Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd:&lt;/P&gt;&lt;P&gt;data: begin of i_data2 occurs 0,&lt;/P&gt;&lt;P&gt;vbeln like vbrk-vbeln&lt;/P&gt;&lt;P&gt;fkdat like vbrk-fkdat,&lt;/P&gt;&lt;P&gt;fkimg like vbrp-fkimg,&lt;/P&gt;&lt;P&gt;end of i_data2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd:&lt;/P&gt;&lt;P&gt;data: begin of i_data4 occurs 0,&lt;/P&gt;&lt;P&gt;       vbeln like vbpa-vbeln,&lt;/P&gt;&lt;P&gt;       kunnr like vbpa-kunnr,&lt;/P&gt;&lt;P&gt;      end of i_data4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_data4 occurs 0,&lt;/P&gt;&lt;P&gt;bstnk like vbak-bstnk,&lt;/P&gt;&lt;P&gt;vbeln like vbak-vbeln, &lt;/P&gt;&lt;P&gt;fkdat like vbrk-fkdat,&lt;/P&gt;&lt;P&gt;fkimg like vbrp-fkimg,&lt;/P&gt;&lt;P&gt;kunnr like vbpa-kunnr,&lt;/P&gt;&lt;P&gt;end of i_data4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Aug 2006 18:54:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-30T18:54:31Z</dc:date>
    <item>
      <title>internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485804#M226733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please tell me how can I transfer the data in 2 internal tables to a 3rd internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the 3rd internal table to output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 3 internal tables are like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st:&lt;/P&gt;&lt;P&gt;data: begin of i_data occurs 0,&lt;/P&gt;&lt;P&gt;       bstnk like vbak-bstnk,&lt;/P&gt;&lt;P&gt;       vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;      end of i_Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd:&lt;/P&gt;&lt;P&gt;data: begin of i_data2 occurs 0,&lt;/P&gt;&lt;P&gt;       fkdat like vbrk-fkdat,&lt;/P&gt;&lt;P&gt;       fkimg like vbrp-fkimg,&lt;/P&gt;&lt;P&gt;      end of i_data2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd:&lt;/P&gt;&lt;P&gt;data: begin of i_data3 occurs 0,&lt;/P&gt;&lt;P&gt;       bstnk like vbak-bstnk,&lt;/P&gt;&lt;P&gt;       vbeln like vbak-vbeln,        &lt;/P&gt;&lt;P&gt;       fkdat like vbrk-fkdat,&lt;/P&gt;&lt;P&gt;       fkimg like vbrp-fkimg,&lt;/P&gt;&lt;P&gt;      end of i_data3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 18:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485804#M226733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T18:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485805#M226734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at i_data into work_area1.&lt;/P&gt;&lt;P&gt;   read table i_data2 into work_area2 index sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Move: work_area1-bstnk to work_area3-bstnk,&lt;/P&gt;&lt;P&gt;        work_area1-vbeln to work_area3-vbeln.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Similarly do a move for all the fields.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  append work_area3 to i_data3. &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 18:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485805#M226734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T18:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485806#M226735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lope,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st:&lt;/P&gt;&lt;P&gt;data: begin of i_data occurs 0,&lt;/P&gt;&lt;P&gt;bstnk like vbak-bstnk,&lt;/P&gt;&lt;P&gt;vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;end of i_Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd:&lt;/P&gt;&lt;P&gt;data: begin of i_data2 occurs 0,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;vbeln like vbrk-vbeln&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;fkdat like vbrk-fkdat,&lt;/P&gt;&lt;P&gt;fkimg like vbrp-fkimg,&lt;/P&gt;&lt;P&gt;end of i_data2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd:&lt;/P&gt;&lt;P&gt;data: begin of i_data3 occurs 0,&lt;/P&gt;&lt;P&gt;bstnk like vbak-bstnk,&lt;/P&gt;&lt;P&gt;vbeln like vbak-vbeln, &lt;/P&gt;&lt;P&gt;fkdat like vbrk-fkdat,&lt;/P&gt;&lt;P&gt;fkimg like vbrp-fkimg,&lt;/P&gt;&lt;P&gt;end of i_data3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_data2.&lt;/P&gt;&lt;P&gt;read table i_data1 with key vbeln = i_data2-vbeln.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;move i_data1-bstnk to i_data3-bstnk.&lt;/P&gt;&lt;P&gt;move i_data1-vbeln to i_data3-vbeln.&lt;/P&gt;&lt;P&gt;move i_data2-fkdat to i_data3-fkdat.&lt;/P&gt;&lt;P&gt;move i_data1-fkimg to i_data3-fkimg.&lt;/P&gt;&lt;P&gt;append i_data3.&lt;/P&gt;&lt;P&gt;clear i_data3.&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 helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 18:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485806#M226735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T18:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485807#M226736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without a common field in each table, it'll be pretty difficult to come up with something meaningful. I think the first step will be to include VBELN in i_data2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 18:29:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485807#M226736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T18:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485808#M226737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm never thought about common field, if you have same number of rows in both the tables and your purpose is just to copy the values then what I said works otherwise ignore it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 18:37:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485808#M226737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T18:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485809#M226738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx all of you.&lt;/P&gt;&lt;P&gt;Vivek, it helped me a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know how can I do if i have one more internal table, meaning if i have to move 3 internal tables data to a 4th internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the internal tables are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st:&lt;/P&gt;&lt;P&gt;data: begin of i_data occurs 0,&lt;/P&gt;&lt;P&gt;bstnk like vbak-bstnk,&lt;/P&gt;&lt;P&gt;vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;end of i_Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd:&lt;/P&gt;&lt;P&gt;data: begin of i_data2 occurs 0,&lt;/P&gt;&lt;P&gt;vbeln like vbrk-vbeln&lt;/P&gt;&lt;P&gt;fkdat like vbrk-fkdat,&lt;/P&gt;&lt;P&gt;fkimg like vbrp-fkimg,&lt;/P&gt;&lt;P&gt;end of i_data2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd:&lt;/P&gt;&lt;P&gt;data: begin of i_data4 occurs 0,&lt;/P&gt;&lt;P&gt;       vbeln like vbpa-vbeln,&lt;/P&gt;&lt;P&gt;       kunnr like vbpa-kunnr,&lt;/P&gt;&lt;P&gt;      end of i_data4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_data4 occurs 0,&lt;/P&gt;&lt;P&gt;bstnk like vbak-bstnk,&lt;/P&gt;&lt;P&gt;vbeln like vbak-vbeln, &lt;/P&gt;&lt;P&gt;fkdat like vbrk-fkdat,&lt;/P&gt;&lt;P&gt;fkimg like vbrp-fkimg,&lt;/P&gt;&lt;P&gt;kunnr like vbpa-kunnr,&lt;/P&gt;&lt;P&gt;end of i_data4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 18:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485809#M226738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T18:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485810#M226739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this Lope,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_data2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table i_data1 with key vbeln = i_data2-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;move i_data1-bstnk to i_data4-bstnk.&lt;/P&gt;&lt;P&gt;move i_data1-vbeln to i_data4-vbeln.&lt;/P&gt;&lt;P&gt;move i_data2-fkdat to i_data4-fkdat.&lt;/P&gt;&lt;P&gt;move i_data2-fkimg to i_data4-fkimg.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table i_data3 with key vbeln = i_data2-vbeln.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;move i_data3-kunnr to i_data4-kunnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i_data4 is not initial.&lt;/P&gt;&lt;P&gt;append i_data4.&lt;/P&gt;&lt;P&gt;clear i_data4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&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;Vivek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Award points if helpful and close the thread once it is answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 19:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485810#M226739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T19:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485811#M226740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnx everybody.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2006 20:01:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1485811#M226740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-30T20:01:14Z</dc:date>
    </item>
  </channel>
</rss>

