<?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: please tell me the difference between types and data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-tell-me-the-difference-between-types-and-data/m-p/2926463#M689422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first one is a define type which you can use to define the work-area and internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second is direct defination of workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first one should be use as it is more recommended and suitable for ABAP OO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To find the diffeence between TYPE and LIKE just search forum using "TYPE vs LIKE" there are lots of threads for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Oct 2007 17:24:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-13T17:24:48Z</dc:date>
    <item>
      <title>please tell me the difference between types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-tell-me-the-difference-between-types-and-data/m-p/2926462#M689421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please tell me the difference between this two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TYPES: begin of itab,&lt;/P&gt;&lt;P&gt;              matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;              mtart  type mara-mtart,&lt;/P&gt;&lt;P&gt;              end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA : begin of itab,&lt;/P&gt;&lt;P&gt;              matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;              mtart  type mara-mtart,&lt;/P&gt;&lt;P&gt;              end of itab.&lt;/P&gt;&lt;P&gt;When to use which one.Which is the best one .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also please tell me the difference between &lt;/P&gt;&lt;P&gt;  matnr like mara-matnr  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matnr type mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the replies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2007 17:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-tell-me-the-difference-between-types-and-data/m-p/2926462#M689421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-13T17:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: please tell me the difference between types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-tell-me-the-difference-between-types-and-data/m-p/2926463#M689422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first one is a define type which you can use to define the work-area and internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second is direct defination of workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first one should be use as it is more recommended and suitable for ABAP OO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To find the diffeence between TYPE and LIKE just search forum using "TYPE vs LIKE" there are lots of threads for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2007 17:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-tell-me-the-difference-between-types-and-data/m-p/2926463#M689422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-13T17:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: please tell me the difference between types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-tell-me-the-difference-between-types-and-data/m-p/2926464#M689423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two types of declaring internal talbe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)DATA : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;  matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;  mtart type mara-mtart,&lt;/P&gt;&lt;P&gt;  end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is obsolte.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) TYPES: begin of wa,&lt;/P&gt;&lt;P&gt;        matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;        mtart type mara-mtart,&lt;/P&gt;&lt;P&gt;       end of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:itab type standard table of wa with header line.&lt;/P&gt;&lt;P&gt;The 2nd method is recommended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally use like while referring to the dictionary field.Use type while referring the data type of field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matnr like mara-matnr &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now if you see field matnr in table mara , its data elemnt is matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now comes the use of &amp;lt;b&amp;gt;type&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:matnr type matnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2007 17:32:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-tell-me-the-difference-between-types-and-data/m-p/2926464#M689423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-13T17:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: please tell me the difference between types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-tell-me-the-difference-between-types-and-data/m-p/2926465#M689424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi madan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES will just give a description of a data object. Something like a blueprint. No variable defined at this time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can give description for any kind of complexity. This type definition can be used to declare real variables or to give the type of a parameter used in FORM or METHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is necessary to have TYPES defined if you want to pass internal tables as USING or CHANGING parameters. If you do not use such a type you can't loop or read the table in the FORM or METHOD.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2007 20:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-tell-me-the-difference-between-types-and-data/m-p/2926465#M689424</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-10-13T20:03:30Z</dc:date>
    </item>
  </channel>
</rss>

