<?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: itab difference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-difference/m-p/4027113#M962404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi darshini,&lt;/P&gt;&lt;P&gt;   If you are talking about FIELDS, it  is completely in your hand how you define your itabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of itab1 occurs 0,
          field1(10),
          field2(12),
          field3(34),
          field4(54),
        end of itab1.

data: begin of itab2 occurs 0,
          field1(10),
          field2(12),
        end of itab2.

data: begin of itab3 occurs 0,
          field3(34),
          field4(54),
        end of itab1.

* If itab1 has some records.

loop at itab1.
move-corresponding itab1 to itab2.
move-corresponding itab1 to itab3.

append itab2.
append itab3.
clear itab2.
clear itab3.
endloop.

* Now you will have the values in itab2 and itab3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2008 14:23:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-13T14:23:37Z</dc:date>
    <item>
      <title>itab difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-difference/m-p/4027112#M962403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a main itab and it contains some values....in second itab i am puting some of the first itab fields....in the 3rd itab if i want the fields that are not in second itab then what code shld i use&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 13:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-difference/m-p/4027112#M962403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T13:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: itab difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab-difference/m-p/4027113#M962404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi darshini,&lt;/P&gt;&lt;P&gt;   If you are talking about FIELDS, it  is completely in your hand how you define your itabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of itab1 occurs 0,
          field1(10),
          field2(12),
          field3(34),
          field4(54),
        end of itab1.

data: begin of itab2 occurs 0,
          field1(10),
          field2(12),
        end of itab2.

data: begin of itab3 occurs 0,
          field3(34),
          field4(54),
        end of itab1.

* If itab1 has some records.

loop at itab1.
move-corresponding itab1 to itab2.
move-corresponding itab1 to itab3.

append itab2.
append itab3.
clear itab2.
clear itab3.
endloop.

* Now you will have the values in itab2 and itab3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 14:23:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab-difference/m-p/4027113#M962404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-13T14:23:37Z</dc:date>
    </item>
  </channel>
</rss>

