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

authorization Object Lock

Former Member
0 Likes
1,764

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,232

Goto--Attributes

Check the Editor Lock check box..

This will not allow others to edit your program.

Read only

Former Member
0 Likes
1,232

Hi

Check in this link.It will help you----


regards

Prashant

Read only

Former Member
0 Likes
1,232

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..

Read only

former_member404244
Active Contributor
0 Likes
1,232

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

Read only

0 Likes
1,232

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.

Read only

Former Member
0 Likes
1,232

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

Read only

Saif_Ali_Sabri
Active Participant
0 Likes
1,232

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

ERP Implementations Services: Multi-Organization, Intercompany Transaction and Consolidation Hub (Single SQL Database)
Read only

Former Member
0 Likes
1,232
Read only

Former Member
0 Likes
1,232

Hi,

Check the below Thread

Regards,

Anki Reddy