<?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 the name of a function module within a function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-name-of-a-function-module-within-a-function-module/m-p/791872#M40089</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;Something like your issue was discussed before about getting the name of the currently called method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And FM of 'SYSTEM_CALLSTACK' was found to be the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this link works:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="17532"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jun 2004 22:53:02 GMT</pubDate>
    <dc:creator>ssimsekler</dc:creator>
    <dc:date>2004-06-18T22:53:02Z</dc:date>
    <item>
      <title>Get the name of a function module within a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-name-of-a-function-module-within-a-function-module/m-p/791871#M40088</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;&lt;/P&gt;&lt;P&gt;as anybody an idea how I can get the calling name of a function module within the function module itsself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_TEST_DMO'.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within this function module I want to know the name of the function module. In this case: Z_TEST_DMO. The think is that  I want to react on the suffix DMO for some dynamic programming purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-repid doesn't give me the necessaty information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An Classes like CL_ABAP_RUNTIME and so one seems not to be the correct approach. As anyone an idea how I can get the information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;jm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2004 22:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-name-of-a-function-module-within-a-function-module/m-p/791871#M40088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-18T22:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get the name of a function module within a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-name-of-a-function-module-within-a-function-module/m-p/791872#M40089</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;Something like your issue was discussed before about getting the name of the currently called method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And FM of 'SYSTEM_CALLSTACK' was found to be the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this link works:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="17532"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2004 22:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-name-of-a-function-module-within-a-function-module/m-p/791872#M40089</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2004-06-18T22:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get the name of a function module within a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-name-of-a-function-module-within-a-function-module/m-p/791873#M40090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Serdar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for your quick help. It solved my problem! Sorry for not having found it in the already discussed thread. My version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA l_i_callstack          TYPE sys_callst.&lt;/P&gt;&lt;P&gt;  DATA l_var_functionname(70) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS &amp;lt;l_callstack&amp;gt; TYPE LINE OF sys_callst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SYSTEM_CALLSTACK'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      et_callstack = l_i_callstack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE l_i_callstack ASSIGNING &amp;lt;l_callstack&amp;gt;&lt;/P&gt;&lt;P&gt;                           WITH KEY eventtype = 'FUNC'.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    MOVE &amp;lt;l_callstack&amp;gt;-eventname TO l_var_functionname.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeannot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jeannot Dr. Muller&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Jun 2004 10:34:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-name-of-a-function-module-within-a-function-module/m-p/791873#M40090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-06-19T10:34:47Z</dc:date>
    </item>
  </channel>
</rss>

