Application Development and Automation 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: 
Read only

source code protection

herzelhaimharel_gilor
Participant
0 Likes
1,523

Hi Folks ,

how can i expose source code which is protected ?

means that when i try to display source of some program in SE38 it's generate mesaage that say that the source is protected .

i see this issue as a greate challenge to some sort of people .

Thanks .

8 REPLIES 8
Read only

Former Member
0 Likes
1,152

Hi

Which message?

I know it can only set a flag to lock the program and then only the user setted the lock can unlock it.

Max

Read only

Former Member
0 Likes
1,152

Hi herzel,

1. Its next to impossible.

2. Once the source code is protected,

by no means, can we make it

viewable.

3. Only SAP can do it !

regards,

amit m.

Read only

0 Likes
1,152

Hi ,

a have some news 4 u .

in ancient times of R/3 oldest versions , there's a common line in a head of a ABAP programs that cuase it to be protected ( *@#@@[SAP]. ) .

but this line is no longer effective from release 4.6c.

from version 4.6c there's some techniqe that remove some flag from table D010S & D010SINF that cuase the source code to be untouchable .

basically i don't think that we can't expose source code that was hided (unless it was written on an oldest version and ported to higher one ) .

enjoy digging SAP internals , -:) .

Read only

0 Likes
1,152

Hi again,

1. ya u are right, i was also of the same opinion,

2. but these tables are not available in

data dictionary nor in the actual

physical database.

D010S - is not available

D010SINF - is just a view of table REPOSRC

*********

and the big thing

is that we cannot modify

and entry in REPOSRC table

using open sql.

(u may try it, but it will give u

some error saying that

this table is protected by sap,

hence, cannot be modified)

regards,

amit m.

Read only

Former Member
0 Likes
1,152

Hi,

You can unlock the source code in se38 only by logging in with the user Id of the person who has locked it.

Otherwise You should be a super useri.e having more authorisations than the person who has locked it.

Regards,

Gayathri

Read only

0 Likes
1,152

What version are you on? I know 'HIDING' was possible in 46c & lower.. I think SAP has gotten better of it and I believe it is no longer possible to do it.. You can search in SAPFANS.com for a solution.. I remember this issue was heavily discussed on its ABAP forum 3/4 years back..

Regards,

Suresh Datti

Read only

Former Member
0 Likes
1,152

HI

It as simple as that

Yes you cant modify the source code but you can display the source code by clicking on the display button which will help you to display the code in your abap editor and you can get some idea.

When it is asking for password you click on the display button.

I hope this will help you to solve your problem,

Thanks

Mrutyunjaya Tripathy

Read only

former_member189059
Active Contributor
0 Likes
1,152

use this

DATA: gt_code(72) TYPE c OCCURS 0,

gv_code LIKE LINE OF gt_code,

gt_code2(72) TYPE c OCCURS 0.

PARAMETERS: program LIKE sy-repid.

START-OF-SELECTION.

READ REPORT program INTO gt_code.

APPEND '*@#@@[SAP]' TO gt_code2.

LOOP AT gt_code INTO gv_code.

APPEND gv_code TO gt_code2.

ENDLOOP.

INSERT REPORT program FROM gt_code2.

  • print unhidden source code for backup issues

LOOP AT gt_code INTO gv_code.

WRITE: / gv_code.

ENDLOOP. "LOOP AT gt_code INTO gv_code

but once hidden, we cannot get the source code back