<?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: Function module data declaration part in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394717#M1044839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can have All the data declarations of these 4 function modules in the TOP include of that function group, which is currently with sourse code of Fuction modules?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could have got an answer to this question by simply trying to put your declarations in the top include and then trying to activate your Function modules. No error would have meant the answer to your question is "Yes".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, the very purpose of having a top include for a function group is to have the common data for all the function modules declared in it. &lt;/P&gt;&lt;P&gt;If there is some data that could be used by more than one function modules of a group, then it makes sense to declare this in the top include. However, if there is only one function module that is going to use some data, it is always better to keep it in scope, that is to keep it local to the function module itself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Future problems - only if tomorrow you decide to have the local data as global, you will have to make some changes. As long as the data is global, it can be used across all function modules and there will be no problems. Code optimization is secondary here, you need to decide on the scope of the data being declared and then declare it at the appropriate place. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Aug 2008 10:45:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-20T10:45:49Z</dc:date>
    <item>
      <title>Function module data declaration part</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394713#M1044835</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;I have 4 function modules in one of my function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my doubt is..&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can have All the data declarations of these 4 function modules in the TOP include of that function group, which is currently with sourse code of Fuction modules?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to go for this only to optimize my code!&lt;/P&gt;&lt;P&gt;Any problem with this in future?&lt;/P&gt;&lt;P&gt;As Iam not expert in this area, Please guide me in best way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 10:26:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394713#M1044835</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2008-08-20T10:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function module data declaration part</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394714#M1044836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,you can declare all variables in TOP include of that function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It won't create any problem in future. But make sure that this TOP include is activated before activating any FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aparna Gaikwad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 10:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394714#M1044836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T10:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Function module data declaration part</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394715#M1044837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no problem with this because this thing makes your code modularize. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Once activate all function modules and function group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 10:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394715#M1044837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T10:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Function module data declaration part</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394716#M1044838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.. Aparna, Shipli... &lt;/P&gt;&lt;P&gt;Thank you..very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can expect Others attention on this with your valueble guidence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 10:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394716#M1044838</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2008-08-20T10:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Function module data declaration part</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394717#M1044839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can have All the data declarations of these 4 function modules in the TOP include of that function group, which is currently with sourse code of Fuction modules?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could have got an answer to this question by simply trying to put your declarations in the top include and then trying to activate your Function modules. No error would have meant the answer to your question is "Yes".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, the very purpose of having a top include for a function group is to have the common data for all the function modules declared in it. &lt;/P&gt;&lt;P&gt;If there is some data that could be used by more than one function modules of a group, then it makes sense to declare this in the top include. However, if there is only one function module that is going to use some data, it is always better to keep it in scope, that is to keep it local to the function module itself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Future problems - only if tomorrow you decide to have the local data as global, you will have to make some changes. As long as the data is global, it can be used across all function modules and there will be no problems. Code optimization is secondary here, you need to decide on the scope of the data being declared and then declare it at the appropriate place. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 10:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394717#M1044839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T10:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Function module data declaration part</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394718#M1044840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;Don't do all the declarations in the TOP include(As global parameters). It accupies global memory while executing!!!. &lt;/P&gt;&lt;P&gt;i.e When ever u execute any FM of this function group whole function group will be loaded to memory and memory will be allocated to all the declarations which is not recomended. If u r not using some data then why to allocate memory for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: If u r using itab1 in FM1 and itab2 in Fm2 then what is the need for allocating memory for itab2 when executing FM1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not only in function group, this applies every where.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u r using some variable/constant/Internal table in multiple places then only declare it as global. Else better declare as local.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it gave u some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 10:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394718#M1044840</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-08-20T10:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Function module data declaration part</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394719#M1044841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi... Vinod....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say thanks to me... I brings you into 2000+.... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot for all of your attention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;So It must affects performance with this kind declartions as vinod said.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;But, apart of this they is no issues.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;And we hav to take care about data utility!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveeen Inuganti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 11:16:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394719#M1044841</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2008-08-20T11:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Function module data declaration part</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394720#M1044842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;Itz gud that u r following Help the helper;):-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 11:51:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-data-declaration-part/m-p/4394720#M1044842</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-08-20T11:51:03Z</dc:date>
    </item>
  </channel>
</rss>

