<?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>Question Re: STATICS data declaration in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/statics-data-declaration/qaa-p/1024387#M400751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need static variables in generic extractors using FM because the function module is not called once but several times from BW (Once for initialization, then depending on size of data packages). Your extraction programm needs to keep some data from the initial call to be able to extract corectly in the next call. If you use standard (DATA) variables, they will be cleared again and again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2005 10:02:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-30T10:02:08Z</dc:date>
    <item>
      <title>STATICS data declaration</title>
      <link>https://community.sap.com/t5/technology-q-a/statics-data-declaration/qaq-p/1024385</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;When we declare the data declaration using STATICS and DATA.&lt;/P&gt;&lt;P&gt;What are the advantages using STATICS. why we use when we are creating generic extractors using FM.&lt;/P&gt;&lt;P&gt;Please let me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 05:15:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/statics-data-declaration/qaq-p/1024385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T05:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: STATICS data declaration</title>
      <link>https://community.sap.com/t5/technology-q-a/statics-data-declaration/qaa-p/1024386#M400750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;from SAP-Docu:&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;The subroutine add_1 gets the same result for the variable local for each call as this is instanced again each time. The static variable static is already available and its value increased by one during each call. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 10 TIMES. &lt;/P&gt;&lt;P&gt;  PERFORM add_one. &lt;/P&gt;&lt;P&gt;ENDDO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM add_one. &lt;/P&gt;&lt;P&gt;  DATA    local  TYPE i VALUE 10. &lt;/P&gt;&lt;P&gt;  STATICS static TYPE i VALUE 10. &lt;/P&gt;&lt;P&gt;  local  = local  + 1. &lt;/P&gt;&lt;P&gt;  static = static + 1. &lt;/P&gt;&lt;P&gt;  WRITE: / local, static. &lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/manfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 09:49:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/statics-data-declaration/qaa-p/1024386#M400750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T09:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: STATICS data declaration</title>
      <link>https://community.sap.com/t5/technology-q-a/statics-data-declaration/qaa-p/1024387#M400751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need static variables in generic extractors using FM because the function module is not called once but several times from BW (Once for initialization, then depending on size of data packages). Your extraction programm needs to keep some data from the initial call to be able to extract corectly in the next call. If you use standard (DATA) variables, they will be cleared again and again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 10:02:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/statics-data-declaration/qaa-p/1024387#M400751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T10:02:08Z</dc:date>
    </item>
  </channel>
</rss>

