<?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: declaring varaiable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143484#M451852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bith the declarations are helpful and also best performance wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for a huge program, we go for the &amp;lt;b&amp;gt;TYPES&amp;lt;/b&amp;gt; declaration as it holds the reusability concept unlike the &amp;lt;b&amp;gt;LIKE&amp;lt;/b&amp;gt; declaration. So in some kind, we can say that a little bit of performance can be improved using &amp;lt;b&amp;gt;TYPES&amp;lt;/b&amp;gt; rather than &amp;lt;b&amp;gt;LIKE&amp;lt;/b&amp;gt; in our program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2007 04:48:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-05T04:48:50Z</dc:date>
    <item>
      <title>declaring varaiable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143479#M451847</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;Which one is the best practice of declaring variable and why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vbeln like vbak-vbeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vbeln type vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does declaring LIKE will effect the performance of the program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 15:30:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143479#M451847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T15:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: declaring varaiable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143480#M451848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure that it matters. I believe it to be personal preference when using the table name and field  instead of the data element directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;vbeln type vbak-vbeln    &amp;lt;-  using table name and field

vbeln type vbeln           &amp;lt;- using data element.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 15:33:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143480#M451848</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-04T15:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: declaring varaiable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143481#M451849</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;Declaring will not affect the program runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the way you like better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 15:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143481#M451849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T15:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: declaring varaiable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143482#M451850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can use LIKE to refer to any object that has been declared using DATA or a similar statement, and is visible in the current context. The object only has to have been declared. It is irrelevant whether the data object already exists in memory when you make the LIKE reference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In principle, the local data objects in the same program are visible. As with local data types, there is a difference between local data objects in procedures and global data objects. Data objects defined in a procedure obscure other objects with the same name that are declared in the global declarations of the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TYPE:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Example: TYPE &amp;lt;type&amp;gt;&lt;/P&gt;&lt;P&gt;&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;When you refer to known data types using the TYPE addition, the visibility of the data types is important. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The predefined ABAP types (C, D, F, I, N, P, T, and X) are always visible. You cannot declare types with the same names as these data types, either in the program or in the ABAP Dictionary. &lt;/P&gt;&lt;P&gt;When we talk about the visibility of local data types in the program, we must differentiate between local data types in procedures and global data types. Data types defined in a procedure obscure other objects with the same name that are declared in the global declarations of the program. All local data types in a program obscure data types with the same names in the ABAP Dictionary. This also applies to data types from type groups. &lt;/P&gt;&lt;P&gt;In the ABAP Dictionary, different visibility rules apply to standalone data types and the data types stored in type groups. Data types in type groups obscure standalone data types with the same names. However, this should be an exceptional situation. All data types in the ABAP Dictionary should be in the same namespace. When you create a standalone data type, the system displays a warning if the name begins with the name of a type group followed by an underscore. Equally, you cannot create a type group if there is already a standalone data type with the same name followed by an underscore.&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, 04 Apr 2007 19:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143482#M451850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T19:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: declaring varaiable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143483#M451851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Performance wise there is not much of a difference but SAP is moving away from LIKE in OO context.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 22:56:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143483#M451851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T22:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: declaring varaiable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143484#M451852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bith the declarations are helpful and also best performance wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for a huge program, we go for the &amp;lt;b&amp;gt;TYPES&amp;lt;/b&amp;gt; declaration as it holds the reusability concept unlike the &amp;lt;b&amp;gt;LIKE&amp;lt;/b&amp;gt; declaration. So in some kind, we can say that a little bit of performance can be improved using &amp;lt;b&amp;gt;TYPES&amp;lt;/b&amp;gt; rather than &amp;lt;b&amp;gt;LIKE&amp;lt;/b&amp;gt; in our program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 04:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143484#M451852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T04:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: declaring varaiable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143485#M451853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel there will not be any performance difference while execution. If at all there can be any diffence, then it should be during the intermediate code generation. Both these codes will result in same ABAP intermediate codes and will be executed by the ABAP engine in same fashion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 07:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-varaiable/m-p/2143485#M451853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T07:42:43Z</dc:date>
    </item>
  </channel>
</rss>

