<?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: locking the editor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-editor/m-p/4028543#M962741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like Joy's idea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps if you want to be able to edit your code yourself (but not allow others to) you can add the method to that user exit cl_gui_frontend_services=&amp;gt;get_ip_address to get the current ip address&lt;/P&gt;&lt;P&gt;only if it is your own, then allow editing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2008 12:25:28 GMT</pubDate>
    <dc:creator>former_member189059</dc:creator>
    <dc:date>2008-06-24T12:25:28Z</dc:date>
    <item>
      <title>locking the editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-editor/m-p/4028538#M962736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;experts,&lt;/P&gt;&lt;P&gt;even after using the editor lock in the attirbutes of a program the souce code when in change mode is being opened in the change mode through sm12 (by deleting lock entry for the report) how to restrict the source code when being in change mode should not be opened in change mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 11:10:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-editor/m-p/4028538#M962736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T11:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: locking the editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-editor/m-p/4028539#M962737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT z_deep_hide .&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This program hides any ABAP's source code and protects it with a&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;password in this source code.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;After hiding, you can still run the abap (the load version is intact)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;but it cannot be displayed, edited, traced, transported or generated.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the ABAP is not hidden, the program hides it, if it is hidden, it&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;unhide it.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Remember to hide this program first&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;TABLES:tstc.&lt;/P&gt;&lt;P&gt;TABLES: trdir.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK block.&lt;/P&gt;&lt;P&gt;PARAMETERS: program(30) OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 1(8) pwd.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN POSITION 35.&lt;/P&gt;&lt;P&gt;PARAMETERS: password(8) MODIF ID aaa.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK block.&lt;/P&gt;&lt;P&gt;DATA: message(60) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  pwd = 'Password'.&lt;/P&gt;&lt;P&gt;********************************************&lt;/P&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 'AAA'.&lt;/P&gt;&lt;P&gt;      screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;User name and password check&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF password &amp;lt;&amp;gt; sy-uname.&lt;/P&gt;&lt;P&gt;    WRITE: / 'Wrong password'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check for SAP owned&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF NOT program CP 'Z&lt;STRONG&gt;' AND NOT program CP 'Y&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;    WRITE: / 'Do not hide original SAP programs!'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;check if program exists&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*select single * from trdir where name = program.&lt;/P&gt;&lt;P&gt;*if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*write: / 'Program does not exists!'.&lt;/P&gt;&lt;P&gt;*exit.&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Does it have a current generated version?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*data: f1 type d, f3 type d.&lt;/P&gt;&lt;P&gt;*data: f2 type t, f4 type t.&lt;/P&gt;&lt;P&gt;*EXEC SQL.&lt;/P&gt;&lt;P&gt;*SELECT UDAT, UTIME, SDAT, STIME INTO :F1, :F2, :F3, :F4 FROM D010LINF&lt;/P&gt;&lt;P&gt;*WHERE PROG = :PROGRAM&lt;/P&gt;&lt;P&gt;*ENDEXEC.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*if f1 &amp;lt; f3 or ( f1 = f3 and f2 &amp;lt; f4 ).&lt;/P&gt;&lt;P&gt;*write: / 'The program has no recent generated version!'.&lt;/P&gt;&lt;P&gt;*exit.&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Compose a new program name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: new_name(30), i TYPE i, j TYPE i.&lt;/P&gt;&lt;P&gt;  new_name = program.&lt;/P&gt;&lt;P&gt;  DO 30 TIMES.&lt;/P&gt;&lt;P&gt;    i = sy-index - 1.&lt;/P&gt;&lt;P&gt;    new_name+i(1) = '_'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Search for acceptable program name variations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    j = 0.&lt;/P&gt;&lt;P&gt;    SELECT * FROM trdir WHERE name LIKE new_name.&lt;/P&gt;&lt;P&gt;      j = j + 1.&lt;/P&gt;&lt;P&gt;    ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF j = 1.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    new_name = program.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Cannot generate appropriate program name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF j &amp;gt; 1.&lt;/P&gt;&lt;P&gt;    WRITE: / 'Cannot generate appropriate program name'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check if it is already hidden&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: f5(30).&lt;/P&gt;&lt;P&gt;  EXEC SQL.&lt;/P&gt;&lt;P&gt;    SELECT PROG INTO :F5 FROM D010SINF WHERE PROG = :NEW_NAME&lt;/P&gt;&lt;P&gt;  ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF f5 IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;There is no such hidden program, hide it&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXEC SQL.&lt;/P&gt;&lt;P&gt;      UPDATE D010SINF SET PROG = :NEW_NAME WHERE PROG = :PROGRAM&lt;/P&gt;&lt;P&gt;    ENDEXEC.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'Program' :program 'was hidden.'&lt;/P&gt;&lt;P&gt;    INTO message SEPARATED BY space.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;There is already a hidden program there, unhide it&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    EXEC SQL.&lt;/P&gt;&lt;P&gt;      UPDATE D010SINF SET PROG = :PROGRAM WHERE PROG = :NEW_NAME&lt;/P&gt;&lt;P&gt;    ENDEXEC.&lt;/P&gt;&lt;P&gt;    CONCATENATE 'Program' :program 'was restored.'&lt;/P&gt;&lt;P&gt;    INTO message SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; The same thing can also be done using TADIR table and TSTC table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward point if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 11:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-editor/m-p/4028539#M962737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T11:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: locking the editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-editor/m-p/4028540#M962738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In this case, do not give the un authorized users the development access/ or access to txn SE38/SE80.&lt;/P&gt;&lt;P&gt;The development obj is S_DEVELOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward, if this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 11:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-editor/m-p/4028540#M962738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T11:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: locking the editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-editor/m-p/4028541#M962739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the user exit EXIT_SAPLS38E_001(enhancement SEUED001).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within this exit write:&lt;/P&gt;&lt;P&gt;if PROGRAM = '&amp;lt;Your prog. name&amp;gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  raise cancelled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now no body can see the code in display or in change mode.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 11:18:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-editor/m-p/4028541#M962739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T11:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: locking the editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-editor/m-p/4028542#M962740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;When ever u open any object a lock entry will be created. If u r deleting lock means u are intended to allow some one else to modify the code. so u are already in change mode. If some one else try to go in change mode the system will check whether any lock created for this program(TRDIR table). Since u already deleted the lock status will be space. As soon as some one save the program again lock will be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Coming to editor lock irrespective of u r in change mode or&lt;/STRONG&gt; &lt;STRONG&gt;not no one else can modify ur object unless they are using&lt;/STRONG&gt; &lt;STRONG&gt;same unser ID(your's).&lt;/STRONG&gt; With same user ID it is possible if u dont have lock on this object as explained above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 11:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-editor/m-p/4028542#M962740</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-06-24T11:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: locking the editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-editor/m-p/4028543#M962741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like Joy's idea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps if you want to be able to edit your code yourself (but not allow others to) you can add the method to that user exit cl_gui_frontend_services=&amp;gt;get_ip_address to get the current ip address&lt;/P&gt;&lt;P&gt;only if it is your own, then allow editing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 12:25:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-editor/m-p/4028543#M962741</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2008-06-24T12:25:28Z</dc:date>
    </item>
  </channel>
</rss>

