<?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: Hide source code ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627637#M603873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't see the hided code. How could you expect the code to be seen if you are executing it. &amp;lt;b&amp;gt;The basic functionality of code is to hide.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM ZHIDE NO STANDARD PAGE HEADING.&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. So the first candidate to be hidden&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;should be ZHIDE itself.&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;unhides it.&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;To execute this program, change the user name and password in this&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;source code first.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK BLOCK.&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;PARAMETERS: PROGRAM(8).&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK BLOCK.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&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;INITIALIZATION.&lt;/P&gt;&lt;P&gt;PWD = 'PASSWORD'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;TABLES: TRDIR.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;User name and passsword check&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF SY-UNAME &amp;lt;&amp;gt; 'SAP' OR PASSWORD &amp;lt;&amp;gt; 'PASSWORD'.&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;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;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;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;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;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(8), I TYPE I, J TYPE I.&lt;/P&gt;&lt;P&gt;NEW_NAME = PROGRAM.&lt;/P&gt;&lt;P&gt;DO 8 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;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;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;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;SELECT PROG INTO :F5 FROM D010S WHERE PROG = :NEW_NAME&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&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;ENDIF.&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2007 13:12:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-01T13:12:09Z</dc:date>
    <item>
      <title>Hide source code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627635#M603871</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 am currently working on SAP 4.0B version, i hided my code using the code:  &amp;lt;b&amp;gt;*@#@@[SAP]&amp;lt;/b&amp;gt;.  It is getting executed but i am not able to see the code. Is there any way to get the code back. Or is there any place where the system stores the code after hiding it using the above statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 13:07:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627635#M603871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T13:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hide source code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627636#M603872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From &lt;A href="http://abap4.tripod.com/Other_Useful_Tips.html" target="test_blank"&gt;http://abap4.tripod.com/Other_Useful_Tips.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Hiding ABAP Source Code  &lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no easy way to get your source code back, so make sure you make a backup and save it to a local drive!&amp;lt;/i&amp;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;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 13:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627636#M603872</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-01T13:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hide source code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627637#M603873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't see the hided code. How could you expect the code to be seen if you are executing it. &amp;lt;b&amp;gt;The basic functionality of code is to hide.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM ZHIDE NO STANDARD PAGE HEADING.&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. So the first candidate to be hidden&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;should be ZHIDE itself.&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;unhides it.&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;To execute this program, change the user name and password in this&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;source code first.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK BLOCK.&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;PARAMETERS: PROGRAM(8).&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK BLOCK.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&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;INITIALIZATION.&lt;/P&gt;&lt;P&gt;PWD = 'PASSWORD'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;TABLES: TRDIR.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;User name and passsword check&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IF SY-UNAME &amp;lt;&amp;gt; 'SAP' OR PASSWORD &amp;lt;&amp;gt; 'PASSWORD'.&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;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;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;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;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;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(8), I TYPE I, J TYPE I.&lt;/P&gt;&lt;P&gt;NEW_NAME = PROGRAM.&lt;/P&gt;&lt;P&gt;DO 8 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;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;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;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;SELECT PROG INTO :F5 FROM D010S WHERE PROG = :NEW_NAME&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&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;ENDIF.&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 13:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627637#M603873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T13:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hide source code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627638#M603874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there no way to get the code back. Does the system not store it in any table or some buffer. I had a doubt then how the execution takes place, it should be taking source code from some place for execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 13:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627638#M603874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T13:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Hide source code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627639#M603875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You know, I have no idea, cuz, I have never had a reason to hide code, therefore never had to retrieve it.  Your issue is exactly the reason why an ABAP Developer should never "Hide" the code.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try to use the statement  READ REPORT......   in another program but I would assume that it would bring you no source code back,  but it is worth a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 13:27:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627639#M603875</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-01T13:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hide source code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627640#M603876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is no way to get the hidden code back but it will get stored in tables, so only u can execute the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 13:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627640#M603876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T13:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hide source code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627641#M603877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich, I tried the Read command and  also used SCAN command put it did not work. Actually i was just trying this piece of code which hides source code to see how it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 13:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627641#M603877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T13:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hide source code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627642#M603878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check below code....&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 zsam_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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 13:33:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627642#M603878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T13:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hide source code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627643#M603879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ramesh can u tell me where i can find this table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 13:34:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627643#M603879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T13:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hide source code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627644#M603880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that the program shown above may be a different method of hiding the source code, and hence if it was hidden in this way, could be reversed.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think this is the case in your situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 13:37:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627644#M603880</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-01T13:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hide source code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627645#M603881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich is totally correct. As an employee I can't think of a single good reason to hide code &amp;lt;b&amp;gt;or editor lock a program.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I work for a Fortune 50 Company &amp;amp; we bought a 3rd party app that had hidden code - our QA team refused to approve transport to Production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We were literally on the phone to the president of the software vendor's company telling them they had to show us the code if they wanted our payment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;guess what? they gave us the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 13:44:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627645#M603881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T13:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hide source code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627646#M603882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert  and Rich,&lt;/P&gt;&lt;P&gt;i have no intentions to hide a code, i was just experimenting with this piece of code, to see actually how it functions. Ya i understand that no developer should hide his code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 13:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627646#M603882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T13:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hide source code ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627647#M603883</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;Try to Run this program in debug mode. With this you can see and get the source code back while the program is running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good look,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcelo Ramos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 13:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-source-code/m-p/2627647#M603883</guid>
      <dc:creator>marcelo_ramos1</dc:creator>
      <dc:date>2007-08-01T13:56:19Z</dc:date>
    </item>
  </channel>
</rss>

