<?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: What is the difference between using Type and Like for TABLES in a function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946761#M390145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA NUMBER TYPE I. &lt;/P&gt;&lt;P&gt;DATA WA_SPFLI TYPE SPFLI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field NUMBER is created with type I. You can now use it in the program. In particular, you can assign numeric values to the field and use it in calculations ( ABAP number types). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field WA_SPFLI is created using the type of the database table SPFLI from the ABAP Dictionary. This field is structured and can be used especially for working with data from database table SPFLI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... LIKE f1 &lt;/P&gt;&lt;P&gt;Field f is created with the same field attribtues as the data object f1, which has already been declared. Any data object (field, parameter, structure...) is allowed as long as its type has been fully specified. &lt;/P&gt;&lt;P&gt;f1 can be any ABAP Dictionary reference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA TABLE_INDEX LIKE SY-TABIX. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field TABLE_INDEX now has the same attributes as SY-TABIX (index field for internal tables). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;You should use this addition whenever you can. If the type of a field to which you are referring changes, the ABAP runtime system updates all references automatically. It also stops the system from carrying out unnecessry (and maybe undesirable) type conversions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Feb 2007 08:22:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-26T08:22:49Z</dc:date>
    <item>
      <title>What is the difference between using Type and Like for TABLES in a function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946758#M390142</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;Please give our commetes on  below question. &lt;/P&gt;&lt;P&gt;What is the difference between using Type and Like for TABLES in a function module interface?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 07:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946758#M390142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T07:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between using Type and Like for TABLES in a function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946759#M390143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shwetambari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In se37, in Tables parameter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. it will not allow type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  eg. A  LIKE T001   -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; ok&lt;/P&gt;&lt;P&gt;        B Type T001    -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; error (system will give message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flat types may only be referenced using LIKE &lt;/P&gt;&lt;P&gt;table parameters                             )&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, 26 Feb 2007 07:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946759#M390143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T07:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between using Type and Like for TABLES in a function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946760#M390144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt; for FM creation preferred one is TYPE only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use LIKE while creating FM&lt;/P&gt;&lt;P&gt;system will give message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flat types may only be referenced using LIKE &lt;/P&gt;&lt;P&gt;table parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 08:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946760#M390144</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-02-26T08:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between using Type and Like for TABLES in a function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946761#M390145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA NUMBER TYPE I. &lt;/P&gt;&lt;P&gt;DATA WA_SPFLI TYPE SPFLI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field NUMBER is created with type I. You can now use it in the program. In particular, you can assign numeric values to the field and use it in calculations ( ABAP number types). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field WA_SPFLI is created using the type of the database table SPFLI from the ABAP Dictionary. This field is structured and can be used especially for working with data from database table SPFLI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... LIKE f1 &lt;/P&gt;&lt;P&gt;Field f is created with the same field attribtues as the data object f1, which has already been declared. Any data object (field, parameter, structure...) is allowed as long as its type has been fully specified. &lt;/P&gt;&lt;P&gt;f1 can be any ABAP Dictionary reference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA TABLE_INDEX LIKE SY-TABIX. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field TABLE_INDEX now has the same attributes as SY-TABIX (index field for internal tables). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;You should use this addition whenever you can. If the type of a field to which you are referring changes, the ABAP runtime system updates all references automatically. It also stops the system from carrying out unnecessry (and maybe undesirable) type conversions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 08:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946761#M390145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T08:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between using Type and Like for TABLES in a function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946762#M390146</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;check these...&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=1339515&amp;amp;messageID=2793539" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=1339515&amp;amp;messageID=2793539&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=1339519&amp;amp;messageID=1527781" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=1339519&amp;amp;messageID=1527781&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 08:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946762#M390146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T08:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between using Type and Like for TABLES in a function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946763#M390147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any senario where we can use 'TYPE ' in table parameter of se37?&lt;/P&gt;&lt;P&gt;If not, please explain why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 13:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946763#M390147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T13:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between using Type and Like for TABLES in a function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946764#M390148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;ABC	TYPE	T001A_T  (&amp;lt;---- this is table type)&lt;/P&gt;&lt;P&gt;B	TYPE	BUKRS  (&amp;lt;----- this is data element)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the above cases, TYPE will work in se37,&lt;/P&gt;&lt;P&gt;  in IMPORT/EXPORT/CHANGING Parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. ABC	TYPE	T001A_T  (&amp;lt;---- this is table type)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  This will work in TABLES parameter also.&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, 26 Feb 2007 13:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946764#M390148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T13:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between using Type and Like for TABLES in a function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946765#M390149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please explain why only table types are accepted with type in table parameters where as in all the other parametes type can be used with the table name as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 13:38:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-using-type-and-like-for-tables-in-a-function/m-p/1946765#M390149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T13:38:51Z</dc:date>
    </item>
  </channel>
</rss>

