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

locking objects under same user ID

Former Member
0 Likes
3,023

I have an user id in a SAP instance and i have prepared a report in that. The user ID is shared and I want to lock my  report from others so that it does not get hampered. Is it possible?

14 REPLIES 14
Read only

former_member201285
Active Participant
0 Likes
2,800

I'm not really sure if I understood your requirement. If a lock has been set (by calling the respective enqueue function module), another user cannot get access on the object, even it is the same user id (say, we are talking about exclusive locks).

Read only

0 Likes
2,800

Thank you Ulrich. Actually I was asking about locking The whole program so that it is uneditable to others who are using the same user ID as of mine. If someone logs in with the same user ID and Password they must not be authorised to edit my one. That was my question.

Read only

0 Likes
2,800

Are you aware that sharing a userid for development is almost certainly a violation of your license agreement with SAP?

Read only

0 Likes
2,800


Yes I am fully aware of that but for training purpose it may happen that your partner have the same ID.

Read only

Former Member
0 Likes
2,800

Hi,

If you dont want others to change your report/prg apart from the user id which you have used to develop that report, you can set editor lock so that other's cannot do any changes to that report.

Hope it helps you.

Thanks

KH

Read only

matt
Active Contributor
0 Likes
2,800

Be aware that setting editor lock is a disciplinary offence in many places.

Read only

0 Likes
2,800

.... and wouldn't solve this problem anyway as the users are sharing a single ID.

Read only

singhmanishekhar
Explorer
0 Likes
2,800

Hi,

  There is no such type of tool or program that provides facility to lock or make report read only.

However, It is very easy to achieve this requirement. You should write a very simple program to update the "EDTFLAG" field of table "TADIR".

For locking, set 'X' in this field for field "OBJ_NAME" =  your report name.

For unlocking, clear the flag.

Precaution :- As "TADIR" table contains information about all development objects. Use Update statement very carefully.

Thanks & regards,

Mani

Read only

0 Likes
2,800

Why do you write a program to do this, when it's an attribute of the program settable through SE38? Also be aware that setting editor lock is a disciplinary offence in many places.

Read only

Former Member
0 Likes
2,800

You can copy the code to local file or email draft (and delete the program) before leaving and paste it again when you come back next day. Other person can't hamper the program because it does not exist while you are away from keyboard.

Read only

JL23
Active Contributor
0 Likes
2,800

I think this would not even be needed to download as you have versions management.

So the old version can be brought back the other day, and the same could be done from the second user for his version.

Read only

matt
Active Contributor
0 Likes
2,800

That's right. Just make a local Transport (or Transport of Copies) with the object on it, and release it.

Read only

0 Likes
2,800

Or use

SAPLink

Regards,
Raymond

Read only

Former Member
0 Likes
2,800

You could transfer the program to one of the administrative users and then lock it.  I can't guess how hard that would be to do, but I imagine it would be possible.

Neal