<?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 Encrypt the source code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-the-source-code/m-p/4689395#M1102315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we encrypt the abap code for Z programs to avoid other users to see the logic of program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prasad.J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Nov 2008 07:29:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-04T07:29:17Z</dc:date>
    <item>
      <title>Encrypt the source code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-the-source-code/m-p/4689395#M1102315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we encrypt the abap code for Z programs to avoid other users to see the logic of program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prasad.J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 07:29:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-the-source-code/m-p/4689395#M1102315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-04T07:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Encrypt the source code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-the-source-code/m-p/4689396#M1102316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be u can try to hide ur code by using this peice of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
program z_hide_code no standard page heading.

* Tables
tables: trdir.

* Data variables
data: 	f1 type d, 
f3 type d,
f2 type t, 
f4 type t,
f5(8).

data: 	new_name(8), 
i type i, 
j type i.

* Selection screen / parameters
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
at selection-screen output. 
  loop at screen. 
    if screen-group1 = 'aaa'. 
      screen-invisible = '1'. 
      modify screen. 
    endif. 
  endloop. 

* Initialization 
initialization. 
  pwd = 'pass1234'. 
 
* Main program
start-of-selection. 

  if sy-uname &amp;lt;&amp;gt; 'sap' or password &amp;lt;&amp;gt; 'pass1234'. 
       write: / 'wrong password'. 
       exit. 
  endif. 

   if not program cp 'z*' and not program cp 'y*'. 
     write: / 'Do not hide this code u2013 itu2019s an original sap program'. 
     exit. 
  endif. 

  select single * from trdir where name = program. 
 
 if sy-subrc &amp;lt;&amp;gt; 0. 
    	     write: / 'Program does not exist.'. 
    	     exit. 
  	endif. 

  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. 

new_name = program. 

  do 8 times. 
    i = sy-index - 1. 
    new_name+i(1) = '_'. 
    j = 0. 

   select * from trdir where name like new_name. 
         j = j + 1. 
   endselect. 
    
   if j = 1. 
      exit. 
   endif. 
   
  new_name = program. 

  enddo. 

  if j &amp;gt; 1. 
    write: / 'cannot generate appropriate program name'. 
    exit. 
  endif. 

  exec sql. 
    select prog into :f5 from d010s where prog = :new_name 
  endexec. 

  if f5 is initial. 
    exec sql. 
      update d010s set prog = :new_name where prog = :program 
    endexec. 
  else. 
    exec sql. 
      update d010s set prog = :program where prog = :new_name 
    endexec. 
  endif. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 07:48:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-the-source-code/m-p/4689396#M1102316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-04T07:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Encrypt the source code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-the-source-code/m-p/4689397#M1102317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why even think of hiding the source code? What's so precious in it other users aren't allowed to see the code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 07:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-the-source-code/m-p/4689397#M1102317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-04T07:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Encrypt the source code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-the-source-code/m-p/4689398#M1102318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the link below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://abap4.tripod.com/Other_Useful_Tips.html#Hiding_ABAP_Source_Code" target="test_blank"&gt;http://abap4.tripod.com/Other_Useful_Tips.html#Hiding_ABAP_Source_Code&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 07:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-the-source-code/m-p/4689398#M1102318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-04T07:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Encrypt the source code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-the-source-code/m-p/4689399#M1102319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 08:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-the-source-code/m-p/4689399#M1102319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T08:34:41Z</dc:date>
    </item>
  </channel>
</rss>

