<?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: Type and Like in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189797#M759836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now ABAP is Object Oriented, so SAP has recommended to use TYPE instead of using LIKE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can still use LIKE, but it will show you warnings in the extended program check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2007 13:38:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-10T13:38:08Z</dc:date>
    <item>
      <title>Type and Like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189796#M759835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the exact difference betwn TYPE and LIKE?Explain with an example.&lt;/P&gt;&lt;P&gt;Where to use exactly?Sometimes it dislays errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 13:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189796#M759835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T13:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Type and Like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189797#M759836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now ABAP is Object Oriented, so SAP has recommended to use TYPE instead of using LIKE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can still use LIKE, but it will show you warnings in the extended program check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 13:38:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189797#M759836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T13:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Type and Like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189798#M759837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPE refers directly to the kind of data that the field is.  LIKE says "this data is like this other data".   Like is used to attach a bit of context and meaning to your code, but otherwise it makes no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_mandt TYPE mandt.&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;DATA: l_mandt TYPE sy-mandt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Behave the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are getting errors, that's probably because you're not using the syntax exactly right.  What errors are you getting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 13:39:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189798#M759837</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-12-10T13:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Type and Like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189799#M759838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;type is for ddic references. you can use Type only when you got a type to reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while with like you reference to the type of a runtime object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to use type wherever you can, there´s no need for like.&lt;/P&gt;&lt;P&gt;It just makes things more easy sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.G.: &lt;/P&gt;&lt;P&gt;data:  ls_vbak     type vbak,&lt;/P&gt;&lt;P&gt;         ls_vbak2    like ls_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data   ls_vbak     like vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shouldnt work since vbak is a transparent table but no runtime object.&lt;/P&gt;&lt;P&gt;The problem in understanding this thing is that it will work as well with like here in last example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 13:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189799#M759838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T13:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Type and Like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189800#M759839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this thread. This topic is fully discussed there with examples.&lt;/P&gt;&lt;P&gt;&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="4307738"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Amandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 13:40:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189800#M759839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T13:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Type and Like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189801#M759840</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;Here is what the ABAP keyword documentation says to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA - TYPE, LIKE&lt;/P&gt;&lt;P&gt;In the specification of a data type type or a data object dobj, the data type of the variable dobj is already fully defined before the declaration. The syntax and meaning of the additions TYPE and LIKE has exactly the same meaning as the definition of data types with TYPES, except that for DATA after TYPE a standard table type with a generic table key can be specified. In this case, a bound table type with a standard key is created. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, with respect to ABAP-OO you should favour DATA ... TYPE ... because within classes and interfaces you can only use TYPE to refer to dictionary types.&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;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 13:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189801#M759840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T13:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Type and Like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189802#M759841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi khanna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. What is the exact difference betwn TYPE and LIKE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  For practical purpose, there is no difference.&lt;/P&gt;&lt;P&gt;  Only the syntax is different.&lt;/P&gt;&lt;P&gt;  The end result is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type = when we want to declare for some type of data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like = when we want to declare with some varible/object which is already there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : a type bukrs.   &amp;lt;----&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt; bukrs data element is considered&lt;/P&gt;&lt;P&gt;data : b like t001-bukrs. &amp;lt;----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; the actual field --&amp;gt;its kind/type is considered&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;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 13:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-and-like/m-p/3189802#M759841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T13:50:56Z</dc:date>
    </item>
  </channel>
</rss>

