<?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: JOINING ITABS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/joining-itabs/m-p/858505#M47557</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 both tables have similar structure, you could use &amp;lt;b&amp;gt;APPEND LINES OF itab1 TO itab&amp;lt;/b&amp;gt;. Otherwise, if the structure is not the same, then you might have to loop at itab1 and append corresponding columns to itab. Please get back if I haven't understood the question correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Shehryar Khan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2005 05:30:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-06T05:30:55Z</dc:date>
    <item>
      <title>JOINING ITABS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/joining-itabs/m-p/858503#M47555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ,&lt;/P&gt;&lt;P&gt;I have 2 internal tables, itab  and itab1.&lt;/P&gt;&lt;P&gt;how do I combine the two to get the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;ajju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2005 05:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/joining-itabs/m-p/858503#M47555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-06T05:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: JOINING ITABS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/joining-itabs/m-p/858504#M47556</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;Use your main itab in loop. Inside that based on the fields you have loop the other internal table or read records from that.Place the record in another internal table (say output).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;output-field1 = itab-field1.&lt;/P&gt;&lt;P&gt;output-field2 = itab-field2.&lt;/P&gt;&lt;P&gt;read table itab1 with key field2 = itab-field2.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;output-field3 = itab1-field3.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;append output.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2005 05:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/joining-itabs/m-p/858504#M47556</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-05-06T05:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: JOINING ITABS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/joining-itabs/m-p/858505#M47557</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 both tables have similar structure, you could use &amp;lt;b&amp;gt;APPEND LINES OF itab1 TO itab&amp;lt;/b&amp;gt;. Otherwise, if the structure is not the same, then you might have to loop at itab1 and append corresponding columns to itab. Please get back if I haven't understood the question correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Shehryar Khan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2005 05:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/joining-itabs/m-p/858505#M47557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-06T05:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: JOINING ITABS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/joining-itabs/m-p/858506#M47558</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;Try this out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT i_output INTO w_output.&lt;/P&gt;&lt;P&gt;    READ TABLE i_connect INTO w_connect&lt;/P&gt;&lt;P&gt;          WITH KEY object_id = w_output-awkey.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING w_connect TO w_output.&lt;/P&gt;&lt;P&gt;      APPEND w_output TO i_output.&lt;/P&gt;&lt;P&gt;    ENDIF.                     " SY_SUBRC&lt;/P&gt;&lt;P&gt;    CLEAR: w_connect,&lt;/P&gt;&lt;P&gt;           w_output.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt; Can also do  MODIFY i_output FROM w_output when u need to modify any fields further in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Judith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2005 05:53:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/joining-itabs/m-p/858506#M47558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-06T05:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: JOINING ITABS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/joining-itabs/m-p/858507#M47559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA itab_scarr TYPE STANDARD TABLE OF scarr.&lt;/P&gt;&lt;P&gt;DATA wa_scarr TYPE scarr.&lt;/P&gt;&lt;P&gt;DATA itab_scarr2 TYPE STANDARD TABLE OF scarr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM scarr&lt;/P&gt;&lt;P&gt;INTO TABLE itab_scarr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_scarr-carrid = 'AA'.&lt;/P&gt;&lt;P&gt;wa_scarr-carrname = 'Aeroplane'.&lt;/P&gt;&lt;P&gt;wa_scarr-currcode = 'PKR'.&lt;/P&gt;&lt;P&gt;wa_scarr-url = 'www.pia.com.pk'.&lt;/P&gt;&lt;P&gt;APPEND wa_scarr TO itab_scarr2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_scarr-carrid = 'AB'.&lt;/P&gt;&lt;P&gt;wa_scarr-carrname = 'AeroAsia'.&lt;/P&gt;&lt;P&gt;wa_scarr-currcode = 'PKR'.&lt;/P&gt;&lt;P&gt;wa_scarr-url = 'www.aeroasia.com.pk'.&lt;/P&gt;&lt;P&gt;APPEND wa_scarr TO itab_scarr2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab_scarr2 INTO wa_scarr.&lt;/P&gt;&lt;P&gt;  APPEND wa_scarr TO itab_scarr.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab_scarr INTO wa_scarr.&lt;/P&gt;&lt;P&gt;  WRITE: / wa_scarr.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2005 07:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/joining-itabs/m-p/858507#M47559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-06T07:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: JOINING ITABS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/joining-itabs/m-p/858508#M47560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have the optin to define the table structure you may should ceck the ABAP docu regarding the PROVIDE statement.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2005 18:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/joining-itabs/m-p/858508#M47560</guid>
      <dc:creator>former_member183804</dc:creator>
      <dc:date>2005-05-06T18:58:32Z</dc:date>
    </item>
  </channel>
</rss>

