Batch flagged for deletion, but where?
Has anyone seen this before?
When you want to enter your Count in the Physical Inventory, a warning message is displayed (M7 144) that the batch for the material is flagged for deletion.
In the standard Batch change transaction(MSC2), the batch is not flagged. In this transaction, the system will flag the batch (field name - LVORM) in table MCHA. However, the batch was flagged for deletion in table MCH1, noticeable through the Data Browser(SE16)
Where do I go to reset this Deletion Flag in table MCH1 without accessing the table itself?
Regards
Christo
Hi Christo,
I've never seen this error but it seems to be related with the fact that
your batch was set for deletion for one of the Plants. Check if the deletion
indicator is set in each Plant were it is created. Hope it helps.
Cheers,
daniel pereira
Thank you for replying,
I have checked table MCHA, but this batch only exists in one of our plants, and it is not flagged for deletion there.
I guess I'll tackle the OSS tomorrow for an answer then.
Thanx again
Regards
Christo
You may want to check and see if the material for a specific location is flagged for deletion. This would likely also flag the batch for deletion in that specific location without flaging it in the normal batch deleition screen.
Just a thought,
CK
I had a look, but it wasn't that either.
Thanx anyway.
Christo
The MSC2 has 4 criterias on its selection screen:
material
batch
plant
storage location.
Entering only material and batch and leaving plant and storage location blank will give you the batch at a level where the entries are updated in table MCH1.
Entering material and batch and plant and leaving storage location blank will give you the batch at a level where the entries are updated in table MCHA.
(This is only valid if batch mánagement is setup x-plant)
Thanx for the answer, it makes sence. But I tried it, and the plant field is required.
Regards
Christo
On my system plant is not a mandatory entry in MSC2.
It might have to do with the batch level. Check in OMCT, my setting is unique at material level. Did you change your batch level from material level to plant level after creation of your desired batch?
Yes, you are right. Our Batch level is set up to be unique on Plant level.
I tried changing the seting in OMCT as you suggested, but the Plant field is still required in MSC2, for the specific batch.
I have now logged this call with SAP AG, so consider this topic closed.
Thanx again for you help.
Best regards
Christo
I did not suggest to change the setting in OMCT, I only said check there.
This is not an area to change back and forth.
Anyhow let me know SAPs answer.
We had similar problem some months ago but our batch level is client.
The solution was to flag batch for deletion in MSC2N , save it and then
unflag back. After this action the batch was undeleted in all the tables:
MCH1,MCHA,MCHB.
I tried it, still no go. It must be that the Batch level is defined at Plant level on our system.
Thanx anyway
I am currently waiting for an aswer from OSS.
Regards
Christo
can you tell us what OSS says?
regards,
manson
I tried it, still no go. It must be that the Batch level is defined at Plant level on our system.
Thanx anyway
I am currently waiting for an aswer from OSS.
Regards
Christo
I am still waiting for an answer, but I will keep you posted.
Regards
Christo
Ok, this is what I got from OSS.
1 ) Answer from OSS consultant
2 ) Reference Note 496342
1 )
Please consider the following when setting deletion flags for tables
MCH1, MCHA and MCHB:
(1) MCH1-LVORM -> batch on material level
Can be set in TA MSC2 when you specify only material and batch.
-> If the system detects a deletion on this level, then it means the
batch is deleted in all plants under the material. Note that the
system does not set the delete flags in all assigned entries in
MCHA in automatically when you only set delete flag in MCH1,
as this is not necessary.
(2) MCHA-LVORM -> batch on plant level
Can be set in TA MSC2 when you specify material, batch and plant.
-> A deletion on this level is only for a single plant (MCHA).
(3) MCHB-LVORM -> batch on stor.loc. level (stocks)
Can be set in TA MSC2 when you specify material, batch, plant,
storage location.
-> A deletion on this level is not useful, as the system does not
check MCHB-LVORM anywhere.
Please also review the attached note 496342.
2 )
SAP Note No. 496342 05.11.2002 Page 1
________________________________________________________________________
Number 496342
Version 1 from 18.02.2002
Status Released for Customer
Set by SAP AG on 18.02.2002
Language EN
Short text MSC2: MCHA deletion flag in spite of material batch
level
Responsible SAP AG
Component LO-MD-MM
Material Master
________________________________________________________________________
Long text
Symptom
With Transaction MSC2 you set the deletion flag in a batch. If the batch
management level is not equal to the plant level and if a plant was
specified during the access in the transaction, the deletion flag is
also set in the MCHA record of this plant. If the deletion flag is
undone later without specifying the plant, the deletion flag remains set
in this MCHA record. As a consequence, the system issues a message in
dependent transactions stating that the batch is deleted. However, in
Transaction MSC2 you cannot recognize where the deletion flag is placed
and how to undo it as the system also correctly displays only the value
from the MCH1when you enter the plant.
Additional key words
MCHA-LVORM, MCH1-LVORM, MSC3
Cause and preconditions
The problem is caused by the incorrect use of Transaction MSC2.
Solution
The deletion flag is no longer transferred to the MCHA entry if the
batch management level is not equal to the plant. This is not necessary
anyway as the value is only valid in the MCH1. MCHA entries cannot be
archived independently of the MCH1 either.
Implement the attached program corrections.
________________________________________________________________________
Valid releases
Software Component Release and
from to
following
SAP_APPL SAP Application 45A - 45B
40A - 40B
________________________________________________________________________
Page 2
Note attributes
Transaction codes CLEAR
MCH1
Transaction codes MSC2
MSC3
Transaction codes TRANSAKTIONEN
________________________________________________________________________
Reference to Support Packages
Software Component Release Package name
________________________________________________________________________
SAP Application 40B SAPKH40B73
45B SAPKH45B51
________________________________________________________________________
Page 3
Assigned Correction Instructions
________________________________________________________________________
*$*$----------------------------------------------------------------$*$*
*$ Correction Inst. 0120061532 0000367839 $*
*$--------------------------------------------------------------------$*
*$ Valid for : $*
*$ Software Component SAP_APPL SAP Application $*
*$ Release 40A To SAPKH40A25 $*
*$ Release 40B To SAPKH40B72 $*
*$ Release 45A All Support Package Levels $*
*$ Release 45B To SAPKH45B50 $*
*$*$----------------------------------------------------------------$*$*
*&---------------------------------------------------------------------*
*& Object REPS LMASUFSQ
*& Object Header FUGR MASU
*&---------------------------------------------------------------------*
*& FORM MCHA_SCHREIBEN_1
*&---------------------------------------------------------------------*
...
FORM MCHA_SCHREIBEN_1.
CLEAR *MCHA.
*MCHA-MATNR = MCHA-MATNR.
*MCHA-WERKS = RM03S-WERKS.
*MCHA-CHARG = MCHA-CHARG.
*>>>> START OF DELETION <<<<<
*MCHA-LVORM = MCHA-LVORM.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
* *mcha-lvorm = mcha-lvorm.
*>>>> END OF INSERTION <<<<<<
...
*&---------------------------------------------------------------------*
*& FORM MCHA_AENDERN_1
*&---------------------------------------------------------------------*
...
FORM MCHA_AENDERN_1.
CLEAR *MCHA.
*MCHA-MATNR = MCHA-MATNR.
*MCHA-WERKS = RM03S-WERKS.
*MCHA-CHARG = MCHA-CHARG.
*>>>> START OF DELETION <<<<<
*MCHA-LVORM = MCHA-LVORM.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
* *mcha-lvorm = mcha-lvorm.
*>>>> END OF INSERTION <<<<<<
...
*&---------------------------------------------------------------------*
*& FORM MCHB_SCHREIBEN
*&---------------------------------------------------------------------*
...
IF CHARGEN_EBENE NE CHARGEN_EBENE_0 AND KZMCHX_EXIST = SPACE.
CLEAR *MCHA.
*MCHA-MATNR = MCHA-MATNR.
*MCHA-WERKS = RM03S-WERKS.
*MCHA-CHARG = MCHA-CHARG.
Page 4
*>>>> START OF DELETION <<<<<
*MCHA-LVORM = MCHA-LVORM.
*>>>> END OF DELETION <<<<<<<
*>>>> START OF INSERTION <<<<
* *mcha-lvorm = mcha-lvorm.
*>>>> END OF INSERTION <<<<<<
...
*&---------------------------------------------------------------------*