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

SM12 Lock table

Former Member
0 Likes
1,181

Dear all,

My program is doing a huge Zxxx table update. But before i perform table updating i want to place a lock on Zxxx table, and my table primary key fields are:

1. MANDT

2. MATNR

3. BWKEY

For each processing, program will handle at least 10,000 material. Which means i need to place 10,000 locks for the table.

I would like to know if there is number of lock limit that a program can place each session?

Please also comment if i got the primary key fields sequence arrangement correct ?

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
923

Look at OSS [Note 13907 - System error in the block handler, overflow lock table|https://service.sap.com/sap/support/notes/13907]

You could also consider locking the whole table by using a generic key.

Regards

Dear all,

My program is doing a huge Zxxx table update. But before i perform table updating i want to place a lock on Zxxx table, and my table primary key fields are:

1. MANDT

2. MATNR

3. BWKEY

For each processing, program will handle at least 10,000 material. Which means i need to place 10,000 locks for the table.

I would like to know if there is number of lock limit that a program can place each session?

Please also comment if i got the primary key fields sequence arrangement correct ?

Thanks in advance.

4 REPLIES 4
Read only

Former Member
0 Likes
923

here if you want to lock entire table then create a Lock object of that table... and use the function modules generated by this object to lock the tale...

with this lock object you can have entry level lock as well...

Read only

0 Likes
923

Hi, thanks for your reply. However please comment base on my question posted above. Thank you.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
924

Look at OSS [Note 13907 - System error in the block handler, overflow lock table|https://service.sap.com/sap/support/notes/13907]

You could also consider locking the whole table by using a generic key.

Regards