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

Regarding Lock objects

Former Member
0 Likes
387

HI,

Can we create lock objects with partial primary key?

Suppose if we have MBLNR, MATNR, DATE as primary keys for a Z table, Then can we create a lock object with only MATNR as the lock parameter?

I want to create in the above way because i want to update the Z table only MATNR in where condition.So i want to lock before updating.

Will there be any drawback if we use like that

Regards,

Robin

1 ACCEPTED SOLUTION
Read only

former_member214857
Contributor
0 Likes
344

Hi Robin

Actually when you create a lock object it will contemplate all key-field involved for the table in question, however when you

call the ENQUEUE_ and DEQUEUE_ FM you can inform only fields that you want.

Kind regards

Carlos Machado

1 REPLY 1
Read only

former_member214857
Contributor
0 Likes
345

Hi Robin

Actually when you create a lock object it will contemplate all key-field involved for the table in question, however when you

call the ENQUEUE_ and DEQUEUE_ FM you can inform only fields that you want.

Kind regards

Carlos Machado