Skip to end of metadata
Go to start of metadata

Purpose

This content was written to explain the process of deleting a material in material master.

Overview

Materials cannot be just deleted and instead must be deleted and then archived in your system. The recommended way to do this in Material Master is to complete the following steps:

Step 1 - Firstly set the deletion flag for the material:
This step is not mandatory however it would be recommended so as to avoid deleting materials by mistake. See point number two of the "Write"job below for further details.

1.

=> Run transaction MM06

=> Enter the material name

=> Select enter

2.

=> Select the levels that you wish to delete the material on. You can set deletion
flags at different organizational levels, for example, at plant level or at sales 
organization level. The material master record is then deleted at this level and at
all lower levels.

=> Select enter

=> Save

 

Step 2 - Secondly run an archive "Write" job:
This job can be run in a number of ways including using transactions SARA, MM71 & running report MMREO050N directly.

Running an archive "Write" job directly using report MMREO050N:
1.

=> Run transaction SE38

=> Program: MMREO050N (Numbers in red)

=> Execute (F8)

2.

=> Enter the material name.

=> Processing options: Select “Production mode”.

=> Detailed log: Select whatever log is required. However a "Complete”
log would be recommended as it would help to give full details of why
a write job failed.

=> Log output: Select whatever log output is required.

=> Archiving Session Note: Add a note here for your own future
reference.

=> Execute (F8)

Please note that you can delete a material that doesnt have a deletion
flag set by selecting "Consider Materials Materials Without
Deletion Flag". However as outlined earlier this is not recommended
so as to avoid deleting materials by mistake.

Running an archive "Write" job using transactions SARA and MM71
1.

=> Run transaction SARA

=> Archiving Object MM_MATNR

=> Return.

2.

=> Select "Write".

=> Variant field: Add a name for your reference.

=> Select "Maintain".

Note that transaction MM17 will bring you straight to this step.

3.

=> Select "For all selection screens".

=> Select "Continue".

4.

=> Enter the material name.

=> ILM Actions: Select "Archiving".

=> Processing Options: Select "Production mode".

=> Detailed log: Select whatever log is required. However a "Complete”
log would be recommended as it would help to give full details of why
a write job failed.

=> Log output: Select whatever log output is required.

=> Archiving Session Note: Add a note here for your own future
reference.

=> Selact "Variant Attributes".

5.

=> Description field: Add a name for your reference.

=> Select the "Save" icon.

=> Select the "Back" icon.

6.

=> Select "Start Date".

=> Select time as required (Immediate for example).

=> Save.

7.

=> Select "Spool Params."

=> Select "Ok".

 

8.

=> Select "Execute".

 


Step 3 - Finally run an archive "Delete" job:
This job can be run in a number of ways including using transactions SARA, MM72 & running report MMREO110N directly.

Running an archive "Delete" job directly using report MMREO110N
1.

=> Run transaction SE38

=> Program: MMREO110N (Numbers in red)

=> Execute (F8)

2.

=> Processing options: Select “Production mode”.

=> Detailed log: Select whatever log is required. However a "Complete”
log would be recommended as it would help to give full details of why
a delete job failed.

=> Log output: Select whatever log output is required.

=> Execute (F8)

3.

=> Highlight the created archive write job

=> Select continue (Enter)

Once these steps have been completed the material has been fully deleted & archived in your system.

Please note that the same checks are run in both archive "Write" and "Delete" jobs. This is to make sure that the material has not been used between running them. However, it is recommended to run the archive "Write" and "Delete" jobs after each other.
 

Related Content

Related Documents

Related SAP Notes/KBAs