cancel
Showing results for 
Search instead for 
Did you mean: 

About unprotect a report program's source code

Former Member
0 Kudos

Hi all,

I have protect the report program using a report program. In this process if i change/display a report program it doesn't displays its source code but it execute that program.The whole source code is Stored in an internal table.but the real problem is that when i open that program's source code it protected and doesn't appears.

I doing this by using '*@#@@[SAP]'. This is provided by SAP to protect a report program.

Now my query is ' there is any thing to unprotected that program' ?

Suggest.

Thanks

Sanket sethi.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

Can you please elaborate on this '*@#@@[SAP]' part.

Regards.

Ruchit.

Former Member
0 Kudos

Okay I found out what you mean. From what I read once you introduce *@#@@[SAP]' it cannot be undone and the report code can not be changed.

Regards.

Ruchit.

Former Member
0 Kudos

I send you my code view it and then suggess me something.

but make sure thet you have the backup for that program that you want to protect.

&----


*& Report ZSAN_PROTECT *

*& *

&----


*& *

*& *

&----


REPORT ZSAN_PROTECT .

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE LV_FRTTL.

PARAMETERS: PROGRAM LIKE SY-REPID.

SELECTION-SCREEN END OF BLOCK B1.

DATA: GT_CODE(72) TYPE C OCCURS 0,

GV_CODE LIKE LINE OF GT_CODE,

GT_CODE2(72) TYPE C OCCURS 0.

INITIALIZATION.

  • sets the value for the title of the parameters block

LV_FRTTL = 'Parameters'.

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.

  • DELETE GT_CODE INDEX 1.

INSERT REPORT PROGRAM FROM GT_CODE2.

  • print unhidden source code for backup issues

LOOP AT GT_CODE INTO GV_CODE.

WRITE: / GV_CODE.

ENDLOOP.

now my query is that how to protect it.

Former Member
0 Kudos

Unprotected.

Former Member
0 Kudos

Hi Sanket,

Can i come to konw how you was unprotected your code..?

Regards,

Vipul