Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos
2,340

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

1 ACCEPTED SOLUTION

uwe_schieferstein
Active Contributor
0 Kudos
1,316

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

17 REPLIES 17

Former Member
0 Kudos
1,316

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!

Former Member
0 Kudos
1,316

Hi

try this

Goto --> Program Attributes --> Tick the checkbox for Editor Lock

Thanks,

Tulasi Palnati

0 Kudos
1,316

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

Former Member
0 Kudos
1,316

Hi,

First of all Editor lock can open the program in display mode.

You have to assign authorization group to the Program.

Regards

Sandipan

0 Kudos
1,316

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

0 Kudos
1,242

May I know that syntax

GauthamV
Active Contributor
0 Kudos
1,316

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.

Former Member
0 Kudos
1,316

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

Former Member
0 Kudos
1,316

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

0 Kudos
1,316

It seems cumbersome. I dont think it will help.

Former Member
0 Kudos
1,316

one can hide a ABAP program but it is not recomended. it will cause problems in Upgrade.

Former Member
0 Kudos
1,316

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

0 Kudos
1,316

It seems cumbersome. I dont think it will help.

0 Kudos
1,316

It seems cumbersome. I dont think it will help.

uwe_schieferstein
Active Contributor
0 Kudos
1,317

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

0 Kudos
1,316

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

uwe_schieferstein
Active Contributor
0 Kudos
1,316

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