In AFS Materials, we can assign EAN’s not only at the main material level, but also at the grid value level. This uses a lot many chunk of EAN numbers allowed for the materials. AFS provides the functionality to re-use the not-used EAN numbers by recycling the EAN numbers.
EANs for recycling comes from two sources
- EANs from archived materials.
- EANs lost due to buffering
When the material master is archived, the archiving program deletes all the entries of the material master data tables including EAN tables. During this process “To-Be-Recycled EAN” table is also updated with the EAN numbers from these materials.
The Recycling Program checks the business data of the selected materials. If all the documents are complete, the EANs are moved to recycled table when their retention period is reached.
The Online standard transaction (MM01/MM02), Material Master Mass Maintenance, accesses the number range specified for the EAN category. If the interval maximum has been reached, the “EAN/UPC recycled” table is then read to get the EAN/UPC codes. When assigned, the EAN/UPC code is deleted from the “EAN/UPC recycled” table.
EAN/UPC codes that were never used (Buffering…etc) will also be added to the “recycled” table, which facilitates in using these missed EAN numbers.
As a material is flagged for deletion, a report needs to be run to physically delete the material from the database. This is the material archiving program “MMREO050”. It is used to archive the “MM_MATNR” archiving object.
The AFS EAN/UPC code entries are recovered when AFS materials are archived and deleted.
- Check the last used date of the materials.
- Update the to-be-recycled table with the selected EAN codes and calculate their retention period.
- Move the EANs from to-be-recycled table to recycled table. Two conditions have to be satisfied. Retention period is reached and the material is archived.
Archiving is mandatory for recycling unless the customer decides otherwise. User exit can be used to recycle otherwise.