‎2006 Oct 25 1:36 PM
Hi !
We need to populate some characteristic values for a batch of a material while running txn. code MIGO, after the MIGO COMMIT. We have used BADi 'MB_DOCUMENT_UPDATE' to write the bespoke code. However, while updating the characteristic values, using FM 'VB_CHANGE_BATCH', we are getting EXCEPTION 'lock_on_plant'.
This sounds like FM 'VB_CHANGE_BATCH' is COMMITting at the same time / before MIGO is COMMITting. Is there a BADI / user exit that works after MIGO COMMIT ?
Cheers,
Ashok.
‎2006 Oct 25 1:55 PM
Hi Ashok,
Following are the exits and BADI for update in MIGO transaction
EXIT : MB_CF001
BADI : 1. MB_CIN_LMBMBU04
2. MB_DOCUMENT_UPDATE
Try these..see if this helful to you..
Enjoy SAP.
Pankaj Singh.
‎2006 Oct 25 2:11 PM
Hi Pankaj,
We are currently using BADi 'MB_DOCUMENT_UPDATE' and it doesn't seem to do the job we want as we are getting the EXCEPTION 'lock_on_plant'.
Isn't BADi 'MB_CIN_LMBMBU04' for creating excise documents ? Is it a CIN version BADi by any chance ?
Any other inputs ??
Cheers,
Ashok.
‎2006 Dec 05 9:40 AM
Hi !
Setting the value for the field 'BYPASS_LOCK' to 'X', I am able to avoid the exception 'lock_on_plant'.
SAP says that it is not possible to create a batch and change it's characteristic values, other than the batch expiration date, in MIGO using BADi 'MB_DOCUMENT_UPDATE', as the create and change would be part of the same LUW.
Note 92550 lists the inconsistencies that can occur if a separate COMMIT is called in the user exit / BADi.
Cheers,
Ashok.