Wednesday, July 9, 2008

Hiding source code of a program

By Joyjit Ghosh,
Kolkata, India.

As of 6.20 to hide a program’s source code, you can use the user exit EXIT_SAPLS38E_001.


Step 1. Identify the program that you want to hide.
In this case I want to hide the source code of Z_DEMO_JG.


Step 2. Create a project and add the enhancement SEUED001, as it contains the user exit EXIT_SAPLS38E_001. Then activate the project.

Assign the enhancement to the project

Choose the Function exit EXIT_SAPLS38E_001

Now create the include ZXSEUU08 in customer namespace.

Write the following code blocks in this include and activate it.

if PROGRAM = 'Z_DEMO_JG'.

raise cancelled.

endif.


Activate the project:



Now try to change or display the program Z_DEMO_JG. It will not display the code instead it will show you the following message:

In this way you can restrict the user to display or change the code.

Note: This demo is shown in basis release 6.20.



No comments: