‎2009 Jan 13 9:11 AM
Hi all,
How to create such a lock to lock a Ztable such that only a certain group of individuals can display or write to my Ztable.
Please help.
Thanks in Advance.
‎2009 Jan 13 9:14 AM
Goto--Attributes
Check the Editor Lock check box..
This will not allow others to edit your program.
‎2009 Jan 13 9:15 AM
‎2009 Jan 13 9:17 AM
create an authorisation object and group for the ztable with the help of a basis guy if u dont have it already...
then when u create the table maintenance generator for the ztable, assign the authorisation group to it..
‎2009 Jan 13 9:18 AM
Hi,
While u create the table maintainence generator for ur ztable, u can create a authorization object and attach to it...
in the program if u want to lock and unlock
then use the below FM'S
'ENQUEUE_E_TABLE'
'DEQUEUE_E_TABLE'.
Regards,
Nagaraj
‎2009 Jan 13 9:20 AM
hi ,
Thanks for the reply....but how to create Authorization Object for my table..
Please explain in little bit detail..I am new to ABAP.
Thanks in Advance.
‎2009 Jan 13 9:25 AM
Hi
for creating authorization object follow this link----
http://help.sap.com/saphelp_bw33/helpdata/en/52/67167f439b11d1896f0000e8322d00/frameset.htm
Also you can try with this----
In SU20 you will have to create a CLass.
After saving this double click this and you will taken to another screen where you can create Auth Object.
You can create authorization fields in SU21 or use existing ones.
You can also do above thru tcode SE80 Edit -> Other Object. In one the tabs you will see Auth. Objects
regards
Prashant
Edited by: prashant sharma on Jan 13, 2009 10:26 AM
‎2009 Feb 17 7:51 AM
Hi
The first function module used to set locks is the ENQUEUE_<Lock_Object_Name>. This function module is used to generate lock entry in the lock table. If the lock cannot be set for any reason then this would be reflected in the return code.
The second function module used to set locks is the DEQUEUE_<Lock_Object_Name>. This function module will remove lock a entry from the table.
These function modules are used to set or release lock in an ABAP Program. The Programmer simply
performs the specific u201CCALL FUNCTION . . .u201D statement for each function module.
There are two types of locks that can be set:
1. Shared Lock: is a read only lock.
2. Exclusive Lock: is a write lock.
Regards from Saif Sabri
‎2009 Feb 17 8:23 AM
Hi
Check below SAP help thread it may be useful.
http://help.sap.com/saphelp_nw04s/helpdata/en/1e/e867408cd59b0ae10000000a155106/content.htm
Thanks
‎2009 Feb 17 9:00 AM