Upload
ashish-mohapatra
View
16
Download
8
Embed Size (px)
DESCRIPTION
deleting a material
Citation preview
3/24/2015 Deletematerialmasterswithoutarchiving| SAPTribalKnowledge
https://saptribalknowledge.wordpress.com/2011/10/06/deletematerialmasterswithoutarchiving/ 1/4
SAPTribalKnowledge
UsefulInformationforSAPPowerUsers2011/10/06
Deletematerialmasterswithoutarchiving
PostedbyfeimsterunderSAP|Tags:ABAP,Archive,ASCII,Delete,MATNR,MMREO050,MMREO110,nonbreakingspace,SAP,SARA,SE38|1CommentIwasworkingonfinalizingdataconversionactivitiesformyclientandfoundthatIhadinadvertentlycreatedamaterialmasterwithanonprintablecharacter.Specifically,theASCIIcharacter160(nonbreakingspace)gotsomehowappendedtotheendofthematerialmasternumber.Iwanttogetridofitandcreatethepartnumberastheclientexpectstoseeit.
Fortunately,thismaterialhasnoactivitysofarwhichshouldbodewellforarchiving.Beingnotfamiliarwitharchiving,mycolleaguepointedoutacoupleofprogramsthatcanaccomplishthetaskwithoutgoingthroughthepainofarchiving,etc
ThefirststepusesprogramMMREO050.
Executetheprogramandyoullfindtheselectionscreenbelow.
Inthefirstgroup,youcanenterarangeofmaterials.LeavethecheckboxlabeledConsidermatlsw/odel.flaguncheckedifthematerialsyouaredeletingalreadyhavethedeletionflagset.Inthesecondgroup,youcansettheindicatortoremovethedeletionflagonmaterialsthatcannotbe
https://saptribalknowledge.wordpress.com/tag/sap/https://saptribalknowledge.files.wordpress.com/2011/10/techsmithworb5.pnghttps://saptribalknowledge.wordpress.com/tag/ascii/https://saptribalknowledge.wordpress.com/tag/archive/https://saptribalknowledge.wordpress.com/https://saptribalknowledge.wordpress.com/tag/delete/https://saptribalknowledge.wordpress.com/tag/mmreo050/https://saptribalknowledge.wordpress.com/category/sap/https://saptribalknowledge.wordpress.com/tag/non-breaking-space/https://saptribalknowledge.wordpress.com/tag/mmreo110/https://saptribalknowledge.wordpress.com/tag/abap/https://saptribalknowledge.files.wordpress.com/2011/10/techsmithworc0.pnghttps://saptribalknowledge.wordpress.com/tag/se38/https://saptribalknowledge.wordpress.com/tag/matnr/https://saptribalknowledge.wordpress.com/tag/sara/
3/24/2015 Deletematerialmasterswithoutarchiving| SAPTribalKnowledge
https://saptribalknowledge.wordpress.com/2011/10/06/deletematerialmasterswithoutarchiving/ 2/4
deletedwiththisprogram.Inthethirdgroup,thetestmodeflagissetbydefault.Uncheckthistocommitthechangestothedatabase.
Thescreenshotsbelowshowtheprocessforadummymaterialthatisextendedtotwoplants.Thedeletionflagisnotset.
Executeintestmodetoseeifanyconflictsexist.Theresultisfairlylong.Thetopsectionshowsallofthetablesthatareaffected.
Youcantellfromthenumberofentriesthatthisisnosmalltaskthisisjustonematerial.
https://saptribalknowledge.files.wordpress.com/2011/10/techsmithwor26.pnghttps://saptribalknowledge.files.wordpress.com/2011/10/techsmithwor35.pnghttps://saptribalknowledge.files.wordpress.com/2011/10/techsmithwor31.png
3/24/2015 Deletematerialmasterswithoutarchiving| SAPTribalKnowledge
https://saptribalknowledge.wordpress.com/2011/10/06/deletematerialmasterswithoutarchiving/ 3/4
Thelistaboveshowsthecountinthetablesread.Notethatmanyofthetablesarezeroes.Whennotintestmode,anidenticallistingappearsshowingthecountoftheentriesdeleted.
Finally,anothersectionshowingthestatisticsyoullfindoneforeachmaterialandthenasummaryforallmaterials.Gobacktotheselectionscreenanddeselectthetestmodeflag.
Thereisoneadditionalsectionwhenrunningincommitmode.Itwouldappearthatthesetransactionsareactuallyperformingthearchivefunctions,butwithoutalloftherigmaroleofSARA.Essentially,theinformationhereshowsthearchivingdata.
ThesecondstepusesprogramMMREO110.
Executetheprogramandyoullfindtheselectionscreenbelow.
Itsaboutassimpleasitgets.Unlikethepreviousprogram,thetestmodeflagisnotcheckedbydefault.Executingherebringsupawindowwithalistingofallofthearchivingobjectscreatedinthepreviousstep.
https://saptribalknowledge.files.wordpress.com/2011/10/techsmithwor49.pnghttps://saptribalknowledge.files.wordpress.com/2011/10/techsmithwor51.pnghttps://saptribalknowledge.files.wordpress.com/2011/10/techsmithworc1.pnghttps://saptribalknowledge.files.wordpress.com/2011/10/techsmithwor3b.pnghttps://saptribalknowledge.files.wordpress.com/2011/10/techsmithworbf.png
3/24/2015 Deletematerialmasterswithoutarchiving| SAPTribalKnowledge
https://saptribalknowledge.wordpress.com/2011/10/06/deletematerialmasterswithoutarchiving/ 4/4
Expandtheselectiontreeandselecttheobjectsthatshouldbedeleted.Intheexample,therewasonlyoneobject.Itisconceivablethatonecouldhaveexecutedthepreviousprogramseveraltimesandgeneratedseveralobjects.Inthiscase,therewouldbemorethanoneentryinthepopup.Clickonthegreenchecktocontinue.
Ineithertestorcommitmode,thereisalongoutputwithseveralsectionssimilartothefirststepabove:tablestatistics,entriesread/deleted,andobjectstatistics.
Reviewthisoutputtomakesurethatthenumberslooklikewhatyoudexpecttohavebeendeleted.Inthisexample,onlyonematerialwasdeleted.Obviously,youcouldalsousestandardtransactionstocheckthatthematerialisnolongeravailable.
OneResponsetoDeletematerialmasterswithoutarchiving
1. DominikTylczyskiSays:
2011/10/07at14:27Thosearetheexactstepsthatwouldhadbeenexecutedifyouhadusedarchiving(transactionSARA,objectMM_MATNR).
Reply
BlogatWordPress.com.TheConnectionsTheme.
Follow
FollowSAPTribalKnowledge
BuildawebsitewithWordPress.com
https://wordpress.com/?ref=lofjavascript:void(0)https://wordpress.com/?ref=footer_bloghttps://saptribalknowledge.files.wordpress.com/2011/10/techsmithwor5a.pnghttps://wordpress.com/themes/connections/http://dominiktylczynskien.wordpress.com/https://saptribalknowledge.wordpress.com/2011/10/06/delete-material-masters-without-archiving/?replytocom=150#respond