<?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 Global Variables in a Function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-global-variables-in-a-function/m-p/946122#M64239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to declare this variable in the main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create a function you have first to create function group. This function group have a global program with include. Create an include with global declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2005 11:44:05 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2005-07-20T11:44:05Z</dc:date>
    <item>
      <title>Declaring Global Variables in a Function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-global-variables-in-a-function/m-p/946121#M64238</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 a function. At the end of the function I have a subroutine ( Form ). &lt;/P&gt;&lt;P&gt;Instead of passing data to the form, is it possible to declare , some of my varibles in the function as Global so they are visible in the Form.&lt;/P&gt;&lt;P&gt;These variables, are Internal tables with header line.&lt;/P&gt;&lt;P&gt;If it is possible how do I declare them.&lt;/P&gt;&lt;P&gt;The type of internal tables I have are like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data  lt_itemdata  TYPE TABLE OF bapi_incinv_create_item&lt;/P&gt;&lt;P&gt;                        WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 11:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-global-variables-in-a-function/m-p/946121#M64238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-20T11:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Global Variables in a Function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-global-variables-in-a-function/m-p/946122#M64239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to declare this variable in the main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create a function you have first to create function group. This function group have a global program with include. Create an include with global declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 11:44:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-global-variables-in-a-function/m-p/946122#M64239</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-07-20T11:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Global Variables in a Function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-global-variables-in-a-function/m-p/946123#M64240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sims,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can certainly declare global data for the function module (or function group rather). There will be a &amp;lt;i&amp;gt;top include&amp;lt;/i&amp;gt; for every function group which will enable you to write the data declarations. these will be global and visible across all the function modules of the function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the function module code, use the menu option &amp;lt;i&amp;gt;Goto--&amp;gt;Global data&amp;lt;/i&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 11:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-global-variables-in-a-function/m-p/946123#M64240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-20T11:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Global Variables in a Function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-global-variables-in-a-function/m-p/946124#M64241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. you can do this by declaring the internal table as a global field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 11:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-global-variables-in-a-function/m-p/946124#M64241</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-07-20T11:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Global Variables in a Function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-global-variables-in-a-function/m-p/946125#M64242</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;Here I have similar type of requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I declared an internal table(say ITAB1) in the top include.Appending the values through FM1(function module).&lt;/P&gt;&lt;P&gt;I am using the same through FM2  (Tables  ITAB1).&lt;/P&gt;&lt;P&gt;( Function group is same for both FM1 and FM2 )&lt;/P&gt;&lt;P&gt;but i am not getting the values in the ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me....&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;KB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 11:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-global-variables-in-a-function/m-p/946125#M64242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T11:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring Global Variables in a Function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-global-variables-in-a-function/m-p/946126#M64243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bhavani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please open new thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else people who help you won't get any reward&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 11:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-global-variables-in-a-function/m-p/946126#M64243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T11:48:40Z</dc:date>
    </item>
  </channel>
</rss>

