<?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: Get calling program name in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802737#M1587273</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; it depends on the SUBMIT option "AND RETURN" whether the internal mode is replaced or not. Without it will be replaced.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My bad! But if you check the ABAP stack in the called program you won't find the reference of the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for correcting my statement.&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, 14 Mar 2011 06:18:14 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2011-03-14T06:18:14Z</dc:date>
    <item>
      <title>Get calling program name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802731#M1587267</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 have programB which is calling the programA. Inside programA how i can get the name of the calling program i.e. programB? I have no access to prgramB code to make changes for importing and exporting so looking for any other standard way of doing it? any hints pls?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 00:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802731#M1587267</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2011-03-14T00:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get calling program name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802732#M1587268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try FM SYSTEM_CALLSTACK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 02:16:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802732#M1587268</guid>
      <dc:creator>JerryWang</dc:creator>
      <dc:date>2011-03-14T02:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get calling program name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802733#M1587269</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;Check the system variable sy-cprog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Nikhil Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 04:41:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802733#M1587269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-14T04:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get calling program name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802734#M1587270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a program is called using SUBMIT, the internal session of the calling program is replaced by that of the called program. So SYSTEM_CALLSTACK won't be of use!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Nikhil: SY-CPROG will hold the name of the calling program for externally called procedures viz., CALL FUNCTION, PERFORM form IN PROGRAM program IF FOUND etc. Don't think it'll contain the value of the calling program for SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@OP: Can you confirm if program A is called by program B only? Or are there other programs which might be calling A?&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, 14 Mar 2011 04:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802734#M1587270</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-03-14T04:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get calling program name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802735#M1587271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Suhas for correcting me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Nikhil Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 05:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802735#M1587271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-14T05:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get calling program name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802736#M1587272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it depends on the SUBMIT option "AND RETURN" whether the internal mode is replaced or not. Without it will be replaced.&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;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 05:34:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802736#M1587272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-14T05:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get calling program name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802737#M1587273</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; it depends on the SUBMIT option "AND RETURN" whether the internal mode is replaced or not. Without it will be replaced.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My bad! But if you check the ABAP stack in the called program you won't find the reference of the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for correcting my statement.&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, 14 Mar 2011 06:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-calling-program-name/m-p/7802737#M1587273</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-03-14T06:18:14Z</dc:date>
    </item>
  </channel>
</rss>

