<?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: ABAP Stack : Subroutines in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972725#M1603910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's still on the stack but still not accessible. Why don't you pass it as a parameter of function C?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Martin Voros on May 31, 2011 1:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2011 03:22:39 GMT</pubDate>
    <dc:creator>mvoros</dc:creator>
    <dc:date>2011-05-31T03:22:39Z</dc:date>
    <item>
      <title>ABAP Stack : Subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972721#M1603906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering how can you access the local variable of a subroutine using ABAP Stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT A.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;PERFORM B.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM B&lt;/P&gt;&lt;P&gt;data : var2&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;CALL FUNCTION C&lt;/P&gt;&lt;P&gt;ENDFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION C.&lt;/P&gt;&lt;P&gt;&amp;lt;access var2 here&amp;gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only know that you can usually access variables via (PROGNAME)variable and assign it to an &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 02:41:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972721#M1603906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-31T02:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Stack : Subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972722#M1603907</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't. The local variables are usually created on stack so when you leave the routine all local variables are removed from stack. I am not 100% that ABAP AS allocates the local variables on stack (or at least subset of local variables) but the behavior is same. The local variables are not accessible from outside.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 03:09:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972722#M1603907</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2011-05-31T03:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Stack : Subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972723#M1603908</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;Even if the call is still active? (e.g. there are many more statements after the CALL FUNCTION)?&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, 31 May 2011 03:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972723#M1603908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-31T03:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Stack : Subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972724#M1603909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi f0Xg3!, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP stack if i am not mistaken is a way for you to navigate through the flow of objects like programs, screen and other objects in the event of run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a variable which is "LOCALLY" declared in a subroutine and you want to see it in call function... it is not possible. If anyone says its possible please enlighten me too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when a variable is "LOCALLY" declared, the visibility of this variable is only in the scope of that subroutine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any variable that you want to see in a call function, it should be pass over through EXPORTING. Although you may wrote your CALL FUNCTION in that sub-routine... but the CALL FUNCTION is registered or declared in its own Function Group's scope... so the locally declared variable in a subroutine will not be visible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence, I don't think it will work for your idea. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just my opinion. &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;W. Wilstroth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 03:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972724#M1603909</guid>
      <dc:creator>Wil_Wilstroth</dc:creator>
      <dc:date>2011-05-31T03:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Stack : Subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972725#M1603910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's still on the stack but still not accessible. Why don't you pass it as a parameter of function C?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Martin Voros on May 31, 2011 1:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 03:22:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972725#M1603910</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2011-05-31T03:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Stack : Subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972726#M1603911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't, I'm just implementing an exit. I know that the values are stored in a stack (and the calls are active when this exit is called), I might change values. But I realized that the data I'm trying to change is a local subroutine variable &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh well, thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 03:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972726#M1603911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-31T03:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Stack : Subroutines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972727#M1603912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably implicit enhancement points can solve your problem. Overlay the standard routine with your custom code if you really think that it's necessary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 03:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-stack-subroutines/m-p/7972727#M1603912</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2011-05-31T03:33:55Z</dc:date>
    </item>
  </channel>
</rss>

