<?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 How to get TcodeA  when TcodeA calls TcodeB in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779627#M1308067</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;I need to get the initial tcode from a second called tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is , F-43 calls FB01 ; i'm doing some enhancement where i need to detect wich tcode is being executed , but i need the initial tcode F-43 not FB01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does somebody knws how can i get that initial tcode executed by user from the second tcode called ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2009 16:46:07 GMT</pubDate>
    <dc:creator>former_member425121</dc:creator>
    <dc:date>2009-06-15T16:46:07Z</dc:date>
    <item>
      <title>How to get TcodeA  when TcodeA calls TcodeB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779627#M1308067</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;I need to get the initial tcode from a second called tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is , F-43 calls FB01 ; i'm doing some enhancement where i need to detect wich tcode is being executed , but i need the initial tcode F-43 not FB01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does somebody knws how can i get that initial tcode executed by user from the second tcode called ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 16:46:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779627#M1308067</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2009-06-15T16:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TcodeA  when TcodeA calls TcodeB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779628#M1308068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try getting the sy-cprog and use that to hit TSTC table to get the T code of it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 16:52:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779628#M1308068</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-06-15T16:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TcodeA  when TcodeA calls TcodeB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779629#M1308069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use sy-cprog.....it will always have the Root Program name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 17:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779629#M1308069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-15T17:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TcodeA  when TcodeA calls TcodeB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779630#M1308070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point is that both Tcodes call the same program SAPMF05A . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several FI tcodes wich calls the FB01 tcode , the 'alternate' tcodes like F-43 are for post documents for specific posting keys then calls FB01 (wich are for all differents posting keys) restricting the posting key values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if there is a way for get the initial Tcode executed by user from the second tcode called ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 17:20:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779630#M1308070</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2009-06-15T17:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TcodeA  when TcodeA calls TcodeB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779631#M1308071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u know the first possible tcodes, u can store the value from them into a parameter id in SAP memory and retrieve them in the second tcode exits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 17:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779631#M1308071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-15T17:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TcodeA  when TcodeA calls TcodeB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779632#M1308072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Soumya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i store the inital Tcode in the parameter id ? , since i execute F-43 i'm inside FB01 because &lt;/P&gt;&lt;P&gt;F-43 (and the others possible tcodes) are just tcodes for call FB01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the purposse is when the enhancement is executed i can filter the desired users tcodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i need , being in FB01, to get the initial tcode F-43 (or others) executed by user for can filter this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 17:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779632#M1308072</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2009-06-15T17:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TcodeA  when TcodeA calls TcodeB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779633#M1308073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jsut check if any exit exist in these initial tcodes... u can check them by keeping a break point in&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cl_exithandler-&amp;gt;get_instance method.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after keeping this break point, run ur tcode..u will definitely come across a exit.(i am not in front of SAP system, else i cud have checked for u). if u get an exit. write the code to store the tcode id in a paramater&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will this do??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 17:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779633#M1308073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-15T17:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TcodeA  when TcodeA calls TcodeB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779634#M1308074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Soumya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got already the exit but this exit is called inside FB01 , there are several FI tcodes wich calls FB01:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F-43 -&amp;gt; FB01 -&amp;gt; program SAPMF05A&lt;/P&gt;&lt;P&gt;F-02 -&amp;gt; FB01 -&amp;gt; program SAPMF05A&lt;/P&gt;&lt;P&gt;FB05 -&amp;gt; FB01 -&amp;gt; program SAPMF05A&lt;/P&gt;&lt;P&gt;FB22 -&amp;gt; FB01 -&amp;gt; program SAPMF05A   &lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;(being in SAPMF05A i need to know wich initial tcode F-43/F-02/FB05/etc. was executed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all exits, badis or enhancements executed wherever i access sy-tcode  it contains 'FB01' ; but i need to get the initial tcode executed by the user (F-43 or others) and not FB01 , because i need execute the enhancement just for some of those tcodes not for all , so in need to filter the tcodes inside it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope i give the explanation well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 21:45:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779634#M1308074</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2009-06-15T21:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TcodeA  when TcodeA calls TcodeB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779635#M1308075</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; F-43 -&amp;gt; FB01 -&amp;gt; program SAPMF05A&lt;/P&gt;&lt;P&gt;&amp;gt; F-02 -&amp;gt; FB01 -&amp;gt; program SAPMF05A&lt;/P&gt;&lt;P&gt;&amp;gt; FB05 -&amp;gt; FB01 -&amp;gt; program SAPMF05A&lt;/P&gt;&lt;P&gt;&amp;gt; FB22 -&amp;gt; FB01 -&amp;gt; program SAPMF05A   &lt;/P&gt;&lt;P&gt;&amp;gt; etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am not sure, but all these initial tcodes such as F-43, F-02, etc must be having different screen exits atleast as each of them must be having different screen numbers. in that case there must be having different PBO's atleast in the includes of SAPMF05A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can these screen numbers and screen exits give any light on what u need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: soumya prakash mishra on Jun 16, 2009 12:11 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 22:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779635#M1308075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-15T22:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TcodeA  when TcodeA calls TcodeB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779636#M1308076</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;I guess you can determine this with the help of call stack. Use &lt;STRONG&gt;FM SYSTEM_CALLSTACK&lt;/STRONG&gt; to get the current call stack and try to find the called tcode from this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this may be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 04:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779636#M1308076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T04:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TcodeA  when TcodeA calls TcodeB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779637#M1308077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please using as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;SPAN class="L0S33"&gt;'GET_PARAM_TCOD' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ID &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'PTCOD' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FIELD &lt;/SPAN&gt;tcode&lt;SPAN class="L0S55"&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 03:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-tcodea-when-tcodea-calls-tcodeb/m-p/5779637#M1308077</guid>
      <dc:creator>former_member722164</dc:creator>
      <dc:date>2012-07-03T03:48:31Z</dc:date>
    </item>
  </channel>
</rss>

