‎2007 Feb 15 9:33 AM
Hi,
I want to protect a program from viewing.Means anyone can not ses my sourse code. How can I incorporate this. For your reference, SAPMSYST this is SAP program which is protected.
Thanks,
Saroj.
‎2007 Feb 15 9:35 AM
Hello Saroj,
refer to this and award points if helpful
http://www.sap-img.com/abap/program-to-hide-abap-source-code-and-protects-it.htm
Vasanth
‎2007 Feb 15 9:40 AM
But this program works only in 4.6C
Because we dont have D010S table in ECC5.
Is there any other alternative for this.
‎2007 Feb 16 4:36 AM
Hi Saroj,
Which SAP version u r using:
if u r using upto 4.6C then use following characters in first line:
*@#@@[SAP]
Remember: This characters should be on first line, must start from first column and must be only character on line i.e. there should not be any other character on same line.
Warning: Take backup of ur source codes as there is no easy way to recover ur source codes....
For 4.6C you can look at table D010SINF set field SQLX to 'X' source codes will not be avaliables
Pl revert back if u want more clarification.
Jogdand
Pl reward if helpful....
‎2007 Feb 16 4:41 AM
hi
good
you can protect your code using the AUTHORIZATION OBJECT.
Thanks
mrutyun^
‎2007 Feb 16 5:13 AM
Hi
You can protect your code by using authorization-object.
We can create the Authorization-object entry in TPGP table.
Afterwards give that created entry in the program attributes->authorization group section.
Regards,
kumar
‎2007 Mar 22 10:48 AM
use this
but after hiding the code, you cannot unhide it
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