<?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: tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340611#M515806</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 try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;   LOOP AT ITAB2 WHERE F1 = ITAB1-F1&lt;/P&gt;&lt;P&gt;                   AND F2 = ITAB1-F2.     &lt;/P&gt;&lt;P&gt;     MOVE-CORRESPONDING ITAB1 TO ITAB3.&lt;/P&gt;&lt;P&gt;     MOVE-CORRESPONDING ITAB2 TO ITAB3.&lt;/P&gt;&lt;P&gt;     APPEND ITAB3.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2007 09:00:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-08T09:00:31Z</dc:date>
    <item>
      <title>tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340607#M515802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;how to move 3 internal table fields to one internal table&lt;/P&gt;&lt;P&gt;points for sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 08:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340607#M515802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T08:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340608#M515803</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;Create three internal tables &amp;amp; then create one internal table refering the fields of that three internal tables with the same name as that of those three internal tables.Then move the internal table values using &amp;lt;b&amp;gt;MOVE-CORRESPONDING &amp;lt;STR1&amp;gt; TO&amp;lt;STR2&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First move that Interanl Table value to that Fourth Table.Then by using conditions move the Second &amp;amp; Third Internal Table Values to the fourth internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 08:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340608#M515803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T08:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340609#M515804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prashanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a 4th internal table with all the fields that are in int1,int2,int3 then move corresponding fields to int 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340609#M515804</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-06-08T09:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340610#M515805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, youcan loop at one internal table and read other two table and can append data to one internal table.&lt;/P&gt;&lt;P&gt;see the following code.&lt;/P&gt;&lt;P&gt;select ebeln belnr from ekbe into table itab2 where ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT lifnr belnr xblnr FROM rbkp INTO TABLE itab FOR ALL ENTRIES IN&lt;/P&gt;&lt;P&gt;itab2 WHERE&lt;/P&gt;&lt;P&gt;belnr = itab2-belnr.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT name1 FROM lfa1 INTO TABLE itab1 FOR ALL ENTRIES IN itab WHERE&lt;/P&gt;&lt;P&gt;lifnr = itab-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab2 into wtab2.&lt;/P&gt;&lt;P&gt;wheader-ebeln = wtab2-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab into wtab &lt;/P&gt;&lt;P&gt;with key belnr = wtab2-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wheader-lifnr = wtab-lifnr.&lt;/P&gt;&lt;P&gt;wheader-belnr = wtab-belnr.&lt;/P&gt;&lt;P&gt;wheader-xblnr = wtab-xblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab1 into wtab1&lt;/P&gt;&lt;P&gt;with key lifnr = iheader-lifnr.&lt;/P&gt;&lt;P&gt;wheader-name1 = wtab1-name1.&lt;/P&gt;&lt;P&gt;append wheader to iheader.&lt;/P&gt;&lt;P&gt;end loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here we are moving data of itab2 , itab, itab1 into iheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ruchika&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewadrs if useful.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340610#M515805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T09:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340611#M515806</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 try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;   LOOP AT ITAB2 WHERE F1 = ITAB1-F1&lt;/P&gt;&lt;P&gt;                   AND F2 = ITAB1-F2.     &lt;/P&gt;&lt;P&gt;     MOVE-CORRESPONDING ITAB1 TO ITAB3.&lt;/P&gt;&lt;P&gt;     MOVE-CORRESPONDING ITAB2 TO ITAB3.&lt;/P&gt;&lt;P&gt;     APPEND ITAB3.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340611#M515806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T09:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340612#M515807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;loop at one table into workarea.&lt;/P&gt;&lt;P&gt; move corresponding fields of that table work area to final table workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read other two tables and content to final table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append final table work area to final table.&lt;/P&gt;&lt;P&gt;clear all work areas.&lt;/P&gt;&lt;P&gt;wndloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:02:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340612#M515807</guid>
      <dc:creator>S0025444845</dc:creator>
      <dc:date>2007-06-08T09:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340613#M515808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab1 occurs 0. "itab with work area.&lt;/P&gt;&lt;P&gt;key_field1 like ztable1-key_field1,&lt;/P&gt;&lt;P&gt;field1 like ztable1-field1,&lt;/P&gt;&lt;P&gt;field2 like ztable1-field2,&lt;/P&gt;&lt;P&gt;endof itab1. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data : begin of itab2 occurs 0. "itab with work area.&lt;/P&gt;&lt;P&gt;key_field2 like ztable2-key_field2,&lt;/P&gt;&lt;P&gt;field3 like ztable2-field3,&lt;/P&gt;&lt;P&gt;field4 like ztable2-field4,&lt;/P&gt;&lt;P&gt;endof itab2. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data : begin of itab_final occurs 0.&lt;/P&gt;&lt;P&gt;key_field1 like ztable1-key_field1,&lt;/P&gt;&lt;P&gt;field1 like ztable1-field1,&lt;/P&gt;&lt;P&gt;field2 like ztable1-field2,&lt;/P&gt;&lt;P&gt;field3 like ztable2-field3,&lt;/P&gt;&lt;P&gt;field4 like ztable2-field4,&lt;/P&gt;&lt;P&gt;endof itab_final. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;put the date final(merged) internal table&lt;/P&gt;&lt;P&gt;*****************************************&lt;/P&gt;&lt;P&gt;1. loop at itab1.&lt;/P&gt;&lt;P&gt;read table itab2 with key keyfield2 = itab1-keyfield1.&lt;/P&gt;&lt;P&gt;if sy-surc = 0.&lt;/P&gt;&lt;P&gt;itab_final-key_field1 = itab1-keyfield1&lt;/P&gt;&lt;P&gt;itab_final-field1 = itab1-field1.&lt;/P&gt;&lt;P&gt;itab_final-field2 = itab1-keyfield2.&lt;/P&gt;&lt;P&gt;itab_final-field3 = itab2-field2.&lt;/P&gt;&lt;P&gt;itab_final-field4 = itab2-keyfield2.&lt;/P&gt;&lt;P&gt;append itab_final.&lt;/P&gt;&lt;P&gt;clear itab_final.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:02:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340613#M515808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T09:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340614#M515809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tirunagari Prashanth,   &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use READ TABLE WITH KEY syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should solve the query.&lt;/P&gt;&lt;P&gt;Very useful in Outbound interfaces and also simplifies the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tej..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340614#M515809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T09:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340615#M515810</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 you need to Copy internal tables simply you can do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT1[] = IT2[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So all the contents of IT2 will move to IT2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise if you need to some particular Conditions do like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it1 where &amp;lt;cond&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding it1 to it2.&lt;/P&gt;&lt;P&gt;append 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;&lt;/P&gt;&lt;P&gt;The same method and loop you can use for next table also...Means&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it3 where &amp;lt;cond&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding it3 to it2.&lt;/P&gt;&lt;P&gt;append it2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward All helpfull Answers...........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340615#M515810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T09:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340616#M515811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Tirunagari Prashanth,  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code should help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-----Fill field FI_BELNR from table tab_rbkpdis&lt;/P&gt;&lt;P&gt;    LOOP AT tab_rbkpdis INTO s_rbkpdis.&lt;/P&gt;&lt;P&gt;      READ TABLE tab_accdn INTO s_accdn&lt;/P&gt;&lt;P&gt;                 WITH KEY awref = s_rbkpdis-belnr&lt;/P&gt;&lt;P&gt;                          aworg = s_rbkpdis-gjahr.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        MOVE s_accdn-belnr TO s_rbkpdis-fi_belnr.&lt;/P&gt;&lt;P&gt;        f_index = sy-tabix + 1.&lt;/P&gt;&lt;P&gt;        READ TABLE tab_accdn INDEX f_index INTO s_accdn.&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;          IF s_rbkpdis-belnr = s_accdn-awref AND s_rbkpdis-gjahr =&lt;/P&gt;&lt;P&gt;            s_accdn-aworg.&lt;/P&gt;&lt;P&gt;            s_rbkpdis-fi_belnr = icon_display.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      MODIFY tab_rbkpdis FROM s_rbkpdis.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tej..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 09:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2340616#M515811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T09:07:02Z</dc:date>
    </item>
  </channel>
</rss>

