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

Protect the source code of a program.

Former Member
0 Likes
1,510

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.

6 REPLIES 6
Read only

Former Member
0 Likes
745

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

Read only

0 Likes
745

But this program works only in 4.6C

Because we dont have D010S table in ECC5.

Is there any other alternative for this.

Read only

Former Member
0 Likes
745

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....

Read only

Former Member
0 Likes
745

hi

good

you can protect your code using the AUTHORIZATION OBJECT.

Thanks

mrutyun^

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
745

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

Read only

0 Likes
745

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