<?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: report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843717#M924128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Constants:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5091471"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5250462"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2008 09:00:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-12T09:00:28Z</dc:date>
    <item>
      <title>report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843709#M924120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   what is the difference between variables &amp;amp; constants? explain ex. briefly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 08:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843709#M924120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T08:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843710#M924121</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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Variables&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Variables are named data objects that you can declare statically using declarative statements, or dynamically while a program is running. They allow you to store changeable data under a particular name within the memory area of a program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can declare variables statically using the following statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        DATA: To declare variables whose lifetime is linked to the context of the declaration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        STATICS: To declare variables with static validity in procedures&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        CLASS-DATA: To declare static variables within classes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        PARAMETERS: To declare elementary data objects that are also linked to an input field on a selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        SELECT-OPTIONS: To declare an internal table that is also linked to input fields on a selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        RANGES: To declare an internal table with the same structure as in SELECT-OPTIONS, but without linking it to a selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This section explains the DATA and STATICSstatements. For further information about CLASS-DATA; refer to Classes. For further information about PARAMETERS, SELECT-OPTIONS and RANGES, refer to Selection Screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaring Variables Dynamically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create data objects dynamically when you call procedures. These data objects are the formal parameters of the interface definition, which only have technical attributes when they inherit them from the actual parameters passed to them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static Variables in Procedures&lt;/P&gt;&lt;P&gt;Variables that you declare with the DATA statement live for as long as the context in which they are defined. Therefore variables in an ABAP main program exist for the entire runtime of the program, and local variables in procedures only exist for as long as the procedure is running. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To retain the value of a local variable beyond the runtime of the procedure, you can declare it using the STATICS statement. This declares a variable with the lifetime of the context of the main program, but which is only visible within the procedure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first time you call a subroutine or function module, the corresponding main program is always loaded into the internal session of the calling program. It is not deleted when the procedure ends. This enables variables defined using STATICSto retain their values beyond the runtime of the procedure, allowing them to be reused the next time the procedure is called (see the example in the Local Data in Subroutines section).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In methods, variables defined with STATICS are static attributes that are only visible in the corresponding method, but for all instances of a class (see Classes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax of the STATICS statement is identical to that of the DATA statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Constants&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Constants are named data objects that you create statically using a declarative statement. They allow you to store data under a particular name within the memory area of a program. The value of a constant must be defined when you declare it. It cannot subsequently be changed. The value of a constant cannot be changed during the execution of the program. If you try to change the value of a constant, a syntax error or runtime error occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You declare constants using the CONSTANTS statement. Within the program, you can also declare local variables within procedures using CONSTANTS. The same rules of visibility apply to constants as apply to the visibility of data types. Local constants in procedures obscure identically-named variables in the main program. Constants exist for as long as the context in which they are declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax of the CONSTANTS statement is exactly the same as that of the DATA statement, but with the following exceptions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        You must use the VALUE addition in the CONSTANTS statement. The start value specified in the VALUE addition cannot be changed during the execution of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        You cannot define constants for XSTRINGS, references, internal tables, or structures containing internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Elementary constants:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: pi     TYPE p DECIMALS 10 VALUE '3.1415926536'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           ref_c1 TYPE REF TO C1 VALUE IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last line shows how you can use the IS INITIAL argument in the VALUEaddition. Since you must use the VALUE addition in the CONSTANTS statement, this is the only way to assign an initial value to a constant when you declare it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Complex constants:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: BEGIN OF myaddress,&lt;/P&gt;&lt;P&gt;           name     TYPE c LENGTH 20 VALUE 'Fred Flintstone',&lt;/P&gt;&lt;P&gt;           street   TYPE c LENGTH 20 VALUE 'Cave Avenue',&lt;/P&gt;&lt;P&gt;           number   TYPE p           VALUE  11,&lt;/P&gt;&lt;P&gt;           postcode TYPE n LENGTH 5  VALUE  98765,&lt;/P&gt;&lt;P&gt;           city     TYPE c LENGTH 20 VALUE  'Bedrock',&lt;/P&gt;&lt;P&gt;           END OF myaddress.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This declares a constant structure myaddress. The components can be addressed by myaddress-name, myaddress-street, and so on, but they cannot be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 08:54:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843710#M924121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T08:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843711#M924122</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;variables value can be changed during the run time.&lt;/P&gt;&lt;P&gt;constants value cannot be changed during the run time. if you change a run time error ocuurs and lead to dump. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variables are declared using data statement&lt;/P&gt;&lt;P&gt;constants using constants statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;consatnts : CONSTANTS: pi     TYPE p DECIMALS 10 VALUE '3.1415926536'.&lt;/P&gt;&lt;P&gt; variables  : data : v_var type i.&lt;/P&gt;&lt;P&gt;you can assign any integer value to v_var and change it during run time but pi value can only be used but cannot be changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF HELPFUL&lt;/P&gt;&lt;P&gt;PRASANTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 08:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843711#M924122</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-05-12T08:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843712#M924123</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;Variables are data objects whose contents can be changed using ABAP statements. You declare variables using the DATA, CLASS-DATA, STATICS, PARAMETERS, SELECT-OPTIONS, and RANGESstatements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constants are data objects whose contents cannot be changed. You declare constants using the CONSTANTSstatement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Helpfull&lt;/P&gt;&lt;P&gt; Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 08:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843712#M924123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T08:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843713#M924124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you didn't give answer to my question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 08:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843713#M924124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T08:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843714#M924125</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;Variable values can change .&lt;/P&gt;&lt;P&gt;In Constants u can't change value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : v_val type c value 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;internal table &amp;gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_Val = V_Val + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable values can change in program execution,but constant's not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Narasimha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 08:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843714#M924125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T08:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843715#M924126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 08:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843715#M924126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T08:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843716#M924127</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;Variable is a container which store what ever is assaigned to that and this value can change whenver we assaign other value to that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but constant value we can't change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for constant the declaration will be like ,&lt;/P&gt;&lt;P&gt;CONSTANTS: c1 type i value '2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable declaration will be like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v1 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 08:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843716#M924127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T08:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843717#M924128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Constants:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5091471"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5250462"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 09:00:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3843717#M924128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T09:00:28Z</dc:date>
    </item>
  </channel>
</rss>

