<?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 Static table in normal abap function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/static-table-in-normal-abap-function-module/m-p/1961496#M395221</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;I have written a code which calls multiple function module multiple times with parameters. However in code review I got comments: 'Please declare a static table to maintain the values of x/y/z.... this can be used when the FM is called evry time for the same values.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never implemented this functionality. I guess in class and object programming we have functionality to put parameters as static. Can anybody put more light on this? An example would help a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jignesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2007 09:34:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-13T09:34:32Z</dc:date>
    <item>
      <title>Static table in normal abap function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/static-table-in-normal-abap-function-module/m-p/1961496#M395221</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;I have written a code which calls multiple function module multiple times with parameters. However in code review I got comments: 'Please declare a static table to maintain the values of x/y/z.... this can be used when the FM is called evry time for the same values.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never implemented this functionality. I guess in class and object programming we have functionality to put parameters as static. Can anybody put more light on this? An example would help a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jignesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 09:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/static-table-in-normal-abap-function-module/m-p/1961496#M395221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T09:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Static table in normal abap function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/static-table-in-normal-abap-function-module/m-p/1961497#M395222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHEN EVER YOU ARE CALLING ANY SUBROUTINE AND FM THE DATA YOU ARE DECLARING THERE ARE LOCAL TO THAT PERTICULAR FM OR SUB ROUTINE... SO WHEN EXITING FROM THOSE THE VALUES ARE GETTING INITIAL VALUES.. SO IF YOU ARE CALLING THE FM OR SUBROUTINE AGAIN YOU WILL GET THE VALUE AS INITIAL VALUE..FOR THAT WE ARE DECLARING THE VARIABLE STATIC IN FM OR IN SUBROUTINE FOR CONTAINING ITS VALUE AFTER EXITING FROM THOSE AND WHEN WE WILL CALL THAT THE VALUE REMAIN SAME AT IT WAS AFTER LAST CALL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 09:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/static-table-in-normal-abap-function-module/m-p/1961497#M395222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T09:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Static table in normal abap function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/static-table-in-normal-abap-function-module/m-p/1961498#M395223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know the functionality of static variables but I never heard a static table for them. Do you know how can we define a static table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 09:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/static-table-in-normal-abap-function-module/m-p/1961498#M395223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T09:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Static table in normal abap function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/static-table-in-normal-abap-function-module/m-p/1961499#M395224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Structured Static Data Object Definitions &lt;/P&gt;&lt;P&gt;- STATICS: BEGIN OF struc, &lt;/P&gt;&lt;P&gt;              ... &lt;/P&gt;&lt;P&gt;               END   OF struc. &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;/P&gt;&lt;P&gt;Structured Static Internal Table Definition &lt;/P&gt;&lt;P&gt;- STATICS itab TYPE tabtype [WITH HEADER LINE]. &lt;/P&gt;&lt;P&gt;- STATICS itab TYPE tabkind OF linetype &lt;/P&gt;&lt;P&gt;             [WITH [UNIQUE|NON-UNIQUE] keydef] &lt;/P&gt;&lt;P&gt;             [INITIAL SIZE n] [WITH HEADER LINE]. &lt;/P&gt;&lt;P&gt;- STATICS itab LIKE tabkind OF lineobj &lt;/P&gt;&lt;P&gt;            [WITH [UNIQUE|NON-UNIQUE] keydef] &lt;/P&gt;&lt;P&gt;            [INITIAL SIZE n] [WITH HEADER LINE]. &lt;/P&gt;&lt;P&gt;- STATICS itab TYPE linetype OCCURS n [WITH HEADER LINE]. &lt;/P&gt;&lt;P&gt;- STATICS itab LIKE lineobj  OCCURS n [WITH HEADER LINE]. &lt;/P&gt;&lt;P&gt;- STATICS: BEGIN OF itab OCCURS n, &lt;/P&gt;&lt;P&gt;           ... &lt;/P&gt;&lt;P&gt;         END   OF itab [VALID BETWEEN f1 AND f2]. &lt;/P&gt;&lt;P&gt;STATICS itab TYPE RANGE OF type. &lt;/P&gt;&lt;P&gt;STATICS itab LIKE RANGE OF f &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 09:48:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/static-table-in-normal-abap-function-module/m-p/1961499#M395224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T09:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Static table in normal abap function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/static-table-in-normal-abap-function-module/m-p/1961500#M395225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I will try this in my program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 09:50:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/static-table-in-normal-abap-function-module/m-p/1961500#M395225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T09:50:31Z</dc:date>
    </item>
  </channel>
</rss>

