<?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: Diff b/w TYPE and LIKE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-type-and-like/m-p/1583107#M262980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason is that in the data statement for ITAB1 you are referening a TYPE called ITAB that exists in the ABAP dictionary, double click on the word ITAB in this statement and you will see the defintion in the ABAP dictionary.  The other statement is referencing the ITAB in your program because you are using LIKE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Oct 2006 13:47:18 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-10-09T13:47:18Z</dc:date>
    <item>
      <title>Diff b/w TYPE and LIKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-type-and-like/m-p/1583106#M262979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please have a look at the following piece of code.&lt;/P&gt;&lt;P&gt;itab1 &amp;amp; itab2 both are structures but&lt;/P&gt;&lt;P&gt;itab1 has two components "KEYPART" &amp;amp; "FUNCPART"&lt;/P&gt;&lt;P&gt;while itab2 has "NAME" &amp;amp; "SURNAME".&lt;/P&gt;&lt;P&gt;can anybody please explain what is this keypart &amp;amp; funcpart. and why we are getting different components for two structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;        name(10),&lt;/P&gt;&lt;P&gt;        surname(10),&lt;/P&gt;&lt;P&gt;        END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab1 type itab.&lt;/P&gt;&lt;P&gt;data: itab2 like itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 13:42:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-type-and-like/m-p/1583106#M262979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T13:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Diff b/w TYPE and LIKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-type-and-like/m-p/1583107#M262980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason is that in the data statement for ITAB1 you are referening a TYPE called ITAB that exists in the ABAP dictionary, double click on the word ITAB in this statement and you will see the defintion in the ABAP dictionary.  The other statement is referencing the ITAB in your program because you are using LIKE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 13:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-type-and-like/m-p/1583107#M262980</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-09T13:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Diff b/w TYPE and LIKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-type-and-like/m-p/1583108#M262981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogesh,&lt;/P&gt;&lt;P&gt; Check&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2246521"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 13:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-type-and-like/m-p/1583108#M262981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T13:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Diff b/w TYPE and LIKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-type-and-like/m-p/1583109#M262982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reason behind this is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;they have store two different value for the two different structures, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and as you have mentioned KEYPART and FUNCPART are two standard values store in the itab1 like that NAME and SURNAME are two values store in the table itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 13:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-type-and-like/m-p/1583109#M262982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T13:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Diff b/w TYPE and LIKE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-type-and-like/m-p/1583110#M262983</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;&amp;lt;b&amp;gt; TYPES and DATA have separate namespaces.&amp;lt;/b&amp;gt; So, we can declare 2 variables with the same, out of which one can be done using TYPES and other using DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: TYPES : name type i.&lt;/P&gt;&lt;P&gt;    DATA : name type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: V_new type name,&lt;/P&gt;&lt;P&gt;        V_sec like name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, v_new is of type I where as v_sec is of type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case also, check if itab is declared twice, one in TYPES and other in DATA. The one which you have shown is in DATA. So, check for the other in TYPES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2006 13:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-b-w-type-and-like/m-p/1583110#M262983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-09T13:56:22Z</dc:date>
    </item>
  </channel>
</rss>

