Sunteți pe pagina 1din 5

How to restrict the ABAP code to be not viewed ...

| SCN

1 of 5

http://scn.sap.com/thread/1187130

Hi, Guest

Log On Join Us

Products

Services & Support

About SCN

Downloads

Industries

Training & Education

Partnership

Developer Center

Lines of Business

University Alliances

Events & Webinars

Innovation

Share

Tweet

ABAP Learner

Jan 6, 2009 6:21 AM

How to restrict the ABAP code to be not viewed


by others
This question has been Answered.
Hello Gurus
First of all i would like to wish a Very Happy New Year to you all in SDN
i have written a report program in SE38 i want to lock that code not to be opened by any other person
except me, even in display mode aslo it should not open.. just like the password protected excel sheet
how can we do that ?
thanks in advance

Correct Answer
by Uwe Schieferstein on Jan 6, 2009 7:59 AM
Hello
If you search with Google ("hide abap code") you will immediately find ABAP programs which will do
the job.
But why does anybody want to hide ABAP coding???
If it is malicious coding (e.g. manipulating authorizations) then you have a good reason to hide your
ABAP (yet hopefully you will be caught one day...).
If it is brilliant coding then I would use a platform like SDN to publish it to every interested SAP user
because this way you can show us your wits.
Given the fact that you are hiding your true identity behind a pseudonym I doubt whether your
intention is honourable...
Regards
Uwe

Helpful Answer by Sanket Sethi

1524 Views

Topics: abap

Average User Rating


(0 ratings)

Guest Jan 6, 2009 6:28 AM (in response to ABAP Learner)

Re: How to restrict the ABAP code to be not viewed by others

31-10-2014 6:19 PM

How to restrict the ABAP code to be not viewed ... | SCN

2 of 5

http://scn.sap.com/thread/1187130

Hi ABAPER1234,
in the Program Attributes we have the Editor lock check that one. with that you can only edit that
particular report others cannot.
Regarding the not even to display of your report to others as far as my knowledge we dont have that
option.
Thanks!

Like (0)

tulasi palnati Jan 6, 2009 6:25 AM (in response to ABAP Learner)


Re: How to restrict the ABAP code to be not viewed by others
Hi
try this
Goto --> Program Attributes --> Tick the checkbox for Editor Lock
Thanks,
Tulasi Palnati

Like (0)

Sahil Kakar Jan 6, 2009 6:50 AM (in response to tulasi palnati)


Re: How to restrict the ABAP code to be not viewed by others
Hi
> Goto --> Program Attributes --> Tick the checkbox for Editor Lock
By checking the editor lock you can make the program un-editable but still people can view the
code .
I think to do his the only way out is to remove the authorization of SE38 .
Thanks
Sahil

Like (0)

Sandipan Ghosh Jan 6, 2009 6:30 AM (in response to ABAP Learner)


Re: How to restrict the ABAP code to be not viewed by others
Hi,
First of all Editor lock can open the program in display mode.
You have to assign authorization group to the Program.
Regards
Sandipan

Like (0)

Sanket Sethi Jan 6, 2009 6:35 AM (in response to Sandipan Ghosh)


Helpful Answer Re: How to restrict the ABAP code to be not viewed by others
I use some SAP syntax to hide the code but once you do this, it will not come again(Code). So in
my opinion Auth. group option is better one.
Thanks
Sanket

31-10-2014 6:19 PM

How to restrict the ABAP code to be not viewed ... | SCN

3 of 5

http://scn.sap.com/thread/1187130

Like (0)

Gautham Vangaveti Jan 6, 2009 6:56 AM (in response to ABAP Learner)


Re: How to restrict the ABAP code to be not viewed by others
Apart from EDITOR LOCK option you can also use this exit.
SEUED001.
try this logic there.
if sy-uname <> 'ABAP'.
if program = 'ZTEST' .
raise cancelled.
endif.
endif.

Like (0)

prashant sharma Jan 6, 2009 6:57 AM (in response to ABAP Learner)


Re: How to restrict the ABAP code to be not viewed by others
Hi
you can try this link -

http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/frameset.htm
or
you can create authorization object in SU21 and then can giv access to particular users
regards
prashant

Like (0)

Guest Jan 6, 2009 7:40 AM (in response to ABAP Learner)

Re: How to restrict the ABAP code to be not viewed by others


Hi
Using Editor Lock, u can make the program not alterable by other user. Still the code can be viewed by
other users. But, if you want to make the code invisible, u need to restrict with the authorization group.
This can be done in SU21 and then can giv access to particular users so that they only will view the
code.
Rgds
Zaran

Like (0)

Guest Jan 6, 2009 7:41 AM (in response to Guest )

Re: How to restrict the ABAP code to be not viewed by others


It seems cumbersome. I dont think it will help.

Like (0)

31-10-2014 6:19 PM

How to restrict the ABAP code to be not viewed ... | SCN

4 of 5

http://scn.sap.com/thread/1187130

vivek amrute Jan 6, 2009 7:20 AM (in response to ABAP Learner)


Re: How to restrict the ABAP code to be not viewed by others
one can hide a ABAP program but it is not recomended. it will cause problems in Upgrade.

Like (0)

Raju Chitale Jan 6, 2009 7:26 AM (in response to ABAP Learner)


Re: How to restrict the ABAP code to be not viewed by others
Hi,
You may use ZXseuu01 of EXIT_SAPMS38L_001. Please note that you will have to define a new
project via CMOD & include the enhancement SEUED001 in it. In the 'Exit' mentioned above you can
put your own logic. Simplest would be
check sy-uname = 'ABAP1'.
I hope this helps,
Regards
Raju Chitale

Like (0)

Guest Jan 6, 2009 7:41 AM (in response to Raju Chitale)

Re: How to restrict the ABAP code to be not viewed by others


It seems cumbersome. I dont think it will help.

Like (0)

Guest Jan 6, 2009 7:41 AM (in response to Raju Chitale)

Re: How to restrict the ABAP code to be not viewed by others


It seems cumbersome. I dont think it will help.

Like (0)

Uwe Schieferstein Jan 6, 2009 7:59 AM (in response to ABAP Learner)


Correct Answer Re: How to restrict the ABAP code to be not viewed by others
Hello
If you search with Google ("hide abap code") you will immediately find ABAP programs which will do the
job.
But why does anybody want to hide ABAP coding???
If it is malicious coding (e.g. manipulating authorizations) then you have a good reason to hide your
ABAP (yet hopefully you will be caught one day...).
If it is brilliant coding then I would use a platform like SDN to publish it to every interested SAP user
because this way you can show us your wits.
Given the fact that you are hiding your true identity behind a pseudonym I doubt whether your intention
is honourable...
Regards
Uwe

31-10-2014 6:19 PM

How to restrict the ABAP code to be not viewed ... | SCN

5 of 5

http://scn.sap.com/thread/1187130

Like (0)

Shiv G Sethu Jan 6, 2009 8:23 AM (in response to Uwe Schieferstein)


Re: How to restrict the ABAP code to be not viewed by others
Hi ,
Yes , what Uwe says is Correct ...
There is no need for a Code to get Hidded, If any of the user is not authorised to view the code ,
through authorisation group you restrict the user .
Hidding code can impact in Upgrade and its not a right approach to do so .
Regards,
Shiv.G.Sethu

Like (0)

Uwe Schieferstein Jan 6, 2009 8:26 AM (in response to ABAP Learner)


Re: How to restrict the ABAP code to be not viewed by others
Hello
Regarding the Editor Lock (which does not hide but just prevents modification of the object by another
user) it takes less than 40 seconds of debugging to get rid of this obstacle...
Regards
Uwe

Like (0)

Share

Tweet

Site Index

Contact Us

SAP Help Portal

Privacy

Terms of Use

Legal Disclosure

Copyright

31-10-2014 6:19 PM

S-ar putea să vă placă și