<?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: Regarding call stack method:user exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785116#M1465183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Suhas,&lt;/P&gt;&lt;P&gt;Can u please take the sample code as an example and answer my query in case of standard sap calls?/&lt;/P&gt;&lt;P&gt;I could remember use of se30 for the pupose but not exactly how.&lt;/P&gt;&lt;P&gt;Please guide if you know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Apr 2010 07:58:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-19T07:58:52Z</dc:date>
    <item>
      <title>Regarding call stack method:user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785114#M1465181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I used following code long back to fetch marc value n my user exit.&lt;/P&gt;&lt;P&gt;But i am not able to recollect how i found imarc for call ZRICH_0006.&lt;/P&gt;&lt;P&gt;In other words please guide me how to find the various variables,tables and sructure available for a particular stack call(STACK CALLS AVAILABLE WHILE DEBUGGING IN DEBUGGER)&lt;/P&gt;&lt;P&gt;available in user exit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: field(50) type c.&lt;/P&gt;&lt;P&gt;data: xmarc type marc.&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;imarc&amp;gt; type marc_upl_tt.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assign an internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;STRONG&gt;field = '(ZRICH_0006)IMARC[]'.&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;U&gt;how do we get to know IMARC[] and various variables,tables and sructure available&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  assign (field) to &amp;lt;imarc&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;You can now access IMARC from other program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at &amp;lt;imarc&amp;gt; into xmarc.&lt;/P&gt;&lt;P&gt;    write: / xmarc-werks.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sanjay_lnt on Apr 19, 2010 9:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 07:39:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785114#M1465181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-19T07:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding call stack method:user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785115#M1465182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I used following code long back to fetch marc value n my user exit.&lt;/P&gt;&lt;P&gt;&amp;gt; But i am not able to recollect how i found imarc for call ZRICH_0006.&lt;/P&gt;&lt;P&gt;&amp;gt; In other words please guide me how to find the various variables,tables and sructure available for a particular stack call(STACK CALLS AVAILABLE WHILE DEBUGGING IN DEBUGGER)&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is because you copied from this thread: &lt;SPAN __jive_macro_name="message" id="5928050"&gt;&lt;/SPAN&gt; without understanding the concepts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZRICH_0006 is Rich's custom program &amp;amp; is being accessed by the second program ZRICH_0007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 07:50:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785115#M1465182</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-19T07:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding call stack method:user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785116#M1465183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Suhas,&lt;/P&gt;&lt;P&gt;Can u please take the sample code as an example and answer my query in case of standard sap calls?/&lt;/P&gt;&lt;P&gt;I could remember use of se30 for the pupose but not exactly how.&lt;/P&gt;&lt;P&gt;Please guide if you know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 07:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785116#M1465183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-19T07:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding call stack method:user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785117#M1465184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SE30 is used for runtime analysis i dont think it has got anything with accessing ABAP Stack calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excerpt from SAP online documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;For internal use only, the name in name can also have the form "(PROG)DOBJ", where "PROG" is the name of an ABAP program and "DOBJ" the name of a global data object of this program. If the program "PROG" is loaded into the same internal session as the current program when the ASSIGN statement is executed, then the data object "DOBJ" is searched for in this program and the field symbol points to this data object if the assignment was successful. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference: [http://help.sap.com/abapdocu_70/en/ABAPASSIGN_MEM_AREA_DYNAMIC_DOBJ.htm#!ABAP_ALTERNATIVE_1@1@]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before using this method just check in the ABAP Call Stack is the variable actually available for you to access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 08:07:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785117#M1465184</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-19T08:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding call stack method:user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785118#M1465185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand you correctly you're simply looking for a list of global variables within a program. Well, of course you could always look at the source code, which is often useful because this gives you sometimes additional information (e.g. comments from the developer). However, if you just want to get a quick list the (new) debugger is a very good option. Simply debug the program, look at the call stack and doubleclick on the unit (function, form, etc.) you're interested in. Inspect the &amp;lt;em&amp;gt;Globals&amp;lt;/em&amp;gt; tab to see all global variables in the currently selected program unit. If you didn't modify your debugger you'll find the &amp;lt;em&amp;gt;Call stack&amp;lt;/em&amp;gt; on &amp;lt;em&amp;gt;Desktop 2&amp;lt;/em&amp;gt; and the &amp;lt;em&amp;gt;Globals&amp;lt;/em&amp;gt; tab on &amp;lt;em&amp;gt;Desktop 1&amp;lt;/em&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 21:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785118#M1465185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-19T21:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding call stack method:user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785119#M1465186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One last query,&lt;/P&gt;&lt;P&gt;which one is correct  (stack form)table[ ] or (main program)table[ ]  ???&lt;/P&gt;&lt;P&gt;Please clarify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 09:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785119#M1465186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T09:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding call stack method:user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785120#M1465187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only the version &lt;SPAN __default_attr="Courier New" __jive_macro_name="font"&gt;(program)global_table[]&lt;/SPAN&gt; can be used. And as you can see from my used names, you can only access global variables using that method; there is no way to access local variables on the call stack.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 09:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785120#M1465187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T09:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding call stack method:user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785121#M1465188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Herald,&lt;/P&gt;&lt;P&gt;Indeed good insight .&lt;/P&gt;&lt;P&gt;I came across a code-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get components&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;field-symbols: &amp;lt;fs1&amp;gt; type any.&lt;/P&gt;&lt;P&gt;data: begin of i_resb occurs 200.&lt;/P&gt;&lt;P&gt;        include structure resb.&lt;/P&gt;&lt;P&gt;data: end of i_resb.&lt;/P&gt;&lt;P&gt;break user1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Retrieve values from calling program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;assign ('(SAPLCOBC)resb_bt[]') to &amp;lt;fs1&amp;gt;.    &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;-----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_resb[] = &amp;lt;fs1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_resb.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;perform your customer specific checks&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;The code is for transaction IW32 and main program name is SAPLCOIH and not SAPLCOBC.&lt;/P&gt;&lt;P&gt;Also SAPLCOBC is not a call in my user exit EXIT_SAPLCOIH_09, ZXWOCU07.&lt;/P&gt;&lt;P&gt;Can you guide me how the person has come down to ('(SAPLCOBC)resb_bt[]') and resb_bt not a glob table as i used the code from link-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?f=13&amp;amp;t=321691" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?f=13&amp;amp;t=321691&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 11:03:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785121#M1465188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T11:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding call stack method:user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785122#M1465189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naturally the debugger method is limited, because you only see the call stack at the time you start the debugger or inspect the call stack. As the coding is often modularized you won't always get the complete information. A good example is the status management (system/user status). There will be individual calls for setting/getting status values, but you might miss those calls. However, if you'd inspect that call stack when displaying the status values, you'd get some idea about the called function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naturally I cannot comment how the person in your quoted post came to the conclusion to utilize the given variable. There's different ways to evaluate, I think a good one is to do a runtime analysis (SE30) and then inspect the call hierarchy for called function modules and forms in other programs (I often search with certain keywords, hoping that SAP named them utilizing those keywords.) In many cases you can actually see that there's no need to revert to utilizing field symbols, because there's actual form routines, function modules or methods that can be called and will provide the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 11:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-call-stack-method-user-exit/m-p/6785122#M1465189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T11:49:43Z</dc:date>
    </item>
  </channel>
</rss>

