<?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: appending two internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-two-internal-tables/m-p/3195546#M761473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select vbeln vkorg vtweg from vbak into table it&lt;/P&gt;&lt;P&gt;where vbeln in s_order and&lt;/P&gt;&lt;P&gt;          vkorg in s_div.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln lfstk from vbuk &lt;/P&gt;&lt;P&gt;          into table it1 &lt;/P&gt;&lt;P&gt;          for all entries in it&lt;/P&gt;&lt;P&gt;          where vbeln = it-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;or &lt;/P&gt;&lt;P&gt;&amp;gt;select vbeln lfstk from vbuk &lt;/P&gt;&lt;P&gt;&amp;gt;          into corresponding fields of table it &lt;/P&gt;&lt;P&gt;&amp;gt;          for all entries in it&lt;/P&gt;&lt;P&gt;&amp;gt;          where vbeln = it-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      read table it1 with key vbeln = it-vbeln.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;   move to output table.&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;hope this should help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Dec 2007 16:59:06 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2007-12-24T16:59:06Z</dc:date>
    <item>
      <title>appending two internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-two-internal-tables/m-p/3195541#M761468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello friends,&lt;/P&gt;&lt;P&gt;I have two internal tables of different structure.&lt;/P&gt;&lt;P&gt;i have filled those two internal tables using join statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But one field is common in both the tables, when i try to append both tables into another new internal table.&lt;/P&gt;&lt;P&gt;i cant get the value for the 2nd tables field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX.&lt;/P&gt;&lt;P&gt;vbeln is common in vbuk, vbup, vbap, vbak, likp, lips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but its sale order number in vbak, vbap.&lt;/P&gt;&lt;P&gt;delivery document in likp,lips.&lt;/P&gt;&lt;P&gt;vbup has both sales order and delivery in the vbeln field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, i made a join to between vbak, vbup and lips to see the goods movement status in vbup.&lt;/P&gt;&lt;P&gt;for that the vbeln should be delievery number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in other table, i have added vbup and vbak and vbep to get the delievery status.&lt;/P&gt;&lt;P&gt;for that the vbeln should be sale order no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i append both the tables into the third internal table that has the structure of both internal tables.&lt;/P&gt;&lt;P&gt;i could not get the vbeln of  the second table(sale order no) in the third table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me guys.&lt;/P&gt;&lt;P&gt;rewards for helpful solutions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 16:13:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-two-internal-tables/m-p/3195541#M761468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-21T16:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: appending two internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-two-internal-tables/m-p/3195542#M761469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at i_tab1&lt;/P&gt;&lt;P&gt;  v_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;  read table i_tab3 with key &amp;lt;key fields of i_tab1&amp;gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    move corresponding fields i_tab1 to i_tab3.&lt;/P&gt;&lt;P&gt;    modify i_tab3 index v_tabix..&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    move corresponding fields i_tab1 to i_tab3.&lt;/P&gt;&lt;P&gt;    append i_tab3.    &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;loop at i_tab2&lt;/P&gt;&lt;P&gt;  v_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;  read table i_tab3 with key &amp;lt;key fields of i_tab2&amp;gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    move corresponding fields i_tab2 to i_tab3.&lt;/P&gt;&lt;P&gt;    modify i_tab3 index v_tabix..&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    move corresponding fields i_tab2 to i_tab3.&lt;/P&gt;&lt;P&gt;    append i_tab3.    &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;code of ars.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 16:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-two-internal-tables/m-p/3195542#M761469</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2007-12-21T16:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: appending two internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-two-internal-tables/m-p/3195543#M761470</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;Please check my reply in your previous thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 16:16:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-two-internal-tables/m-p/3195543#M761470</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-12-21T16:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: appending two internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-two-internal-tables/m-p/3195544#M761471</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;types:&lt;/P&gt;&lt;P&gt;begin of str,&lt;/P&gt;&lt;P&gt;vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;vkorg like vbak-vkorg,&lt;/P&gt;&lt;P&gt;vtweg like vbak-vtweg,&lt;/P&gt;&lt;P&gt;end of str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:&lt;/P&gt;&lt;P&gt;begin of st1,&lt;/P&gt;&lt;P&gt;lfstk like vbuk-vbeln,&lt;/P&gt;&lt;P&gt;end of st1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:&lt;/P&gt;&lt;P&gt;begin of st2,&lt;/P&gt;&lt;P&gt;vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;vkorg like vbak-vkorg,&lt;/P&gt;&lt;P&gt;vtweg like vbak-vtweg,&lt;/P&gt;&lt;P&gt;lfstk like vbuk-lfstk,&lt;/P&gt;&lt;P&gt;end of st2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen: s_order for vbak-vbeln,&lt;/P&gt;&lt;P&gt;                          s_div for vbak-vtweg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it type table of st with header line,&lt;/P&gt;&lt;P&gt;        it1 type table of st1 with header line,&lt;/P&gt;&lt;P&gt;        it2 type table of st2 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln vkorg vtweg from vbak into table it &lt;/P&gt;&lt;P&gt;where         vbeln in s_order and&lt;/P&gt;&lt;P&gt;                 vkorg in s_div.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lfstk from vbuk into table it1 for all entries in it&lt;/P&gt;&lt;P&gt;      where vbeln = it-vbeln.&lt;/P&gt;&lt;P&gt;it2[] = it[].&lt;/P&gt;&lt;P&gt;append it1-lfstk into it2[].&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;move-corresponding it1 to it2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" when i execute this code with a grid or list display, i m not able to get the values or entries for the 2nd table it1.&lt;/P&gt;&lt;P&gt;the it2 has the lfstk cloumn blank in the final display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me for  a remedy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards for useful suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 16:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-two-internal-tables/m-p/3195544#M761471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T16:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: appending two internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-two-internal-tables/m-p/3195545#M761472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make the following changes in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:&lt;/P&gt;&lt;P&gt;begin of st1,&lt;/P&gt;&lt;P&gt;************lfstk like vbuk-vbeln,&lt;/P&gt;&lt;P&gt;vbeln like vbuk-vbeln,&lt;/P&gt;&lt;P&gt;lfstk like vbuk-lfstk,&lt;/P&gt;&lt;P&gt;end of st1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********it2[ ] = it[ ].&lt;/P&gt;&lt;P&gt;*********append it1-lfstk into it2[].&lt;/P&gt;&lt;P&gt;*********or&lt;/P&gt;&lt;P&gt;*********move-corresponding it1 to it2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it.&lt;/P&gt;&lt;P&gt; read table it1 with key vbeln = it-vbeln.&lt;/P&gt;&lt;P&gt; move-corresponding it to it2.&lt;/P&gt;&lt;P&gt; it2-lfstk = it1-lfstk.&lt;/P&gt;&lt;P&gt; append it2.&lt;/P&gt;&lt;P&gt; clear it2.&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;Reward if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ANUPAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 16:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-two-internal-tables/m-p/3195545#M761472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T16:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: appending two internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-two-internal-tables/m-p/3195546#M761473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select vbeln vkorg vtweg from vbak into table it&lt;/P&gt;&lt;P&gt;where vbeln in s_order and&lt;/P&gt;&lt;P&gt;          vkorg in s_div.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln lfstk from vbuk &lt;/P&gt;&lt;P&gt;          into table it1 &lt;/P&gt;&lt;P&gt;          for all entries in it&lt;/P&gt;&lt;P&gt;          where vbeln = it-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;or &lt;/P&gt;&lt;P&gt;&amp;gt;select vbeln lfstk from vbuk &lt;/P&gt;&lt;P&gt;&amp;gt;          into corresponding fields of table it &lt;/P&gt;&lt;P&gt;&amp;gt;          for all entries in it&lt;/P&gt;&lt;P&gt;&amp;gt;          where vbeln = it-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      read table it1 with key vbeln = it-vbeln.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;   move to output table.&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;hope this should help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 16:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-two-internal-tables/m-p/3195546#M761473</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2007-12-24T16:59:06Z</dc:date>
    </item>
  </channel>
</rss>

