<?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 access global variable declaraed in the separate program? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-global-variable-declaraed-in-the-separate-program/m-p/1271316#M150418</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;and have a look at the &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="504051"&gt;&lt;/A&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;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Mar 2006 11:29:13 GMT</pubDate>
    <dc:creator>andreas_mann3</dc:creator>
    <dc:date>2006-03-10T11:29:13Z</dc:date>
    <item>
      <title>How to access global variable declaraed in the separate program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-global-variable-declaraed-in-the-separate-program/m-p/1271313#M150415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to access a global variable declared within a different program from another function module. If the program containing the variable has a running instance, is it possible to get the value of the variable inside the function module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 11:11:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-global-variable-declaraed-in-the-separate-program/m-p/1271313#M150415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T11:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to access global variable declaraed in the separate program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-global-variable-declaraed-in-the-separate-program/m-p/1271314#M150416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Yes we can get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. (programname)varname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. in debug type as it is&lt;/P&gt;&lt;P&gt;  (with brackets)&lt;/P&gt;&lt;P&gt;  program = your original progranmae&lt;/P&gt;&lt;P&gt;  varname = variable name&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 11:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-global-variable-declaraed-in-the-separate-program/m-p/1271314#M150416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T11:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to access global variable declaraed in the separate program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-global-variable-declaraed-in-the-separate-program/m-p/1271315#M150417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;do it like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the where used list and find main program where variable is used and then access it like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbol &amp;lt;fs&amp;gt; type any.&lt;/P&gt;&lt;P&gt;data myfield_name(40) type c value '(Program_name)variable_name'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign (myfield_name) to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now &amp;lt;fs&amp;gt; has the desired value of the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 11:16:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-global-variable-declaraed-in-the-separate-program/m-p/1271315#M150417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T11:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to access global variable declaraed in the separate program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-global-variable-declaraed-in-the-separate-program/m-p/1271316#M150418</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;and have a look at the &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="504051"&gt;&lt;/A&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;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 11:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-global-variable-declaraed-in-the-separate-program/m-p/1271316#M150418</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-03-10T11:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to access global variable declaraed in the separate program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-global-variable-declaraed-in-the-separate-program/m-p/1271317#M150419</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;You can use the following logic :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Program where the global variable exist, once the global variable gets a value, export the value to a memory ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT &amp;lt;field name &amp;gt; to memory id &amp;lt;id key&amp;gt;.&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;data : l_total type i.&lt;/P&gt;&lt;P&gt;export l_total to memory id z_1011_234.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the FM, import the variable :&lt;/P&gt;&lt;P&gt;data : l_total type i.&lt;/P&gt;&lt;P&gt;import l_total from memory id z_1011_234.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2006 11:42:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-global-variable-declaraed-in-the-separate-program/m-p/1271317#M150419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-10T11:42:28Z</dc:date>
    </item>
  </channel>
</rss>

