on 08-22-2007 12:24 PM
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.
Hello,
Can you please elaborate on this '*@#@@[SAP]' part.
Regards.
Ruchit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.