<?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/2607105#M597653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its as simple as declaring normal variables. We will use STATICS instead of DATA Keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following syntaxes to declare a static variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. STATICS f.&lt;/P&gt;&lt;P&gt;2. STATICS f(len).&lt;/P&gt;&lt;P&gt;3. STATICS: BEGIN OF rec,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;END OF rec.&lt;/P&gt;&lt;P&gt;4. STATICS: BEGIN OF itab OCCURS n,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;END OF itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static validity means that, unlike normal local variables, the life of static variables does not depend on the defining procedure, but on the program at runtime. Static variables are thus not redefined on the stack each time the defining procedure is called, but exist independently of this in the program and keep their value, regardless of calls to the defining procedure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Aug 2007 07:42:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-04T07:42:57Z</dc:date>
    <item>
      <title>declaring variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/2607104#M597652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to declare a static variable in the report program...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 07:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/2607104#M597652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T07:39: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/2607105#M597653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its as simple as declaring normal variables. We will use STATICS instead of DATA Keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following syntaxes to declare a static variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. STATICS f.&lt;/P&gt;&lt;P&gt;2. STATICS f(len).&lt;/P&gt;&lt;P&gt;3. STATICS: BEGIN OF rec,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;END OF rec.&lt;/P&gt;&lt;P&gt;4. STATICS: BEGIN OF itab OCCURS n,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;END OF itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static validity means that, unlike normal local variables, the life of static variables does not depend on the defining procedure, but on the program at runtime. Static variables are thus not redefined on the stack each time the defining procedure is called, but exist independently of this in the program and keep their value, regardless of calls to the defining procedure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 07:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/2607105#M597653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T07:42: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/2607106#M597654</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;STATICS: To declare variables with static validity in procedures &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variables defined with STATICS are static attributes that are only visible in the corresponding method&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>Sat, 04 Aug 2007 07:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-variable/m-p/2607106#M597654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T07:51:41Z</dc:date>
    </item>
  </channel>
</rss>

