<?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: why type? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-type/m-p/3116794#M740145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Learner,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read this page&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9b/239fa610de11d295390000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9b/239fa610de11d295390000e8353423/content.htm&lt;/A&gt;&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>Sat, 17 Nov 2007 10:16:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-17T10:16:57Z</dc:date>
    <item>
      <title>why type?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-type/m-p/3116792#M740143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer  to the following link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; please find the following code at the beginning of the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT DEMO.

DATA: SUM TYPE I, CNT TYPE I.

NODES: SPFLI, SFLIGHT, SBOOK.

DATA: TAB_SPFLI   TYPE TABLE OF SPFLI,
      TAB_SFLIGHT TYPE TABLE OF SFLIGHT,
      TAB_SBOOK   TYPE TABLE OF SBOOK.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q]   M y   question is that why instead of "LIKE"   we are using"TYPE" here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2007 09:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-type/m-p/3116792#M740143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-17T09:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: why type?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-type/m-p/3116793#M740144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The basic difference between TYPE and LIKE&lt;/P&gt;&lt;P&gt;- When you want to create a data object referring to a data type then you use TYPE&lt;/P&gt;&lt;P&gt;- When you want to create a data object referring to an already existing data object then you use LIKE&lt;/P&gt;&lt;P&gt;This could be understood well with the following analogy:&lt;/P&gt;&lt;P&gt;You can say "Saurav is rich" or you can say "Saurav is LIKE Bill Gates". In the first statement you are referring to a TYPE (Rich) whereas in the second statement you are refferring to an already existing (Rich Person) &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Refer here for technical attribute.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when you only want the technical attribute of SPFLI-CARRID that is say NUMC of length 10 then you create a variable using TYPE. When you want to use the details like field formatting/ field labels etc then you create a variable using LIKE.&lt;/P&gt;&lt;P&gt;In your example VAR TYPE SPFLI-CARRID, this means VAR is a variable with NUMC as type and length 10. VAR LIKE SPFLI-CARRID means VAR is a variable with NUMC as type and length 10 and the field format and labels exactly same as that of the field SPFLI-CARRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Sakthi.C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2007 10:07:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-type/m-p/3116793#M740144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-17T10:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: why type?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-type/m-p/3116794#M740145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Learner,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read this page&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9b/239fa610de11d295390000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9b/239fa610de11d295390000e8353423/content.htm&lt;/A&gt;&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>Sat, 17 Nov 2007 10:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-type/m-p/3116794#M740145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-17T10:16:57Z</dc:date>
    </item>
  </channel>
</rss>

