Solution : https://service.sap.com/sap/support/notes/1035372 (SAP Service marketplace login required)
Summary :
When utilizing user exit EXIT_SAPLV01Z_002 in SAP, the function to propose an existing batch number triggers the exception BATCH_EXIST, due to a stringent existence check. To alleviate this restriction in certain business processes, this note advises implementation that enables the allowance of pre-existing batches by adjusting the function module's interface. Users must include the export parameter ALLOW_EXISTING_BATCH (type XFELD) to permit redefinition of existing batches. This adjustment is applicable in the context of module VB_CREATE_BATCH and is outlined for specific SAP versions including Release 4.6C with related corrections in Note 1119779.
Key words :
note replaces modification note 523589, user exit exit_saplv01z_002, implement modification note 523589, call transaction se37, equivalent correction instructions, function module exit_saplv01z_002, existing batch number, export parameter allow_existing_batch, function module vb_create_batch, function module
Related Notes :
1248511 | Differences between storage location stock and batch stock |
523589 | EXCEPTION BATCH_EXIST for VB_CREATE_BATCH |