<?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 Variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931267#M60907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you will surely get good performance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT YOU WILL NOT HAVE F4 (default from database) facility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2005 03:35:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-31T03:35:08Z</dc:date>
    <item>
      <title>Declaring Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931258#M60898</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;I declared a variable for material number as "g_matnr TYPE mara-matnr" but my QA person has raised a point saying I should declare variable as "g_matnr TYPE matnr" i.e. he asks me to directly refer data element instead of table name-fieldname and also he says directly referring data element improve the performance. Is it correct? Will it really improve the performance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advance thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balaji Viswanath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 10:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931258#M60898</guid>
      <dc:creator>balaji_viswanath</dc:creator>
      <dc:date>2005-08-30T10:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931259#M60899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pehaps it's true...i think the system can bypass one step: the system doesn't has to check which data element is linked to your dictionary field (MARA-MATNR in your case). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When it uses stataments 'data my_var like ....', the variable get the characteristics that are defined in data element and domain linked to dictionary field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 10:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931259#M60899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-30T10:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931260#M60900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The important question is if you want to refer to the dictionary or the mentioned field in a table (or structure). If you're working with the mentioned structure or table I would prefer the use of "like" in case the theoratical event occurs that SAP decides to change the type of certain table-fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 11:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931260#M60900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-30T11:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931261#M60901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;What max said is true...&lt;/P&gt;&lt;P&gt;You wont see a great improvement in performance.. because that resolution of field to data element will probably take a micro second or lesser...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is generally a good practise to give the data element so that the system doenst have to do this resolution at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So ur QA said the right thing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And rememebr to reward the points to answer that helped you most and close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Prabhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 12:06:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931261#M60901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-30T12:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931262#M60902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Max and Prashanth, I am ready to declare some 10 variables in both the ways and check the performance... how to do it.. can you please tell me Transaction code to trace performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advance thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balaji Viswanath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 14:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931262#M60902</guid>
      <dc:creator>balaji_viswanath</dc:creator>
      <dc:date>2005-08-30T14:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931263#M60903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SE30 is the runtime performance analysis.&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>Tue, 30 Aug 2005 14:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931263#M60903</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-30T14:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931264#M60904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try SE30 or ST05&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pretty sure you won't find much difference in performance.. the QA is person only trying to make you adhere to the standards..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 14:23:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931264#M60904</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2005-08-30T14:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931265#M60905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go for transaction code :  SE30 thats enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye....&lt;/P&gt;&lt;P&gt;sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2005 17:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931265#M60905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-30T17:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931266#M60906</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;It will surely improve ur performance, u r refering directly yo a dataelemnt in the case of &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;g_matnr TYPE matnr&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; but in the other case u referring to a table and then to its field.&lt;/P&gt;&lt;P&gt;SO it will take a bit ime more to fetch the type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can also give as&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;g_matnr LIKE matnr&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check for performance u can do a performance check in the program itself. Or u can do in ST05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward and close the thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 03:31:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931266#M60906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-31T03:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931267#M60907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you will surely get good performance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT YOU WILL NOT HAVE F4 (default from database) facility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 03:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931267#M60907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-31T03:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931268#M60908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Balaji,&lt;/P&gt;&lt;P&gt;SE30 is the transaction where you can check for performance. But take it from me, that you will not see much difference in performance. Because, as I said in my earlier post, the performance improvement u get by declaring these by directly referring to the data element is very small. however it is a good practise to do it this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points.. and if ur Q is answered, close this post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 03:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/931268#M60908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-31T03:45:02Z</dc:date>
    </item>
  </channel>
</rss>

