Professional Documents
Culture Documents
Deletematerialmasterswithoutarchiving| SAPTribalKnowledge
SAPTribalKnowledge
2011/10/06
UsefulInformationforSAPPowerUsers
Deletematerialmasterswithoutarchiving
PostedbyfeimsterunderSAP|Tags:ABAP,Archive,ASCII,Delete,MATNR,MMREO050,
MMREO110,nonbreakingspace,SAP,SARA,SE38|
1Comment
IwasworkingonfinalizingdataconversionactivitiesformyclientandfoundthatIhad
inadvertentlycreatedamaterialmasterwithanonprintablecharacter.Specifically,theASCII
character160(nonbreakingspace)gotsomehowappendedtotheendofthematerialmaster
number.Iwanttogetridofitandcreatethepartnumberastheclientexpectstoseeit.
Fortunately,thismaterialhasnoactivitysofarwhichshouldbodewellforarchiving.Beingnot
familiarwitharchiving,mycolleaguepointedoutacoupleofprogramsthatcanaccomplishthe
taskwithoutgoingthroughthepainofarchiving,etc
ThefirststepusesprogramMMREO050.
Executetheprogramandyoullfindtheselectionscreenbelow.
Inthefirstgroup,youcanenterarangeofmaterials.LeavethecheckboxlabeledConsidermatls
w/odel.flaguncheckedifthematerialsyouaredeletingalreadyhavethedeletionflagset.Inthe
secondgroup,youcansettheindicatortoremovethedeletionflagonmaterialsthatcannotbe
https://saptribalknowledge.wordpress.com/2011/10/06/deletematerialmasterswithoutarchiving/
1/4
3/24/2015
Deletematerialmasterswithoutarchiving| SAPTribalKnowledge
deletedwiththisprogram.Inthethirdgroup,thetestmodeflagissetbydefault.Uncheckthisto
committhechangestothedatabase.
Thescreenshotsbelowshowtheprocessforadummymaterialthatisextendedtotwoplants.The
deletionflagisnotset.
Executeintestmodetoseeifanyconflictsexist.Theresultisfairlylong.Thetopsectionshowsall
ofthetablesthatareaffected.
Youcantellfromthenumberofentriesthatthisisnosmalltaskthisisjustonematerial.
https://saptribalknowledge.wordpress.com/2011/10/06/deletematerialmasterswithoutarchiving/
2/4
3/24/2015
Deletematerialmasterswithoutarchiving| SAPTribalKnowledge
Thelistaboveshowsthecountinthetablesread.Notethatmanyofthetablesarezeroes.When
notintestmode,anidenticallistingappearsshowingthecountoftheentriesdeleted.
Finally,anothersectionshowingthestatisticsyoullfindoneforeachmaterialandthenasummary
forallmaterials.Gobacktotheselectionscreenanddeselectthetestmodeflag.
Thereisoneadditionalsectionwhenrunningincommitmode.Itwouldappearthatthese
transactionsareactuallyperformingthearchivefunctions,butwithoutalloftherigmaroleofSARA.
Essentially,theinformationhereshowsthearchivingdata.
ThesecondstepusesprogramMMREO110.
Executetheprogramandyoullfindtheselectionscreenbelow.
Itsaboutassimpleasitgets.Unlikethepreviousprogram,thetestmodeflagisnotcheckedby
default.Executingherebringsupawindowwithalistingofallofthearchivingobjectscreatedin
thepreviousstep.
https://saptribalknowledge.wordpress.com/2011/10/06/deletematerialmasterswithoutarchiving/
3/4
3/24/2015
Deletematerialmasterswithoutarchiving| SAPTribalKnowledge
Expandtheselectiontreeandselecttheobjectsthatshouldbedeleted.Intheexample,therewas
onlyoneobject.Itisconceivablethatonecouldhaveexecutedthepreviousprogramseveraltimes
andgeneratedseveralobjects.Inthiscase,therewouldbemorethanoneentryinthepopup.Click
onthegreenchecktocontinue.
Ineithertestorcommitmode,thereisalongoutputwithseveralsectionssimilartothefirststep
above:tablestatistics,entriesread/deleted,andobjectstatistics.
Reviewthisoutputtomakesurethatthenumberslooklikewhatyoudexpecttohavebeendeleted.
Inthisexample,onlyonematerialwasdeleted.Obviously,youcouldalsousestandard
transactionstocheckthatthematerialisnolongeravailable.
OneResponsetoDeletematerialmasterswithoutarchiving
1. DominikTylczyskiSays:
2011/10/07at14:27
Thosearetheexactstepsthatwouldhadbeenexecutedifyouhadusedarchiving(transaction
SARA,objectMM_MATNR).
Reply
BlogatWordPress.com.TheConnectionsTheme.
Follow
FollowSAPTribalKnowledge
BuildawebsitewithWordPress.com
https://saptribalknowledge.wordpress.com/2011/10/06/deletematerialmasterswithoutarchiving/
4/4