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

Setting password to source code

Former Member
0 Likes
906

Hi,

I want to set a password for my report program which i have create using se38.

please provide me any sample code.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
679

Hi,

In addition to selvi's reply, You can use authorization technique as well as locking concepts to lock ur program.

Regards...

Arun.

3 REPLIES 3
Read only

Former Member
0 Likes
679
REPORT ZEDITOR. 
TABLES: TRDIR. "System table
 TRDIR 
PARAMETERS: PROGRAM LIKE TRDIR-NAME.
 PARAMETERS: EDITOR  LIKE TRDIR-EDTX. 
SELECT SINGLE * FROM TRDIR 
  WHERE NAME = PROGRAM. 
TRDIR-EDTX = EDITOR. 
MODIFY TRDIR. 
IF SY-SUBRC EQ 0.   
 WRITE: / 'Editor Lock update Successful ',
 TRDIR-NAME. 
   IF TRDIR-EDTX = 'X'.     
  WRITE: ' Lock'.   
 ELSE.    
   WRITE: ' UnLock'.    
ENDIF.
 ELSE.  
  WRITE: / 'Editor Lock update Unsuccessful ', 
TRDIR-NAME.
 ENDIF.

Check this link

http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4c8a79e11d1950f0000e82de14a/content.htm

http://www.sap-img.com/abap/how-to-delete-an-editor-lock.htm

http://www.geocities.com/SiliconValley/Grid/4858/sap/ABAPCode/LockUsers.htm

Read only

Former Member
0 Likes
680

Hi,

In addition to selvi's reply, You can use authorization technique as well as locking concepts to lock ur program.

Regards...

Arun.

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
679

Hi

You can make ur program password protected using Authorization-concept

by creating a corresponding entry in TPGP table or

by using lock objects.

Regards,

kumar