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

How to stop viewing my source code in abap

kishorepallapothula
Participant
0 Likes
760

Dear All,

Please help me, how can i stop someone viewing my source code.

Thanks

Kishore

4 REPLIES 4
Read only

Former Member
0 Likes
711

Hi Kishore,

It is not possible to do it entirely but you can try a password feature it is tricky but handy.

http://www.erpgreat.com/abap/program-to-hide-abap-source-code-and-protects-it.htm

Regards

Read only

arindam_m
Active Contributor
0 Likes
711

Hi,

May be design an exit code in Enhancement SEU00001 component EXIT_SAPDSAHD_010 may be to check.

Cheers,

Arindam

Read only

former_member209120
Active Contributor
0 Likes
711

This message was moderated.

Read only

Former Member
0 Likes
711

Hi Kishore,

We can hide our source code by using following code..try this..


DATA:
   gt_code(72) TYPE c OCCURS 0,
   gv_code LIKE LINE OF gt_code.

PARAMETERS: p_progrm TYPE sy-repid.

START-OF-SELECTION.
   READ REPORT p_progrm INTO gt_code.
* READ REPORT returns SY-SUBRC = 8 on a hidden source code
   IF sy-subrc <> 0.
     MESSAGE e398(00) WITH 'Report' p_progrm 'not found.'.
   ENDIF.

   gv_code = '*@#@@[SAP]'.
   INSERT gv_code INTO gt_code INDEX 1.
   INSERT REPORT p_progrm FROM gt_code.

execute this program by giving program name which you want to hide.

Hope..it helps u..

But even we can't see our source code by doing this..No effect on report functionality,it works fine.. I will let you know the way that source code will appear to only u if i found.