<?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: Issue with Global variable in FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981899#M1895146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply. can you explain more detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;EM&gt; You would need to make the itab an importing parameter to the update function module and pass it from FM1.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;NK&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 17:35:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-04-28T17:35:37Z</dc:date>
    <item>
      <title>Issue with Global variable in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981892#M1895139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created&amp;nbsp; two functional modules under same function group and declared the internal table (ITAB)as global variable ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have populated the data to to&amp;nbsp; ITAB n first function module , and&amp;nbsp; These FM are used in a program , when i debug the program , the data is populated to 1st FM and but in&amp;nbsp; 2nd function module the ITAB is null only internal table structure is available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks NK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 13:37:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981892#M1895139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T13:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Global variable in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981893#M1895140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 13:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981893#M1895140</guid>
      <dc:creator>nishantbansal91</dc:creator>
      <dc:date>2015-04-28T13:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Global variable in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981894#M1895141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply, where i need to create the local variable? is it inside the 2nd FM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 14:50:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981894#M1895141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T14:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Global variable in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981895#M1895142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The itab should be declared only once, in the TOP include of the function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 15:10:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981895#M1895142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T15:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Global variable in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981896#M1895143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your FM use GOTO (In Menu)-&amp;gt;Global Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of the Include add your global table. It can then be used in both the FM's if you created them in same Function Group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 15:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981896#M1895143</guid>
      <dc:creator>vijayanandpaul_puvvula3</dc:creator>
      <dc:date>2015-04-28T15:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Global variable in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981897#M1895144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all, the program ( it also an FM)&amp;nbsp; ,which is calling the 2nd FM is in background mode, i think thats the reason ITAB values are not populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i ts working fine with IMPORT/EXPORT but my lead says it is not advisable and they are obsolete in ECC 6.0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt; declated iTAB as global variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&amp;gt; call FM1 --populate itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function " MAIN_FM" in update task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ---&amp;gt; fm2 cllaed in side &lt;SPAN style="font-size: 13.3333330154419px;"&gt;MAIN_FM,&amp;nbsp;&amp;nbsp; ( here values not populated)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;please suggest global variable not filled incase of background mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;NK&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 17:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981897#M1895144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T17:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Global variable in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981898#M1895145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fact that the calling program runs in background mode would not have any effect on this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You didn't mention before that the 2nd FM is called in update task - that's the reason your itab is empty.&amp;nbsp; That starts a separate session so no shared memory from the function group.&amp;nbsp; You would need to make the itab an importing parameter to the update function module and pass it from FM1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 17:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981898#M1895145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T17:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Global variable in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981899#M1895146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply. can you explain more detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;EM&gt; You would need to make the itab an importing parameter to the update function module and pass it from FM1.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;NK&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 17:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981899#M1895146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T17:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Global variable in FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981900#M1895147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to define an importing parameter in FM2 that can receive the contents of your itab.&amp;nbsp; Then you have to pass those values from your calling program.&amp;nbsp; If your calling program does not have access to those values, create an additional function module in the same function group that will return the itab contents.&amp;nbsp; This is all because when you call FM2 using IN UPDATE TASK, the update task does not have the same global variables available; so you have to provide them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 18:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-global-variable-in-fm/m-p/10981900#M1895147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T18:27:34Z</dc:date>
    </item>
  </channel>
</rss>

