<?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: How to use global variables of external program from function group? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-global-variables-of-external-program-from-function-group/m-p/345973#M6521</link>
    <description>&lt;P&gt;Hmmm.&lt;/P&gt;&lt;P&gt;Firstly doesn't that tie your function module too closely to your program ?  If you need to get at the global variables,  why not make the FM a procedure in your program.&lt;/P&gt;&lt;P&gt;Another way round it would be to change your function group to a class and make the variables functional methods of the class so when you use them you can use them as you would variables,  and yet they would still be available within the class.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Rich&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2016 14:59:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-12-22T14:59:18Z</dc:date>
    <item>
      <title>How to use global variables of external program from function group?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-global-variables-of-external-program-from-function-group/m-p/345970#M6518</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;I have a program ZBR_PROGRAM and a function group ZBR_FUNCTIONGROUP. I would like to use the global variables of the ZBR_PROGRAM in the function modules of the ZBR_FUNCTIONGROUP, how could I achieve it. I tried to use the INCLUDE statement to include the top include of the ZBR_PROGRAM where the global variables are defined, but it does not work or probably I did it wrong. Remember, the ZBR_PROGRAM is not inside the ZBR_FUNCTIONGROUP.&lt;BR /&gt;&lt;BR /&gt;Thank you, regards,&lt;/P&gt;&lt;P&gt;Róbert Birkus &lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 11:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-global-variables-of-external-program-from-function-group/m-p/345970#M6518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-22T11:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use global variables of external program from function group?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-global-variables-of-external-program-from-function-group/m-p/345971#M6519</link>
      <description>&lt;P&gt;I think it is because of the FUNCTION-POOL in the TOP-Include, that you're unable to include this.&lt;/P&gt;&lt;P&gt;You might have to create a new Include in the FunctionGroup and put your "multiple-purpose" variables there.&lt;/P&gt;&lt;P&gt;Then you can include that one to your Custom Program without Syntax-Error while also allowing accessibilty from the FunctionGroup ...&lt;/P&gt;&lt;P&gt;Consider the below Example :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztmp_testreport.

*INCLUDE lztmp_testfg_top. "TOP-INCLUDE Contains GT_RETURN
INCLUDE ztmp_testfg_multi. "ADDITIONAL INCLUDE Contains GT_MULTI_RETURN

REFRESH gt_multi_return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Using the TOP-Include will not work to get Access to 'GT_RETURN', but the Additional Include will have Access to 'GT_MULTI_RETURN' ...&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 14:00:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-global-variables-of-external-program-from-function-group/m-p/345971#M6519</guid>
      <dc:creator>NTeunckens</dc:creator>
      <dc:date>2016-12-22T14:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use global variables of external program from function group?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-global-variables-of-external-program-from-function-group/m-p/345972#M6520</link>
      <description>&lt;P&gt;There is a documented trick in ABAP, but not recommended. Therefore, find it out ...&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 14:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-global-variables-of-external-program-from-function-group/m-p/345972#M6520</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2016-12-22T14:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use global variables of external program from function group?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-global-variables-of-external-program-from-function-group/m-p/345973#M6521</link>
      <description>&lt;P&gt;Hmmm.&lt;/P&gt;&lt;P&gt;Firstly doesn't that tie your function module too closely to your program ?  If you need to get at the global variables,  why not make the FM a procedure in your program.&lt;/P&gt;&lt;P&gt;Another way round it would be to change your function group to a class and make the variables functional methods of the class so when you use them you can use them as you would variables,  and yet they would still be available within the class.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Rich&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 14:59:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-global-variables-of-external-program-from-function-group/m-p/345973#M6521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-22T14:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use global variables of external program from function group?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-global-variables-of-external-program-from-function-group/m-p/345974#M6522</link>
      <description>&lt;P&gt;Yep, that would be the recommended way ...&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 15:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-global-variables-of-external-program-from-function-group/m-p/345974#M6522</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2016-12-22T15:01:28Z</dc:date>
    </item>
  </channel>
</rss>

