how to protect your source abap program from ot
DESCRIPTION
abap protectTRANSCRIPT
7/15/2019 How to Protect Your Source ABAP Program From Ot..
http://slidepdf.com/reader/full/how-to-protect-your-source-abap-program-from-ot 1/2
6/20/13 How to protect your source ABAP program from ot... | SCN
scn.sap.com/docs/DOC-42925
Getting Started Newsletters Store
Products Services & Support About SCN Downloads
Industries Training & Education Partnership Developer Center
Lines of Business University Alliances Events & Webinars Innovation
18 pointsWelcome, riten patel Search the Community
Activity Communications Actions
Brow se Create
0 Tweet
created by Debdutta Satpathy on Jun 17, 2013 8:24 AM, last modified by Debdutta Satpathy on Jun 17, 2013 8:39 AM
Dear all
You can protect your own ABAP program using the following steps.
Step1 : Create a Enhancement project using CMOD.
Step2 : Add enhancement SEUED001 (ABAP Editor)
Step3 : Click on Component and double click on the exit EXIT_SAPLS38E_001 Step4 : Double click on the Include ZXSEUU08.
Step5 : Write the following code and activate it properly.
DATA: progname TYPE progname.
SELECT SINGLE name FROM trdir INTO prognam e
WHERE name = program
AND edtx = 'X'.
IF progname IS NOT INITIAL AND progname+0(1) = 'Z'. "AND ( operation = 'EDIT' OR operation = 'SHOW' ).
MESSAGE 'Entry to source code restricted...' TYPE 'S'.
LEAVE SCREEN.
ENDIF.
Step6 : Create a Z program as shown below, this program will allow you to block and allow the users to
see your program through SE38.
Enter the Program Name here and execute it by selecting the required Radio button.
rite the following code
DATA: wa_trdir TYPE trdir.
SELECT SINGLE * FROM trdir INTO wa_trdir
WHERE nam e = s_name.
IF open_edi t = 'X'.
CLEAR wa_trdir-edtx .
ELSEIF block_edt = 'X'.
wa_trdir-edtx = 'X'.
ENDIF.
How to protect your source ABAP programfrom others.
ShareShare
Version 1
7/15/2019 How to Protect Your Source ABAP Program From Ot..
http://slidepdf.com/reader/full/how-to-protect-your-source-abap-program-from-ot 2/2
6/20/13 How to protect your source ABAP program from ot... | SCN
scn.sap.com/docs/DOC-42925
Follow SCNSite Index Contact Us SAP Help Portal
Privacy Terms of Use Legal Disclosure Copyright
Average User Rating
(5 ratings)
My Rating:
Tweet0
MODIFY trdir FROM wa_trdir.
Thanks
Debdutta Satpathy
228 View s Tags: none
ShareShare
6 Comments
Like (3)
Gareth Ryan Jun 17, 2013 9:27 AM
And why would you want to do that?!
Like (4)
Matthew Billingham Jun 17, 2013 9:49 AM
So, you have a program to set the edi tor lock - which you can al ready do from SE38. And you have an
exit to stop people editing a program with editor lock - which is what happens already when the
editor lock set.
Note - setting the editor lock is often forbidden on client sites as it causes problems when the
programmer leaves - perhaps for setting the editor lock...
Like (1)
neha gupta Jun 17, 2013 9:56 AM
If I am not wrong, you can do the same think by checking EDITOR LOCK option I think.
Attributes -> Editor Lock -> Check.
Like (2)
Manish Kumar Jun 17, 2013 2:25 PM
I remember reading a wiki article on simil ar topic.
I couldn't stop laughing after reading the mes sages that were shown to user trying to copy program.
MESSAGE ' Hahaha You cannot change m y Object' TYPE 'S'.
MESSAGE ' Hahaha You cannot copy my Object' TYPE 'E' DISPLAY LIKE 'I'.
Like (0)
Vamshi Mohan Jun 17, 2013 2:50 PM
The only advantage of using the enhancement is, the enhancement can be deactivated even if the
developer forgets to do so and continue editing the program.
Plz comment.
Like (0)
neha gupta Jun 17, 2013 3:00 PM
Yes, and also we can make user specific comments as Manish s aid.