2015 Jan 15 1:35 PM
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?
2015 Jan 15 2:03 PM
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).
2015 Jan 16 5:51 AM
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.
2015 Jan 16 6:03 AM
Are you aware that sharing a userid for development is almost certainly a violation of your license agreement with SAP?
2015 Jan 16 7:01 AM
Yes I am fully aware of that but for training purpose it may happen that your partner have the same ID.
2015 Jan 16 5:20 AM
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
2015 Jan 16 6:04 AM
Be aware that setting editor lock is a disciplinary offence in many places.
2015 Jan 16 9:17 AM
.... and wouldn't solve this problem anyway as the users are sharing a single ID.
2015 Jan 16 5:52 AM
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
2015 Jan 16 6:05 AM
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.
2015 Jan 16 12:10 PM
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.
2015 Jan 16 12:37 PM
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.
2015 Jan 16 2:52 PM
That's right. Just make a local Transport (or Transport of Copies) with the object on it, and release it.
2015 Jan 16 3:05 PM
2015 Jan 16 3:18 PM
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