<?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: difference between LIKE and TYPE........... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-like-and-type/m-p/2049386#M422307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vinay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to post ur question once in any one of this forum. Avoid posting it in multiple forums.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the difference between in type and like is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when defining or declaring the object is that type is used to refer existing data type.&lt;/P&gt;&lt;P&gt;while like is used to declare data objects with reference to existing data objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type is mostly used for defining a new object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ur second question, u can find a chapter in the 21 days book itself under the chapter modularization techniques. Kindly go thro that one. u can get a clear picture from that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2007 06:08:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-28T06:08:28Z</dc:date>
    <item>
      <title>difference between LIKE and TYPE...........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-like-and-type/m-p/2049385#M422306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am bw certified, learning abap at my own,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I have gone thr. sams abap in 21 days. still i am having some confusions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)  Can anybody please tell exact difference of using LIKE and TYPE in case of tables&amp;#133;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting confused, exactly what to use and when to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any relation to work area, of above point ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How these are concerned to with header and without header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) how to pass internal table to routines and function ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    can you give any example or link to example, showing difference between, pass by value, refrence and value &amp;amp; result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Surely, points will be assigned to your appropriate help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards....&lt;/P&gt;&lt;P&gt;Vinay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 05:50:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-like-and-type/m-p/2049385#M422306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T05:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: difference between LIKE and TYPE...........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-like-and-type/m-p/2049386#M422307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vinay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to post ur question once in any one of this forum. Avoid posting it in multiple forums.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the difference between in type and like is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when defining or declaring the object is that type is used to refer existing data type.&lt;/P&gt;&lt;P&gt;while like is used to declare data objects with reference to existing data objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type is mostly used for defining a new object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ur second question, u can find a chapter in the 21 days book itself under the chapter modularization techniques. Kindly go thro that one. u can get a clear picture from that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 06:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-like-and-type/m-p/2049386#M422307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T06:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: difference between LIKE and TYPE...........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-like-and-type/m-p/2049387#M422308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TYPE:&amp;lt;/b&amp;gt; You use the TYPE addition in various ABAP statements for defining data types and specifying the types of interface parameters or field symbols.&lt;/P&gt;&lt;P&gt;to refer to any data type &amp;lt;type&amp;gt; that is already known at this point in the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LIKE :&amp;lt;/b&amp;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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Subroutines example:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF LINE,
        COL1,
        COL2,
      END OF LINE.

DATA: WA TYPE LINE,
      ITAB TYPE HASHED TABLE OF LINE WITH UNIQUE KEY COL1,
      KEY(4) VALUE 'COL1'.

WA-COL1 = 'X'. INSERT WA INTO TABLE ITAB.
WA-COL1 = 'Y'. INSERT WA INTO TABLE ITAB.

PERFORM DEMO USING ITAB.

FORM DEMO USING P TYPE ANY TABLE.
  ...
  READ TABLE P WITH TABLE KEY (KEY) = 'X' INTO WA.
  ...
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Function module, you have the TABLE option to declare the tables and pass the tables to a function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 06:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-like-and-type/m-p/2049387#M422308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T06:13:26Z</dc:date>
    </item>
  </channel>
</rss>

