cancel
Showing results for 
Search instead for 
Did you mean: 

How to handel material locking in WM

Former Member
0 Kudos

Dear Experts

Our warehouse is managed by warehouse management and we face a problem  when one of the stock keepers  post goods issue with reference to sales order from the warehouse  while another on is performing a goods receipt at  the same time  and the same batch the system issue the following message

Batch xxx of material y is already locked by user

Message no. M3682

Diagnosis

You want to process a batch that is already being processed by another user.

System Response

A batch cannot be processed by more than one user at the same time. To prevent data inconsistencies, the batch record is locked for processing.

And this locking cause a delay to our work

So is there any way to solve this problem  in the warehouse management so that the 2 stock keepers can do their work in the same time without locking

Best Regards

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

you check Note: 1949813 for Message M3682 "Batch & of material & is already locked by &" in transaction MIGO, VL32N and VL02N.

Solution:

Both BAdIs have to be implemented and must be active

  • BADI MATERIAL_READ method LOCK_BATCH_MASTER
  • BADI BATCH_MASTER method LOCK_BATCH_MASTER_IN_MIGO

Step 1:

go to OMJI to Activate late lock for goods movement

step 2 assign Methods

Activate BADI BATCH_MASTER for method LOCK_BATCH_MASTER_IN_MIGO

(

method IF_EX_BATCH_MASTER~LOCK_BATCH_MASTER_IN_MIGO.
   C_LOCK_MODE = 'S'.
endmethod.

)

Step 3:


go to SE18 Activate BADI MATERIAL_READ for method LOCK_BATCH_MASTER


after that test 3 user make goods movement for the same batch, same plant and in the same time you can post goods movement Successfully.


Test Goods movement through MIGO, VL32N and VL02N, all user post Successfully.

http://solveissue.com/note?id=1949813


for More information Contact me

Mobile:     00201003222213

Mail: abdallah.ahmed.elgibaly@gmail.com

Skype: Eng.abdallah.elgibaly

former_member182609
Active Contributor
0 Kudos

You can not do anything for this.If twao users performing same activituy then you will get error.Wait for few movements then try.Or check in SM04 which user locked the warehouse activity then inform to the user.

Former Member
0 Kudos

System blocks stock purposefully, I would suggest do not try to process same batch at a time even using user-exit or enhancement.

br