<?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: regarding internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350828#M803726</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;  U have already got the best solutions for what u have asked.....&lt;/P&gt;&lt;P&gt;Try n work on them......if possible close this query.&lt;/P&gt;&lt;P&gt;&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 Feb 2008 12:15:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-08T12:15:05Z</dc:date>
    <item>
      <title>regarding internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350819#M803717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have datas in three int. tables.&lt;/P&gt;&lt;P&gt;i want to make one final int. table , that will contain all 3 int. table datas..how to do it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;subhasis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 09:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350819#M803717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T09:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: regarding internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350820#M803718</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 like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append lines of itab1 to itab4.&lt;/P&gt;&lt;P&gt;Append lines of itab2 to itab4.&lt;/P&gt;&lt;P&gt;Append lines of itab3 to itab4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 09:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350820#M803718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T09:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: regarding internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350821#M803719</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. I guess this will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select k~kunnr,&lt;/P&gt;&lt;P&gt;k~name1,&lt;/P&gt;&lt;P&gt;k~ort01,&lt;/P&gt;&lt;P&gt;k~land1,&lt;/P&gt;&lt;P&gt;v~vbeln,&lt;/P&gt;&lt;P&gt;v~erdat,&lt;/P&gt;&lt;P&gt;v~netwr,&lt;/P&gt;&lt;P&gt;a~posnr,&lt;/P&gt;&lt;P&gt;a~arktx,&lt;/P&gt;&lt;P&gt;a~werks,&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE t_orders from&lt;/P&gt;&lt;P&gt;(kna1 as k inner join vbak as v&lt;/P&gt;&lt;P&gt;on k&lt;SUB&gt;kunnr = v&lt;/SUB&gt;kunnr)&lt;/P&gt;&lt;P&gt;inner join vbap as a&lt;/P&gt;&lt;P&gt;on v&lt;SUB&gt;vbeln = a&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;where k~kunnr in s_custno&lt;/P&gt;&lt;P&gt;and v~vbeln in s_orderno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is one more Report... go through this it will b helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: vbak,kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF t_table OCCURS 0,&lt;/P&gt;&lt;P&gt;kunnr LIKE kna1-kunnr,&lt;/P&gt;&lt;P&gt;name1 LIKE kna1-name1,&lt;/P&gt;&lt;P&gt;ort01 LIKE kna1-ort01,&lt;/P&gt;&lt;P&gt;land1 LIKE kna1-ort01,&lt;/P&gt;&lt;P&gt;vbeln LIKE vbak-vbeln,&lt;/P&gt;&lt;P&gt;erdat LIKE vbak-erdat,&lt;/P&gt;&lt;P&gt;netwr LIKE vbak-netwr,&lt;/P&gt;&lt;P&gt;posnr LIKE vbap-posnr,&lt;/P&gt;&lt;P&gt;arktx LIKE vbap-arktx,&lt;/P&gt;&lt;P&gt;werks LIKE vbap-werks,&lt;/P&gt;&lt;P&gt;END OF t_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_kunnr for kna1-kunnr ,&lt;/P&gt;&lt;P&gt;s_vbeln for vbak-vbeln .&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT k&lt;SUB&gt;kunnr k&lt;/SUB&gt;name1 k&lt;SUB&gt;ort01 k&lt;/SUB&gt;land1 v&lt;SUB&gt;vbeln v&lt;/SUB&gt;erdat v~netwr&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;posnr a&lt;/SUB&gt;arktx a~werks INTO CORRESPONDING FIELDS OF TABLE t_table&lt;/P&gt;&lt;P&gt;FROM ( kna1 as k INNER JOIN vbak as v ON k&lt;SUB&gt;kunnr = v&lt;/SUB&gt;kunnr ) INNER JOIN&lt;/P&gt;&lt;P&gt;vbap as a on v&lt;SUB&gt;vbeln = a&lt;/SUB&gt;vbeln WHERE k&lt;SUB&gt;kunnr in s_kunnr AND v&lt;/SUB&gt;vbeln in&lt;/P&gt;&lt;P&gt;s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;SORT t_table BY kunnr vbeln.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE i000(zsa) WITH 'NO DATA FOUND'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_table.&lt;/P&gt;&lt;P&gt;WRITE:/ t_table-kunnr,&lt;/P&gt;&lt;P&gt;t_table-name1,&lt;/P&gt;&lt;P&gt;t_table-ort01,&lt;/P&gt;&lt;P&gt;t_table-land1,&lt;/P&gt;&lt;P&gt;t_table-vbeln,&lt;/P&gt;&lt;P&gt;t_table-erdat,&lt;/P&gt;&lt;P&gt;t_table-netwr,&lt;/P&gt;&lt;P&gt;t_table-posnr,&lt;/P&gt;&lt;P&gt;t_table-arktx,&lt;/P&gt;&lt;P&gt;t_table-werks.&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;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 11:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350821#M803719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T11:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: regarding internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350822#M803720</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 the structure of all 3 internal tables are same then you can use append lines of statement to append to one table one by on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kamath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 11:38:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350822#M803720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T11:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: regarding internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350823#M803721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subhasis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this in many ways.&lt;/P&gt;&lt;P&gt;Some of them are as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the prerequisite is that u need to have a relation between the internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Using join statements in the select query u first join 2 tables&lt;/P&gt;&lt;P&gt;then use the joined table with other internal table to obtain the final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Using FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)Using Views.&lt;/P&gt;&lt;P&gt;In this u create a view using all the tables that u have used in the internal tables.And then write a select query on that view to extract the required data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i am providing a sample code to retrieve using For all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : mara,&lt;/P&gt;&lt;P&gt;           marc,&lt;/P&gt;&lt;P&gt;           mard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_mara,&lt;/P&gt;&lt;P&gt;           matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;           meins like mara-meins,&lt;/P&gt;&lt;P&gt;           ersda like mara-ersda,&lt;/P&gt;&lt;P&gt;           end of ty_mara,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;           begin of ty_marc,&lt;/P&gt;&lt;P&gt;           matnr like marc-matnr,&lt;/P&gt;&lt;P&gt;           werks like marc-werks,&lt;/P&gt;&lt;P&gt;           end of ty_marc,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;           begin of ty_mard,&lt;/P&gt;&lt;P&gt;           matnr like mard-matnr,&lt;/P&gt;&lt;P&gt;           lgort like mard-lgort,&lt;/P&gt;&lt;P&gt;           end of ty_mard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           begin of ty_final,&lt;/P&gt;&lt;P&gt;           matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;           meins like mara-meins,&lt;/P&gt;&lt;P&gt;           ersda like mara-ersda,&lt;/P&gt;&lt;P&gt;           werks like marc-werks,&lt;/P&gt;&lt;P&gt;           lgort like mard-lgort,&lt;/P&gt;&lt;P&gt;           end of ty_final.&lt;/P&gt;&lt;P&gt;data : i_mara type standard table of ty_mara with header line,&lt;/P&gt;&lt;P&gt;         i_marc type standard table of ty_marc with header line,&lt;/P&gt;&lt;P&gt;         i_mard type standard table of ty_mard with header line,&lt;/P&gt;&lt;P&gt;         i_final type  standard table of ty_mard with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr meins ersda from mara into table i_mara.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message 000.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i_mara[] is not initial.&lt;/P&gt;&lt;P&gt;select matnr werks &lt;/P&gt;&lt;P&gt;         from marc&lt;/P&gt;&lt;P&gt;         into table i_marc &lt;/P&gt;&lt;P&gt;         for all entries in i_mara &lt;/P&gt;&lt;P&gt;         where matnr = i_mara-matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message 000.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i_marc[] is not initial.&lt;/P&gt;&lt;P&gt;select matnr werks logrt&lt;/P&gt;&lt;P&gt;          from mard into table i_mard &lt;/P&gt;&lt;P&gt;          for all entries in i_marc &lt;/P&gt;&lt;P&gt;          where matnr = i_marc-matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message 000.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move : i_mara-matnr to i_final-matnr,&lt;/P&gt;&lt;P&gt;          i_mara-meins to i_final-meins,&lt;/P&gt;&lt;P&gt;          i_mara-ersda to i_final-ersda.&lt;/P&gt;&lt;P&gt;read table i_marc with key i_mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move : i_marc-werks to i_final-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table mard with key i_mara-matnr.&lt;/P&gt;&lt;P&gt;move : i_mard-logrt to i_final-logrt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append i_mara.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now loop at final table and do wat ever u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers ur 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;Thanks And Regards,&lt;/P&gt;&lt;P&gt;Chaitanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 12:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350823#M803721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T12:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: regarding internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350824#M803722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Using join statements in the select query u first join 2 tables&lt;/P&gt;&lt;P&gt;then use the joined table with other internal table to obtain the final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Using FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)Using Views.&lt;/P&gt;&lt;P&gt;In this u create a view using all the tables that u have used in the internal tables.And then write a select query on that view to extract the required data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i am providing a sample code to retrieve using For all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : mara,&lt;/P&gt;&lt;P&gt;marc,&lt;/P&gt;&lt;P&gt;mard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_mara,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;meins like mara-meins,&lt;/P&gt;&lt;P&gt;ersda like mara-ersda,&lt;/P&gt;&lt;P&gt;end of ty_mara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin of ty_marc,&lt;/P&gt;&lt;P&gt;matnr like marc-matnr,&lt;/P&gt;&lt;P&gt;werks like marc-werks,&lt;/P&gt;&lt;P&gt;end of ty_marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin of ty_mard,&lt;/P&gt;&lt;P&gt;matnr like mard-matnr,&lt;/P&gt;&lt;P&gt;lgort like mard-lgort,&lt;/P&gt;&lt;P&gt;end of ty_mard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin of ty_final,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;meins like mara-meins,&lt;/P&gt;&lt;P&gt;ersda like mara-ersda,&lt;/P&gt;&lt;P&gt;werks like marc-werks,&lt;/P&gt;&lt;P&gt;lgort like mard-lgort,&lt;/P&gt;&lt;P&gt;end of ty_final.&lt;/P&gt;&lt;P&gt;data : i_mara type standard table of ty_mara with header line,&lt;/P&gt;&lt;P&gt;i_marc type standard table of ty_marc with header line,&lt;/P&gt;&lt;P&gt;i_mard type standard table of ty_mard with header line,&lt;/P&gt;&lt;P&gt;i_final type standard table of ty_mard with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr meins ersda from mara into table i_mara.&lt;/P&gt;&lt;P&gt;if sy-subrc 0.&lt;/P&gt;&lt;P&gt;message 000.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i_mara[] is not initial.&lt;/P&gt;&lt;P&gt;select matnr werks &lt;/P&gt;&lt;P&gt;from marc&lt;/P&gt;&lt;P&gt;into table i_marc &lt;/P&gt;&lt;P&gt;for all entries in i_mara &lt;/P&gt;&lt;P&gt;where matnr = i_mara-matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc 0.&lt;/P&gt;&lt;P&gt;message 000.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i_marc[] is not initial.&lt;/P&gt;&lt;P&gt;select matnr werks logrt&lt;/P&gt;&lt;P&gt;from mard into table i_mard &lt;/P&gt;&lt;P&gt;for all entries in i_marc &lt;/P&gt;&lt;P&gt;where matnr = i_marc-matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc 0.&lt;/P&gt;&lt;P&gt;message 000.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move : i_mara-matnr to i_final-matnr,&lt;/P&gt;&lt;P&gt;i_mara-meins to i_final-meins,&lt;/P&gt;&lt;P&gt;i_mara-ersda to i_final-ersda.&lt;/P&gt;&lt;P&gt;read table i_marc with key i_mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move : i_marc-werks to i_final-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table mard with key i_mara-matnr.&lt;/P&gt;&lt;P&gt;move : i_mard-logrt to i_final-logrt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append i_mara.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now loop at final table and do wat ever u want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 06:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350824#M803722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T06:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: regarding internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350825#M803723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Append lines of itab A to itabZ.&lt;/P&gt;&lt;P&gt;Append lines of itab B to itabZ.&lt;/P&gt;&lt;P&gt;Append lines of itab  C to itabZ&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;DO REWARD IF USEFUL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 08:00:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350825#M803723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T08:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: regarding internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350826#M803724</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 u want to copy data from itab1 to itab2 then you can use,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab2] = itab1[.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to copy only few lines(say from 1 to 3) of itab1 to itab2 then yo can use,&lt;/P&gt;&lt;P&gt;append lines of itab1 from 1 to 3 to itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If both the internal tables are not of the same structure,&lt;/P&gt;&lt;P&gt;say only fields f1 and f2 are common,then ypu have to copy the data in the following way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;itab2-f1 = itab1-f1.&lt;/P&gt;&lt;P&gt;itab2-f2 = itab1-f2.&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;clear itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there are many common fields then...&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;move-corresponding itab1 to itab2.&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;clear itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the internal tables are not of the same structure, you'll need to loop through itab1 and write the corresponding fields to itab2.&lt;/P&gt;&lt;P&gt;If the internal table contains fields with character types and if the tables are of different structures,then you will have to copy from the first internal table to the sesond internal table using the offset of the first internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab2-f1 = itab1-f1 + O(index)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if usefull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if found helpfull,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chaitanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 08:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350826#M803724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T08:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: regarding internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350827#M803725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subhasis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try it... using your logic i think its work... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT f1 f2 f3 f4 f5&lt;/P&gt;&lt;P&gt;FROM main1 INTO TABLE it_main1&lt;/P&gt;&lt;P&gt;WHERE f1 IN &amp;lt;S1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT it_main1 BY f1.&lt;/P&gt;&lt;P&gt;IF it_main1[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a1 a2 a3 a4 a5&lt;/P&gt;&lt;P&gt;FROM table1 INTO TABLE it_table1&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_main1&lt;/P&gt;&lt;P&gt;WHERE a1 = it_main1-f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ******&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******&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;******&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_table1 INTO wa_table1.&lt;/P&gt;&lt;P&gt;READ TABLE it_main1 INTO wa_main1 WITH KEY f1 = wa_table1-a1.&lt;/P&gt;&lt;P&gt;READ TABLE it_main2 INTO wa_main2 WITH KEY ********************.&lt;/P&gt;&lt;P&gt;READ TABLE it_main3 INTO wa_main3 WITH KEY ********************.&lt;/P&gt;&lt;P&gt;wa_final-x1 = wa_table1-a1.&lt;/P&gt;&lt;P&gt;wa_final-x2 = wa_table1-a2.&lt;/P&gt;&lt;P&gt;wa_final-x3 = wa_main1-f2.&lt;/P&gt;&lt;P&gt;wa_final-x4 = wa_main1-f3.&lt;/P&gt;&lt;P&gt;wa_final-x5 = wa_main1-f5.&lt;/P&gt;&lt;P&gt;wa_final-x6 = wa_table2-p1.&lt;/P&gt;&lt;P&gt;wa_final-x7 = wa_table2-p6.&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;APPEND wa_final TO it_final.&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;STRONG&gt;reward points if it is useful&lt;/STRONG&gt;***********************&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;SAYAK..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 12:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350827#M803725</guid>
      <dc:creator>RoySayak</dc:creator>
      <dc:date>2008-02-08T12:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: regarding internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350828#M803726</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;  U have already got the best solutions for what u have asked.....&lt;/P&gt;&lt;P&gt;Try n work on them......if possible close this query.&lt;/P&gt;&lt;P&gt;&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 Feb 2008 12:15:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-internal-table/m-p/3350828#M803726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T12:15:05Z</dc:date>
    </item>
  </channel>
</rss>

