4
3/24/2015 Delete material masters without archiving | SAP Tribal Knowledge https://saptribalknowledge.wordpress.com/2011/10/06/deletematerialmasterswithoutarchiving/ 1/4 SAP Tribal Knowledge Useful Information for SAP Power Users 2011/10/06 Delete material masters without archiving Posted by feimster under SAP | Tags: ABAP , Archive , ASCII , Delete , MATNR , MMREO050 , MMREO110 , non‑breaking space , SAP , SARA , SE38 | 1 Comment I was working on finalizing data conversion activities for my client and found that I had inadvertently created a material master with a non‑printable character. Specifically, the ASCII character 160 (non‑breaking space) got somehow appended to the end of the material master number. I want to get rid of it and create the part number as the client expects to see it. Fortunately, this material has no activity so far which should bode well for archiving. Being not familiar with archiving, my colleague pointed out a couple of programs that can accomplish the task without going through the pain of archiving, etc… The first step uses program MMREO050. Execute the program and you’ll find the selection screen below. In the first group, you can enter a range of materials. Leave the checkbox labeled “Consider matls w/o del. flag” unchecked if the materials you are deleting already have the deletion flag set. In the second group, you can set the indicator to remove the deletion flag on materials that cannot be

Delete Material Masters Without Archiving _ SAP Tribal Knowledge

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