<?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 diff type and like in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695076#M623703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;       What is the difference between &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;kunnr type kna1-kunnar&amp;lt;/b&amp;gt; and&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;kunnr like kna1-kunnr&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2007 05:36:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-13T05:36:43Z</dc:date>
    <item>
      <title>diff type and like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695076#M623703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;       What is the difference between &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;kunnr type kna1-kunnar&amp;lt;/b&amp;gt; and&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;kunnr like kna1-kunnr&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 05:36:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695076#M623703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T05:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: diff type and like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695077#M623704</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;TYPE&lt;/P&gt;&lt;P&gt;You use the TYPE addition in various ABAP statements for defining data types and specifying the types of interface parameters or field symbols. The TYPE addition can have various meanings depending on the syntax and context. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIKE&lt;/P&gt;&lt;P&gt;You use the LIKE addition, similarly to the TYP E addition , in various ABAP statements for defining data types and specifying the types of interface parameters or field symbols. The addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIKE &amp;lt;obj&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can be used in the same ABAP statements as the TYPE addition to refer to any data object &amp;lt;obj&amp;gt; that is already visible at that point in the program. The expression &amp;lt;obj&amp;gt; is either the name of the data object or the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use LIKE to make the new object or type inherit the technical attributes of an existing data object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type we can use to refer system defined or user defined data types and data dictionary objects..&lt;/P&gt;&lt;P&gt;like we will use in case of refering data dictionary objects only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2ff3358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2ff3358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE - Type is used to tell the system what is the type of data object(variable) you want to create .&lt;/P&gt;&lt;P&gt;LIKE: If there is already a data object declared and you want to declare a similar data object you can just refer to the previous data object using like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type is generally used for declaring variables, parameters for existing data types in abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: to declare a inter value and character variable of length 10 is as,&lt;/P&gt;&lt;P&gt;data: i1 type i,&lt;/P&gt;&lt;P&gt;c1(10) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like generally refers to existing data objects in abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex:&lt;/P&gt;&lt;P&gt;data: matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;vbeln like vbap-vbeln.&lt;/P&gt;&lt;P&gt;creating variables matnr, vbeln from existing fields of tables mara, vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when user creates a user defiend structure for work areas, internal tables we generally use type keyword as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of itab,&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;data: itab1 type itab occurs 0 [with header line]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this thread.&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=711746&amp;amp;messageID=2270752" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=711746&amp;amp;messageID=2270752&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=711746&amp;amp;messageID=512214" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=711746&amp;amp;messageID=512214&lt;/A&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;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 05:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695077#M623704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T05:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: diff type and like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695078#M623705</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 we want to declare any variable just like of other variable then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) kunnr type kna1-kunnar :-  If we use TYPE in this it means memrory for kna1-kunnar is not allocated till time only it is defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like  type: kna1-kunnr type kna2-kunnr.   then we have to use&lt;/P&gt;&lt;P&gt;       data: kunnr type kna1-kunnar.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;2) kunnr like kna1-kunnr:- It means memory is already allocated to to kna1-kunnr and we want to declare any other variable of same data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like data: kna1-kunnr type c.&lt;/P&gt;&lt;P&gt;      data: kunnr like kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in simple words TYPE defines only type and memory is not allocated while DATA defines type and also allocates memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 05:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695078#M623705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T05:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: diff type and like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695079#M623706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ranjith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur case there is no difference between type and like. but in general type and like keywords used in different scenarios as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type: to refer to existing data type [i, c, f, d, t, ..........]&lt;/P&gt;&lt;P&gt;      ex: data: int type i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        to declare the objects when types keyword is used for user defined structures.&lt;/P&gt;&lt;P&gt;       ex: types: begin of itab,&lt;/P&gt;&lt;P&gt;                         matnr  like mara-matnr,&lt;/P&gt;&lt;P&gt;                          int ytpe i,&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. // we should not use like keyword as like keyword is only used for existing data objects [ standard database table, structures,.........]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: data: itab like standard table of mara with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 05:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695079#M623706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T05:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: diff type and like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695080#M623707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ranjith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur case there is no difference between type and like. but in general type and like keywords used in different scenarios as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type: to refer to existing data type [i, c, f, d, t, ..........]&lt;/P&gt;&lt;P&gt;      ex: data: int type i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        to declare the objects when types keyword is used for user defined structures.&lt;/P&gt;&lt;P&gt;       ex: types: begin of itab,&lt;/P&gt;&lt;P&gt;                         matnr  like mara-matnr,&lt;/P&gt;&lt;P&gt;                          int ytpe i,&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. // we should not use like keyword as like keyword is only used for existing data objects [ standard database table, structures,.........]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: data: itab like standard table of mara with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 05:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695080#M623707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T05:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: diff type and like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695081#M623708</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;this is the syntax and information about the like and type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA dobj { {TYPE [LINE OF] type} &lt;/P&gt;&lt;P&gt;          | {LIKE [LINE OF] dobj} } &lt;/P&gt;&lt;P&gt;          [VALUE  val|{IS INITIAL}] &lt;/P&gt;&lt;P&gt;          [READ-ONLY]. &lt;/P&gt;&lt;P&gt; &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;Prior to Release 6.10, no VALUE addition was possible if the data type deep, specified using TYPE or LIKE, was a string, a reference type, a table type, or a structured type with deep components. As of Release 6.10, the VALUE addition can also be used for deep data types; however, with the limitation that a start value val can only be specified for the ABAP type string, and otherwise only IS INITIAL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 05:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695081#M623708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T05:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: diff type and like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695082#M623709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type is used for data types , like char,int&lt;/P&gt;&lt;P&gt;like is used for data dictionary fields,&lt;/P&gt;&lt;P&gt;but in u r case no diff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points to all helpful answers &lt;/P&gt;&lt;P&gt;kiran.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 06:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695082#M623709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T06:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: diff type and like</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695083#M623710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Type : It refers to existing data type (Standard Data Types ( i,c,...)). &lt;/P&gt;&lt;P&gt;  Like : It refers to data objects &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Data : name(10)  type c.               "Reffers a data type c. &lt;/P&gt;&lt;P&gt; Data : first_name like name,         &lt;/P&gt;&lt;P&gt;           last_name like name.         "Reffers data object name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LIJO JOHN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 06:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-type-and-like/m-p/2695083#M623710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T06:31:28Z</dc:date>
    </item>
  </channel>
</rss>

