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

Lock Objects

Former Member
0 Likes
1,153

Hi All,

Can anybody explain me what are the lock objects and what is exact use of it?

I also want to know the transaction used to know the list of programs and other objects changed when we are going to upgrade the system.

Thanks & Regards,

Deepak.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
989

Hi

It's a logical lock, used to avoid several users elaborate the same records contemporany.

For every table u can create a lock object by trx SE11, after creating it the system generates a function for locking and a function for unlocking can be used in the program to active or deactive the lock.

The fm for locking checks if the record is just locked by another user.

The trx for program updated by upgrade or patch is SPAU

Max

6 REPLIES 6
Read only

Former Member
0 Likes
989

Hi pls check this link yaar

The SAP System synchronizes simultaneous access of several users to the same data records with a lock mechanism. When interactive transactions are programmed, locks are set and released by calling function modules (see Function Modules for Lock Requests). These function modules are automatically generated from the definition of lock objects in the ABAP Dictionary.

http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm

it is SE11. in SE11 u have option Lock Object

reward if helpful

raam

Read only

Former Member
0 Likes
989
Read only

ak_upadhyay
Contributor
0 Likes
989

Hi,

Lock Objects

The SAP System synchronizes simultaneous access of several users to the same data records with a lock mechanism. When interactive transactions are programmed, locks are set and released by calling function modules (see Function Modules for Lock Requests). These function modules are automatically generated from the definition of lock objects in the ABAP Dictionary.

Structure of a Lock Object

The tables in which data records should be locked with a lock request are defined in a lock object together with their key fields. When tables are selected, one table (the primary table) is first selected. Further tables (secondary tables) can also be added using foreign key relationships (see also Conditions for Foreign Keys).

Lock Arguments

The lock argument of a table in the lock object consists of the key fields of the table.

The lock argument fields of a lock object are used as input parameters in the function modules for setting and removing locks generated from the lock object definition. When these function modules are called, the table rows to be locked or unlocked are specified by defining certain values in these fields. These values can also be generic. The lock argument fields therefore define which subset of the table rows should be locked.

The simplest case of a lock object consists of exactly one table and the lock argument of the table is the primary key of this table. Several tables can also be included in a lock object. A lock request therefore can lock an entire logical object, and not only a record of a table. Such a logical object can be for example a document comprising an entry in a header table and N entries in a position table.

Locks can also be set from programs in other systems with the corresponding interfaces if the lock object was defined with RFC authorization.

A lock mode can be assigned for each table in the lock object. This mode defines how other users can access a locked record of the table.

Reward points if useful....

Regards

AK

Read only

Former Member
0 Likes
989

locked objects would be objects from SAP standard that are locked in transport requests. you will have to release them in order to get your upcoming upgrade safely through phase import_proper.

before the upgrade check in tx SE03 (or any other transport-related SE*) whether there are workbench-transports that contain SAP elements.

there's no such transaction as far as i know. make sure you read the release-notes etc. in order to get an image of the changes that will affect your business.

Read only

Former Member
0 Likes
990

Hi

It's a logical lock, used to avoid several users elaborate the same records contemporany.

For every table u can create a lock object by trx SE11, after creating it the system generates a function for locking and a function for unlocking can be used in the program to active or deactive the lock.

The fm for locking checks if the record is just locked by another user.

The trx for program updated by upgrade or patch is SPAU

Max

Read only

0 Likes
989

All of you!! Please read the original posters question!!

He/she prepares to do a system-upgrade!

Edited by: Mylene Euridice Dorias on Apr 15, 2008 12:40 PM