<?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: Dialog mode in a function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283813#M1634090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I stand with my answer:.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your function: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tcode eq 'SE37'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-- do your stuff as someone used SE37 and F8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2011 11:28:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-26T11:28:53Z</dc:date>
    <item>
      <title>Dialog mode in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283807#M1634084</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;Is there a way to identify whether a function module is called in a dialog mode or if the function module is called by any other program? Is there a SY variable  or any other method, which can give us a hint that the function module is executed by pressing F8 or not. I want to handle the use case accordingly, based on the mode of invocation of the function module. Could you please help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 10:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283807#M1634084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-26T10:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog mode in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283808#M1634085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dialog mode = SE37? If so, just check the sy-tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But isn't that something you're supposed to know (i saw your business card)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 10:57:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283808#M1634085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-26T10:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog mode in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283809#M1634086</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;&lt;/P&gt;&lt;P&gt;i think santosh is looking Answer for ; How to  catch whether function module which is executed  by Pressing F8 or  By driving program  execution  or By any Dialog Programing Module pool  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i Hope i am correct  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 11:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283809#M1634086</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-09-26T11:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog mode in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283810#M1634087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. But I'm looking for a way to know inside the function module, whether it was triggered in an interactive mode (that is by SE37 and F8) or it is called by any other report or a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I want to prevent the manual execution of the function module in certain systems. But it is okay, if that function module is called by another program, let us say, a report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 11:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283810#M1634087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-26T11:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog mode in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283811#M1634088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Deepak: Yes. Thanks. As mentioned earlier, need to differentiate between manually triggered or triggered in a programmatic manner ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 11:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283811#M1634088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-26T11:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog mode in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283812#M1634089</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;When the FM is running(or assume that some Dialog FM is running), Goto SM50 &amp;amp; observe the entry for the DIALOG type work processors. If the FM is under any one of the DIA(Dialog) WP type, it is to understand that the FM is a dialog called one....&lt;/P&gt;&lt;P&gt;Also, use SM04 for the User credentials of the FM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ Guru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 11:21:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283812#M1634089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-26T11:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog mode in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283813#M1634090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I stand with my answer:.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your function: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tcode eq 'SE37'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;-- do your stuff as someone used SE37 and F8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 11:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283813#M1634090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-26T11:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog mode in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283814#M1634091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want to use SY-TCODE (SE37, SEU_INT or even SE80) use FM SYSTEM_CALLSTACK and look at returned table for event "FUNC" "SFCS_FA_TEST_FUNCTION" or program "SAPLSEUJ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 11:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283814#M1634091</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-09-26T11:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog mode in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283815#M1634092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When  Function module  is bein Executed by Pressing F8 then  there will be always  sy-tcode =  SE37 ,&lt;/P&gt;&lt;P&gt; when in   Dialog program  (module   pool is there for execution   sy-tcode  will be Transaction code  given for that  Dialogprogram  . When Program  is executed  there will be  se38   in sy-tocde  or  transaction code  given if executed through Transaction code  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are Creating Z function module  then you can  check   for sy-tcode  as said by Maen  or  &lt;/P&gt;&lt;P&gt;have lock  on function module   and  check what to do after that  by checking sy-tcdoe   . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;deepak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Deepak Dhamat on Sep 27, 2011 9:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 11:43:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283815#M1634092</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-09-26T11:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog mode in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283816#M1634093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;there will be always sy-tcode = SE37 &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Are you sure ? Create a simple test FM like &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION z_rgs.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  EXPORTING
*"     REFERENCE(TCODE) TYPE  SY-TCODE
*"----------------------------------------------------------------------
  tcode = sy-tcode.
ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now test this FM via SE37 and then via SE80...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(*) first time it returns "SE37" and second time it returns "SEU_INIT"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 12:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283816#M1634093</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-09-27T12:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog mode in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283817#M1634094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hehe good one! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was waiting for that to happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/gives points to RG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 12:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283817#M1634094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-27T12:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog mode in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283818#M1634095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I called the above function module in a report and the value of TCODE was SE38. So I'm still hestiant to use this logic to check the interactive mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 14:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283818#M1634095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-27T14:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog mode in a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283819#M1634096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I called the above function module in a report and the value of TCODE was SE38. So I'm still hestiant to use this logic to check the interactive mode.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that if you call the function from a method in the class builder, the tcode will be SE24. But these are all development related transactions and those are the ones you need to check. Normal users will not be using those transactions (at least i hope they won't).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 08:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-mode-in-a-function-module/m-p/8283819#M1634096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-28T08:42:50Z</dc:date>
    </item>
  </channel>
</rss>

