2006 Oct 25 1:35 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.
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 5:13 PM
Hi Ashok,
The FM 'VB_CHANGE_BATCH' is a normal function module, and might be commit-ing as you mentioned.
You can try creating an UPDATE function module as a wrapper to VB_CHANGE_BATCH, and call the so created FM 'IN UPDATE TASK', in the same BAdI.
Hope this helps you!.
Sajan.
2006 Dec 05 9:43 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. This would happen if a wrapper FM to 'VB_CHANGE_BATCH' is created and called 'IN UPDATE TASK'.
Cheers,
Ashok.
2006 Dec 05 12:14 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |