You have to flag a batch master record for deletion so that the archiving and deletion program can delete it. To do so you call the batch master record in change mode. You can set a deletion flag at plant level or at storage location level, but only if a deletion flag has not already been set at a higher level. The batch master record is then deleted at this level and at all lower levels.
When you create a batch master record, the deletion flag field is hidden if the material master record is not flagged for deletion at plant level or at storage location level. If the material master record is flagged for deletion, you are warned on the initial screen. The
Deletion flag
field is then displayed, but the deletion flag cannot be set.
When you flag a batch master record for deletion, the system does not check whether the batch master record can actually be deleted. These checks are made by the archive and delete program.
At most companies, the archive and delete program is run at regular intervals by the system administrator. For more information on the archiving and deletion of batch master records, see the SAP Library for
CA – Application Data Archiving
under
Archiving Special Stock Records (LO-MD-MM)
.
If the material is flagged for deletion at plant level, the system displays a deletion flag both at plant level and at storage location level when you maintain batches.
If the material is flagged for deletion at storage location level, you can flag batches for deletion at plant level, but not at storage location level.