‎2006 Mar 29 11:07 AM
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 .
‎2006 Mar 29 11:13 AM
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
‎2006 Mar 29 11:13 AM
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.
‎2006 Mar 29 12:19 PM
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 , -:) .
‎2006 Mar 29 12:33 PM
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.
‎2006 Mar 29 11:27 AM
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
‎2006 Mar 29 11:31 AM
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
‎2006 Mar 29 12:51 PM
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
‎2007 Mar 22 10:45 AM
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