<?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: Efficient or Better Ways for Data Declaration in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/efficient-or-better-ways-for-data-declaration/m-p/4839067#M1132019</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;With my knowledge, data declarations for all constants with DATA comamnd itself is good practise in point of performance. Alternative is dynamic creation of variables. But it consumes more time and is not good to practise. Instead of crating individual parameters for each constant, you could create a structure and add all constants as fields as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: begin of con,&lt;/P&gt;&lt;P&gt;                   1 type c value '1',&lt;/P&gt;&lt;P&gt;                   2 type c value '2',&lt;/P&gt;&lt;P&gt;                   -&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;                end of con.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2008 10:01:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-26T10:01:07Z</dc:date>
    <item>
      <title>Efficient or Better Ways for Data Declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/efficient-or-better-ways-for-data-declaration/m-p/4839066#M1132018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I've always programmed much the same way for a pretty long time now. Lately I've been asking myself the question - "how can i start improving on my tried and trusted ways".(oftern a linear programming approach). As part of this I'm examining ways to declare data better within in programs and to adopt a neat way to do so. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may seem pretty trivial but the first question I want to ask is how to declare data better &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. I need to declare constants - each constant corresponds to a rule number; 1, 2,3,4,5,6 - 23 etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of declaring the following line 23 times - is there a better way to declare in such a way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constants: c_rule_1 type c value '1' ,&lt;/P&gt;&lt;P&gt;                c_rule_2  type c value '2',&lt;/P&gt;&lt;P&gt;                etc etc etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your thoughts are greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;P&gt;DK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Damien Kesle on Nov 26, 2008 10:00 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 09:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/efficient-or-better-ways-for-data-declaration/m-p/4839066#M1132018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T09:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient or Better Ways for Data Declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/efficient-or-better-ways-for-data-declaration/m-p/4839067#M1132019</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;With my knowledge, data declarations for all constants with DATA comamnd itself is good practise in point of performance. Alternative is dynamic creation of variables. But it consumes more time and is not good to practise. Instead of crating individual parameters for each constant, you could create a structure and add all constants as fields as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: begin of con,&lt;/P&gt;&lt;P&gt;                   1 type c value '1',&lt;/P&gt;&lt;P&gt;                   2 type c value '2',&lt;/P&gt;&lt;P&gt;                   -&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;                end of con.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 10:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/efficient-or-better-ways-for-data-declaration/m-p/4839067#M1132019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T10:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient or Better Ways for Data Declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/efficient-or-better-ways-for-data-declaration/m-p/4839068#M1132020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if you require 23 constants you should declare 23 constants. I don't see anything wrong with that. Getting funny with data declarations in macros or generated includes or similar will just reduce readability and maintainability of your code, imho.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 10:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/efficient-or-better-ways-for-data-declaration/m-p/4839068#M1132020</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-11-26T10:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient or Better Ways for Data Declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/efficient-or-better-ways-for-data-declaration/m-p/4839069#M1132021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the replies. It's good to get a wider perspective on things -even simple things like this. I guess I'm just reviewing all aspects of things I do and looking for improvements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 13:52:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/efficient-or-better-ways-for-data-declaration/m-p/4839069#M1132021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T13:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient or Better Ways for Data Declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/efficient-or-better-ways-for-data-declaration/m-p/4839070#M1132022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; I guess I'm just reviewing all aspects of things I do and looking for improvements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very good practice, I'm trying to do the same (if time allows). Performance improvements especially are very actively debated in this forum &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 14:02:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/efficient-or-better-ways-for-data-declaration/m-p/4839070#M1132022</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-11-26T14:02:01Z</dc:date>
    </item>
  </channel>
</rss>

