<?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: Make ABAP code uneditable and Hide it frrom client in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-abap-code-uneditable-and-hide-it-frrom-client/m-p/2906531#M683769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I was executing code you have given , I am getting a Run time error stating that The table or view name used does not exist in the database.&lt;/P&gt;&lt;P&gt;The error occurred in the current database connection "DEFAULT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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 in d010s (already hidden)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: F5(8).&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT PROG INTO :F5 FROM&amp;lt;u&amp;gt; D010S&amp;lt;/u&amp;gt; WHERE PROG = :NEW_NAME&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;IF F5 IS INITIAL.&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 D010S SET PROG = :NEW_NAME WHERE PROG = :PROGRAM&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;ELSE.&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 D010S SET PROG = :PROGRAM WHERE PROG = :NEW_NAME ENDEXEC.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2007 07:38:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-18T07:38:06Z</dc:date>
    <item>
      <title>Make ABAP code uneditable and Hide it frrom client</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-abap-code-uneditable-and-hide-it-frrom-client/m-p/2906528#M683766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Group,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody let me know how can I perform the following task:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Make ABAP code un-editable from any other user and client.&lt;/P&gt;&lt;P&gt;(2) Client could use only the functionality of the program and could not see the ABAP code of the program.&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>Thu, 18 Oct 2007 07:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-abap-code-uneditable-and-hide-it-frrom-client/m-p/2906528#M683766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T07:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Make ABAP code uneditable and Hide it frrom client</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-abap-code-uneditable-and-hide-it-frrom-client/m-p/2906529#M683767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(1) Make ABAP code un-editable from any other user and client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can achive the above by checking the option 'Editor Lock' in attributes of the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 07:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-abap-code-uneditable-and-hide-it-frrom-client/m-p/2906529#M683767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T07:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Make ABAP code uneditable and Hide it frrom client</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-abap-code-uneditable-and-hide-it-frrom-client/m-p/2906530#M683768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;answer 2 ur second question&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;check this program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program to Hide ABAP's Source Code and Protects it &lt;/P&gt;&lt;P&gt;report zsan_hide no standard page heading.&lt;/P&gt;&lt;P&gt;&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;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&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;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;*&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;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: trdir.&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; 'ABCDEFG'.&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;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;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Exists?&lt;/P&gt;&lt;/LI&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;LI level="1" type="ul"&gt;&lt;P&gt;Does it have a current generated version?&lt;/P&gt;&lt;/LI&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;&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;&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 D010S 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 D010S 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 D010S SET PROG = :PROGRAM WHERE PROG = :NEW_NAME&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&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;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;end of program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;answer to first query&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;EDITOR LOCK whwn u create program make editor-lock om&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 07:30:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-abap-code-uneditable-and-hide-it-frrom-client/m-p/2906530#M683768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T07:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Make ABAP code uneditable and Hide it frrom client</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-abap-code-uneditable-and-hide-it-frrom-client/m-p/2906531#M683769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I was executing code you have given , I am getting a Run time error stating that The table or view name used does not exist in the database.&lt;/P&gt;&lt;P&gt;The error occurred in the current database connection "DEFAULT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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 in d010s (already hidden)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: F5(8).&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT PROG INTO :F5 FROM&amp;lt;u&amp;gt; D010S&amp;lt;/u&amp;gt; WHERE PROG = :NEW_NAME&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;IF F5 IS INITIAL.&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 D010S SET PROG = :NEW_NAME WHERE PROG = :PROGRAM&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;ELSE.&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 D010S SET PROG = :PROGRAM WHERE PROG = :NEW_NAME ENDEXEC.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 07:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-abap-code-uneditable-and-hide-it-frrom-client/m-p/2906531#M683769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T07:38:06Z</dc:date>
    </item>
  </channel>
</rss>

