<?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: Restricting debugging of a program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987072#M402962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By authorization you can restrict the debugging and also not changing the values while debugging&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Feb 2007 05:50:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-08T05:50:54Z</dc:date>
    <item>
      <title>Restricting debugging of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987071#M402961</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;Is it possible to restrict debugging of any program by any developer or somebody else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 05:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987071#M402961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T05:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting debugging of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987072#M402962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By authorization you can restrict the debugging and also not changing the values while debugging&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 05:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987072#M402962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T05:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting debugging of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987073#M402963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if a programmer is debugging a program and he can stop debugging by selection file-&amp;gt;stop debugging&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 05:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987073#M402963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T05:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting debugging of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987074#M402964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I meant was would there be any setting to restrict debugging of a program to any developer or any end user. By default, all the programmers are assigned with the debugging authorization in our organization&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 06:07:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987074#M402964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T06:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting debugging of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987075#M402965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think there is any such setting which ll block the debugging the program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 06:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987075#M402965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T06:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting debugging of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987076#M402966</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 believe you cannot restrict debugging access to a single program..Instead the debugging authorization can be removed..WHich means the user can no longer debug any program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 06:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987076#M402966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T06:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting debugging of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987077#M402967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if that is possible. You just have to remove the authority. Why do you want to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 06:29:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987077#M402967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T06:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting debugging of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987078#M402968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  While executing the report by writing the code in the report as &lt;/P&gt;&lt;P&gt;if sy-user = (u and what ever u required).&lt;/P&gt;&lt;P&gt;  allow.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  break user.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will work by breaking the other users.&lt;/P&gt;&lt;P&gt;Here they are not able to run ur report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 06:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987078#M402968</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-02-08T06:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting debugging of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987079#M402969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If it is our Z Program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Then in ATTRIBUTES,&lt;/P&gt;&lt;P&gt;   we can specify  STATUS = SYSTEM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Such program having this status, cannot be Debugged.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 06:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987079#M402969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T06:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting debugging of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987080#M402970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By setting the status to system..We can still debug using the system debugging..option..Right??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 06:47:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987080#M402970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T06:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting debugging of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987081#M402971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call TH_RESET_DEBUGGING in your AT SELECTION-SCREEN. If someone is debugging they can go as far as this call and after that they will be thrown out. This will work only if someone is debuggin using '/h'. But if someone puts a soft breakpoint on some line of the code and then executes the program, this will not stop it if that breakpoint is after the call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To stop this kind of debugging, you can use another function module SYSTEM_DEBUG_BREAKPOINTS which will give you all the soft breakpoints set in the program. So if there are entries, you can then quit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the program has BREAK-POINT in it, then you cannot do anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a small program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  zakstest1.

DATA: BEGIN OF breakpoints OCCURS 0.
        INCLUDE STRUCTURE  breakpoint.
DATA: END OF breakpoints.

PARAMETER: p_check AS CHECKBOX.

AT SELECTION-SCREEN.

  CALL FUNCTION 'TH_RESET_DEBUGGING'
    EXCEPTIONS
      no_authority = 1
      OTHERS       = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

START-OF-SELECTION.

  CALL FUNCTION 'SYSTEM_DEBUG_BREAKPOINTS'
    EXPORTING
      main_program          = 'ZAKSTEST1'
*    IMPORTING
*      flag_system_debugging = flag_system_debugging
*      flag_exception_object = flag_exception_object
    TABLES
      breakpoints           = breakpoints
    EXCEPTIONS
      c_call_error          = 1
      OTHERS                = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

  IF breakpoints[] IS NOT INITIAL.
*-- there is at least one soft breakpoint set
    MESSAGE s056(14) WITH 'You cannot debug this program'.
    STOP.
  ENDIF.

  IF p_check = 'X'.
    WRITE:/ 'The box is checked'.
  ELSE.
    WRITE:/ 'The box is not checked'.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 06:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-debugging-of-a-program/m-p/1987081#M402971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T06:59:29Z</dc:date>
    </item>
  </channel>
</rss>

