<?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: CONSTANTS defined with initial database read possible? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/constants-defined-with-initial-database-read-possible/m-p/8615128#M1663431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not possible to declare a constant at runtime, yes the only way is using the literal CONSTANT and assign a value to it. I look for a way to create it using RTTS but it's not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference &lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3041358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3041358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2012 04:07:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-05T04:07:29Z</dc:date>
    <item>
      <title>CONSTANTS defined with initial database read possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constants-defined-with-initial-database-read-possible/m-p/8615123#M1663426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Is it possible to do dynamic CONSTANTS assignment up front in INITIALIZATION or does ABAP limit you to define CONSTANTS only as data declaration with literal assignment?&lt;/P&gt;&lt;P&gt;Thanks, Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2012 07:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constants-defined-with-initial-database-read-possible/m-p/8615123#M1663426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-03T07:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: CONSTANTS defined with initial database read possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constants-defined-with-initial-database-read-possible/m-p/8615124#M1663427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constants are objects that are created "statically" in a declaration statement.&lt;/P&gt;&lt;P&gt;The value of a constant must be defined when you declare it. It cannot be changed subsequently. &lt;/P&gt;&lt;P&gt;Also, the value of a constant cannot be changed during the execution of the program. &lt;/P&gt;&lt;P&gt;If you do so, a syntax error or runtime error occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2012 07:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constants-defined-with-initial-database-read-possible/m-p/8615124#M1663427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-03T07:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: CONSTANTS defined with initial database read possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constants-defined-with-initial-database-read-possible/m-p/8615125#M1663428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sandeep. As mentioned, I understand the usage of a CONSTANT, but would like to know if it can be set once without the use of the literal. It's rather limiting don't you think? There is a workaround though, you can define it with a dynamic data declaration, but still that's a lot of effort for something that should be simplistic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2012 07:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constants-defined-with-initial-database-read-possible/m-p/8615125#M1663428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-03T07:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: CONSTANTS defined with initial database read possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constants-defined-with-initial-database-read-possible/m-p/8615126#M1663429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry, " &lt;EM&gt;There is a workaround though, you can define it with a dynamic data declaration, but still that's a lot of effort for something that should be simplistic&lt;/EM&gt; ", I still can not get the idea since you knew could workaround then what is the different? Would you share your point?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dondi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2012 09:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constants-defined-with-initial-database-read-possible/m-p/8615126#M1663429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-03T09:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: CONSTANTS defined with initial database read possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constants-defined-with-initial-database-read-possible/m-p/8615127#M1663430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it hard to understand?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a. I'm trying to find out if the CONSTANTS statement can be defined by using a SELECT statement instead of a literal e.g '3.14'. After some answers It seems NOT to be possible. So that's OK then. Moving on.&lt;/P&gt;&lt;P&gt;b. I don't want to revert to workarounds. In other languages this is a very simplistic data declaration that covers my requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2012 09:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constants-defined-with-initial-database-read-possible/m-p/8615127#M1663430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-03T09:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: CONSTANTS defined with initial database read possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/constants-defined-with-initial-database-read-possible/m-p/8615128#M1663431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not possible to declare a constant at runtime, yes the only way is using the literal CONSTANT and assign a value to it. I look for a way to create it using RTTS but it's not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference &lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3041358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3041358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 04:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/constants-defined-with-initial-database-read-possible/m-p/8615128#M1663431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-05T04:07:29Z</dc:date>
    </item>
  </channel>
</rss>

