Professional Documents
Culture Documents
Introduction
This article outlines the steps necessary to extract a copy of the SAP IMG nodes into excel and
clean them up into a simple grid.
Why?
So the first question you might ask is why would you want to extract the thousands of nodes of
the IMG into an excel file. From my experience I have been asked to perform this task on many
projects, primarily to help with scope definition and assign and manage responsibilities. This
may seem redundant these days, with the integrated tools that allow for project management in
solution manager that allow you to represent this hierarchy and report against it in many ways.
However in the fog of a time constrained implementation I can assure you that the learning curve
and access issues to all the necessary tools, often causes things to spiral down to the lowest
common denominator of representing information in a system that most people have on their
computers and are familiar with. In most cases this lowest common denominator is excel.
WhatcanIdowiththis?
I have used an excel extract of the IMG on multiple projects for the following reasons, but Im
sure you could think of many more
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page1
ExtractingSAPsConfigurationIMGtoExcel
SelectSettings>UserSpecific
MakesurethattheDisp.Struct.withtreecontrolisnotchecked
FromSPROgointotheSAPReferenceIMG
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page2
ExtractingSAPsConfigurationIMGtoExcel
DisplayingadditionalNodeinformation
AlthoughmanyofthemorerecentIMGnodesdonothaveatransactioncodeassociatedwiththemthe
olderonesdoandeverynodehasauniqueidentifierthathelpsidentifyduplicatenodesthatare
repeatedthroughouttheIMG.Ifinditusefultodisplaythisinformationaspartoftheextract.Todothis,
fromwithintheSAPreferenceIMGselectAdditionalinformation>DisplayKey>IMGactivity
NowwhenyouopenanIMGnodedowntothemostdetailedlevelyouwillseeanadditionalkey
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page3
ExtractingSAPsConfigurationIMGtoExcel
Thesekeysareuniqueforaspecificconfigurationnodesoyoucanusethistoidentifyreplication.
Additionallythelastfourorfivedigitsareoftenthetcodeoftheconfigurationnodeifoneexists.E.g.in
thehighlightedexampleabovethetcodeOMJItakesyoudirectlytotheblockforgoodsmovements.
BeforeextractingtoExcelitisnecessarytoopenallnodes(orasmanynodesasyouwanttoextract)as
theextractonlytakesthelevelsopenonscreen.Todothisusetheexpandallbuttonathetopmenu
ExtractingtoExcel
WiththeopenIMGnowjustgotothesystemmenuandselectSystem>List>Save>LocalFile
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page4
ExtractingSAPsConfigurationIMGtoExcel
Selectspreadsheetasthedoctypeformthepopup
Thenchoosealocationandfilenametosameyourfileandpressgenerate
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page5
ExtractingSAPsConfigurationIMGtoExcel
CleaninguptheExcelFile
NowthefunbeginsastheExcelfileisinahierarchicalformatthatyoumaywanttocleanup.Openthe
fileinExcel
Thefilewilllooksomethinglikebelow(InmyexampleIextractedonlytheMMareasasopenhencethe
columnsmayvarydependingonwhatyouextract)
AsyoucanseetheIMGfoldersarenested,anddependingonhowdeeptheconfigurationnodeisit
couldbeindifferentcolumns.HoweverasweaddedtheIMGactivitycolumnthisisalwaysinthesame
columnandcanhelpusidentifywhichnodesareconfigurationnodesversusfolders.Ipersonallyliketo
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page6
ExtractingSAPsConfigurationIMGtoExcel
buildtheIMGstructureintoeveryline,andthendeletethenonconfigurationnodesafterwards.I.e.in
theexampleaboveIonlywanttokeeprowswithanentryincolumnI,butwithoutthestructural
informationitisnotclearwhateachnodeisi.e.Defineprioritizationsdoesntmeananythingonitsown
withoutknowingitisMaterialsManagement>GeneralSettingsforMaterialsManagement>
RequirementPrioritization>DefinePrioritizations
Sothiswilltakesomemanipulationtogetthedatainthisformat.Therearemanywaystodothisbut
thesimplestwayIhavefoundistodoasfollows
Initialworksheetcleanup
Firstlyremovetheblankrowsandcolumnsatthetopandleft
SothatthewordsSAPCustomizingImplementationGuideareincellA1
DeterminethelowestNode
Inthisstepitisimportanttodeterminethelowestnodewhereanentryexistsforeachrecordthiswill
enablethecorrectcopyingofdatainthenextsteps
Firstlyinsertarowaboverow1andnumberthecolumnswithdatafromtheextract1through10
Nextinthefirstemptycolumnafterthedata(K)enterthefollowingformula
Thislookscomplicatedbutbasicallyitjustcopiesthenumberinrow1wherethereiswriting.(Youmay
needtomodifythisformulabasedonwhatelementsoftheIMGyouextract)
=IF(A2<>"",$A$1,IF(B2<>"",$B$1,IF(C2<>"",$C$1,IF(D2<>"",$D$1,IF(E2<>"",$E$1,IF(F2<>"",$F$1,IF(G2<>"
",$G$1,IF(H2<>"",$H$1,0))))))))
Thiswillthenindicatethelowestlevelofdetailforeachrecord;youcancopythisformuladownallof
columnK
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page7
ExtractingSAPsConfigurationIMGtoExcel
NextyoumustcopyandpastejustthevaluesinplacetoavoidanyformulasincolumnKsoforthis
selectthecolumncopythenpastespecialasvalues.Weonlywanttousethisvaluesforconfiguration
nodesforallotherrowswewanttosetthevalue1.SoforthiswecreatethefollowingformulainrowL
CopythisformuladowncolumnLforthewholedataset,thencopycolumnLandpastethevaluesover
columnK
Thishastheresultofshowingthelowestlevelofaconfigurationnodeandshowinglevel1forallnon
configurationnodes
Createformulatocopyfromcellabove
InCellA2usetheformulabelowtoreadthevalueformthecellabove
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page8
ExtractingSAPsConfigurationIMGtoExcel
=IF($K3=1,A2,IF(A$1>$K3,"",A2))
Thisformulawillcopythelineabove(unlessthereisaconfigurationnodeatahigherlevel)
PresscontrolCtocopytotheclipboard,nowhighlightcolumnsAthroughHonly(youdonotwantto
havetheIMGactivitycolumnselected)
Selectallblankcells
Nowthisisthemagic.Toselectalltheblankcellsinthecolumnsyouhavehighlightedusetheselectand
findmenuandselect>gotospecialfunction
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page9
ExtractingSAPsConfigurationIMGtoExcel
Selecttheblanksoption
PasteformulatoblanksusingcontrolV
Youllnowgetafilethatlookslikebelow
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page10
ExtractingSAPsConfigurationIMGtoExcel
Intheinitialrowsthereissomecopyingofthelevelnumbersthiscanquicklybecleanedupthough
manuallyafterthevalueshavebeencopiedbelow
Copywholeregionasvalues
FirstlydeselectthecurrentselectionbyclickingincellA1.
Thenusetheselectandfindmenuandselect>gotospecialfunctionagainandthistimeusethecurrent
regionoption
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page11
ExtractingSAPsConfigurationIMGtoExcel
Thisshouldselectallofyourdata.NowusethecontrolCtocopy
Thenusepastespecialandvaluestooverwritetheforumulaswithtext
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page12
ExtractingSAPsConfigurationIMGtoExcel
Nowyouhavejustcellsoftext.Youcanmanuallycleanoutthenumbersfromthefirstfewrows.You
canalsodeletecolumnsKandLatthispoint(configurationlevel)
Thiswillgiveyouamuchcleanerspreadsheet
Deletenonconfigurationnodes
Nowreducethesizeofthespreadsheetbykeepingonlytheconfigurationnodes.Thiscanbedoneby
filteringontheIMGactivitycolumnforblankrowsandremovingthem.
Todothisinsertchangethecellvaluesinrowonefrom1,2,3etcto.IuseL1,L2,L3etcand
configurationnodeasbelow
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page13
ExtractingSAPsConfigurationIMGtoExcel
Nowselectthewholeareaagainusingthefindandselectfunctionthistimeusingcurrentregion
function
Nowinsertatablewithheaders
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page14
ExtractingSAPsConfigurationIMGtoExcel
Nowselecttheconfigurationcolumndropdowninthetableanddeselectallvaluesandselectonly
blanks
Thisnowshowsonlythenonconfigurationnodes
Selectallrowsanddeletethem,nowyoucanremovethefiltertoleaveonlytheIMGconfiguration
nodes
NowyouhaveanexcelspreadsheetwithonlytheconfigurationnodesintheIMGeachwiththeirfull
menupathstructurecontainedinthatrecord
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page15
ExtractingSAPsConfigurationIMGtoExcel
UnfortunatelySAPparseslongernamestoanextracolumnsoinsomecasestheendsofwordsarein
columnJyoucouldmanuallycopythembackintothecorrectcolumnorjustdeleteit.
WhatNow?
Nowyouarefreetoaddyourowncolumnstoshowscope,ownership,completion,anddocumentation.
Soitsreallyuptoyouhowyouusethisspreadsheet.
Shouldthisbedoneonallprojects?Probablynot.Therearebettertoolsprovidedinsolutionmanager
etcformanagingscope/etc.howeverifyourteamisdiverseandforinfrastructureandtraining
purposedyoudonotwanttorolloutformaltoolstoalargenumberofusers,youcangenerallyrelyon
mostpeoplebeingabletoopenandupdateanExcelspreadsheet.AndwithMicrosoftstightintegration
withotherofficeproducts,adetailedprojectplantisonlyafewclicksaway
Jerome@MungapenConsulting.com|www.mungapenconsulting.com
Page16