<?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: ABAP Code Hide or encrypt or scramble in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139830#M1975899</link>
    <description>&lt;P&gt;As this question about ABAP development techniques, and not about the ABAP Application Server platform, I have changed the primary tag accordingly.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2020 15:45:44 GMT</pubDate>
    <dc:creator>Matt_Fraser</dc:creator>
    <dc:date>2020-01-14T15:45:44Z</dc:date>
    <item>
      <title>ABAP Code Hide or encrypt or scramble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139824#M1975893</link>
      <description>&lt;P&gt;Is there any way by which we can hide or encrypt or scramble ABAP program or function module from client?&lt;/P&gt;
  &lt;P&gt;Any method, will work for me&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 09:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139824#M1975893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-01-14T09:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code Hide or encrypt or scramble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139825#M1975894</link>
      <description>&lt;P&gt;Try entering &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*@#@@[SAP] &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;on the very first line of your code. &lt;/P&gt;&lt;P&gt;There is no easy way to get the code back, so make sure you make a backup before you do it.&lt;/P&gt;&lt;P&gt;Alternatively, here is a program I found online (I wasn't able to find any other solution. Some are saying that it is no longer possible):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROGRAM ZHIDE NO STANDARD PAGE HEADING.
************************************************************************
* This program hides any ABAP's source code and protects it with a
* password in this source code.  So the first candidate to be hidden
* should be ZHIDE itself.
*
* After hiding, you can still run the abap (the load version is intact)
* but it cannot be displayed, edited, traced, transported or generated.
*
* If the ABAP is not hidden, the program hides it, if it is hidden, it
* unhides it.
*
* To execute this program, change the user name and password in this
* source code first.
************************************************************************
SELECTION-SCREEN BEGIN OF BLOCK BLOCK.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(8) PWD.
SELECTION-SCREEN POSITION 35.
PARAMETERS: PASSWORD(8) MODIF ID AAA.
SELECTION-SCREEN END OF LINE.
PARAMETERS: PROGRAM(8).
SELECTION-SCREEN END OF BLOCK BLOCK.
*
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'AAA'.
      SCREEN-INVISIBLE = '1'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
*
INITIALIZATION.
  PWD = 'PASSWORD'.
*
START-OF-SELECTION.
  TABLES: TRDIR.
* User name and passsword check
  IF SY-UNAME &amp;lt;&amp;gt; 'SAP' OR PASSWORD &amp;lt;&amp;gt; 'PASSWORD'.
    WRITE: / 'Wrong password'.
    EXIT.
  ENDIF.
* SAP owned?
  IF NOT PROGRAM CP 'Z*' AND NOT PROGRAM CP 'Y*'.
    WRITE: / 'Do not hide original SAP programs!'.
    EXIT.
  ENDIF.
* Exists?
  SELECT SINGLE * FROM TRDIR WHERE NAME = PROGRAM.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    WRITE: / 'Program does not exists!'.
    EXIT.
  ENDIF.
* Does it have a current generated version?
  DATA: F1 TYPE D, F3 TYPE D.
  DATA: F2 TYPE T, F4 TYPE T.
  EXEC SQL.
  SELECT UDAT, UTIME, SDAT, STIME INTO :F1, :F2, :F3, :F4 FROM D010LINF
                       WHERE PROG = :PROGRAM
  ENDEXEC.
  IF F1 &amp;lt; F3 OR ( F1 = F3 AND F2 &amp;lt; F4 ).
    WRITE: / 'The program has no recent generated version!'.
    EXIT.
  ENDIF.
* Compose a new program name
  DATA: NEW_NAME(8), I TYPE I, J TYPE I.
  NEW_NAME = PROGRAM.
  DO 8 TIMES.
    I = SY-INDEX - 1.
    NEW_NAME+I(1) = '_'.
* Search for acceptable program name variations
    J = 0.
    SELECT * FROM TRDIR WHERE NAME LIKE NEW_NAME.
      J = J + 1.
    ENDSELECT.
    IF J = 1.
      EXIT.
    ENDIF.
    NEW_NAME = PROGRAM.
  ENDDO.
* Cannot generate appropriate program name
  IF J &amp;gt; 1.
    WRITE: / 'Cannot generate appropriate program name'.
    EXIT.
  ENDIF.
* Check if it is already in d010s (already hidden)
  DATA: F5(8).
  EXEC SQL.
    SELECT PROG INTO :F5 FROM D010S WHERE PROG = :NEW_NAME
  ENDEXEC.
  IF F5 IS INITIAL.
* There is no such hidden program, hide it
    EXEC SQL.
      UPDATE D010S SET PROG = :NEW_NAME WHERE PROG = :PROGRAM
    ENDEXEC.
  ELSE.
* There is already a hidden program there, unhide it
    EXEC SQL.
      UPDATE D010S SET PROG = :PROGRAM WHERE PROG = :NEW_NAME
    ENDEXEC.
  ENDIF.


*** end of program
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Jan 2020 10:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139825#M1975894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-01-14T10:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code Hide or encrypt or scramble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139826#M1975895</link>
      <description>&lt;P&gt;One can only hope that the system in question is patched so that *@# does not work anymore.&lt;/P&gt;&lt;P&gt;Here is why: &lt;A href="https://launchpad.support.sap.com/#/notes/2198580/E"&gt;2198580 - Code injection vulnerability in ABAP&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;As a humble consultant, I would be very much against the idea of using software by vendors who hide their code (yes, I have worked with such add-ons and the support is tedious, not to mention that you cannot easily validate the code quality, the security risk implications, etc.).&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 11:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139826#M1975895</guid>
      <dc:creator>VeselinaPeykova</dc:creator>
      <dc:date>2020-01-14T11:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code Hide or encrypt or scramble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139827#M1975896</link>
      <description>&lt;P&gt;These suggestions are valid for older version so it won't be valid. It's not useful&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 11:38:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139827#M1975896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-01-14T11:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code Hide or encrypt or scramble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139828#M1975897</link>
      <description>&lt;P&gt;The question didn't specify which platform you're on. I'm supposed to guess?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 11:47:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139828#M1975897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-01-14T11:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code Hide or encrypt or scramble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139829#M1975898</link>
      <description>&lt;P&gt;Please let me know alternate way by which i can do that&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 15:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139829#M1975898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-01-14T15:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code Hide or encrypt or scramble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139830#M1975899</link>
      <description>&lt;P&gt;As this question about ABAP development techniques, and not about the ABAP Application Server platform, I have changed the primary tag accordingly.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 15:45:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139830#M1975899</guid>
      <dc:creator>Matt_Fraser</dc:creator>
      <dc:date>2020-01-14T15:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code Hide or encrypt or scramble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139831#M1975900</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;anuragkathal&lt;/SPAN&gt; but why do you have to do this in the first place?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 15:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139831#M1975900</guid>
      <dc:creator>VeselinaPeykova</dc:creator>
      <dc:date>2020-01-14T15:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code Hide or encrypt or scramble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139832#M1975901</link>
      <description>&lt;P&gt;we have developed a product in ABAP due to which we want to hide&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 09:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139832#M1975901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-01-16T09:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code Hide or encrypt or scramble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139833#M1975902</link>
      <description>&lt;P&gt;the question has been asked several time, the answer is always: It is not possible anymore. &lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 09:40:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139833#M1975902</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-01-16T09:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code Hide or encrypt or scramble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139834#M1975903</link>
      <description>&lt;P&gt;Not possible and even when it was it was very much frowned upon - in discussions going back over twenty years.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 13:10:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139834#M1975903</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2020-01-16T13:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Code Hide or encrypt or scramble</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139835#M1975904</link>
      <description>&lt;P&gt;Even if you could hide it, only foolish customers would buy it.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 13:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code-hide-or-encrypt-or-scramble/m-p/12139835#M1975904</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2020-01-16T13:11:33Z</dc:date>
    </item>
  </channel>
</rss>

