Beruflich Dokumente
Kultur Dokumente
Spider'sweb
shareyourownexperience
ABAPHierarchicalViewClusters
Postedon20141014
ThisarticleisatutorialonhowtocreateaViewClusterontopofSAPtables.Itisextremlyuseful
whenyouhaveseveralSAPtableswithhierarchicaldependency.Thishierarchyisnicelyvisibleon
eg.MARA>MARC>MARDtableswheretheKEYgrowsfromMATNR(MARAtable)toMATNR+
WERKS(MARC)toMATNR+WERKS+LGORT(MARD).Toview/editdatausingthishierarchy
foldingyoucanusethe"Viewclusters"approach.
WhatisViewCluster
Viewclusterisasetofobjects(views,reportsortables)whichbelongtoonebusinessfunction.
Theunderlyingdatacanbearrangedeitherhierarchicallyornonhierarchicallyinviewcluster.
Aviewclustertransactioneditsthecomplexcrosstabledatainaviewcluster.
Thetransactionnavigationboxshowsthecomplexbusinessobjectwithitscomponentsorsub
objects.
StepstocreateViewClusteronSAPtables
1. CreateMaintenanceviewsforalltablestobeinvolvedintheviewcluster(ZMM_VMARA,
ZMM_VMARC,ZMM_VMARD).
http://oprsteny.com/?p=1082 1/6
12/15/2015 ABAPHierarchicalViewClusters|Spider'sweb
2. ForMARCandMARDsetthemaintenanceattribute'P'forfieldsMANDTandMATNR(for
MARC),MANDT,MATNRandWERKSforMARDtovalue'S'thismeansthatsuchfieldswill
beusedfromtheupperhierarchylevelsandwillnotbedisplayedindetailview.
3. RunTableMaintenanceGeneratoronallcreatedViewsandletthecodebegeneratedintoone
commonFUGRcalledlet'ssayZMM_FG_MATMAS
Eachviewwillhaveonestepmaintenancetypeandeachviewmusthavedifferentmaint.screen
number(let'ssay,0001forZMM_VMARA,0002forZMM_VMARCand0003forZMM_VMARD)
http://oprsteny.com/?p=1082 2/6
12/15/2015 ABAPHierarchicalViewClusters|Spider'sweb
4. CreateViewCluster
A. RunTCodeSE54andcreatenewView(ZMM_VC_MATMAS)
http://oprsteny.com/?p=1082 3/6
12/15/2015 ABAPHierarchicalViewClusters|Spider'sweb
B. Navigateto"ObjectStructure",addyourviewswithproperdependencies(predecessor),
position,shortdescriptionandotherparametersandselectthestartingview
C. ForeachlinewithViewdetailsin"ObjectStructure"selecttherowandclickon"Field
Dependencies"buttontogeneratedependentfieldsautomatically
D. SaveandActivateyournewViewCluster
TestingViewCluster
RunTCodeSE54,gotoEditViewClusterscreen,typeinyourclusterviewnameandpresstheTest
button.
http://oprsteny.com/?p=1082 4/6
12/15/2015 ABAPHierarchicalViewClusters|Spider'sweb
WecreatedtheviewclusterontablesMARA,MARCandMARD.Thereforewecanseethatallthree
levelsarevisibleintheleftsidepannel.ThescreenshotbelowdisplayesentriesofthetableMARA.
InordertoseethecorrespondingPlantdetailsforsomematerial,justselectanentryanddoubleclick
onPlantdetailsintheleftnavigation.
Theplantdetailsarenowvisible,butinourexamplescreenshottheselectedmaterialisnot
maintainedonanyplant.Intheheaderoftherightpartofscreenyoucanseethematerialdependent
fieldtransferredautomaticallyfromMARAviewafterourselection.
Usingthesameapproachyoucanseethestoragelocationdetailsyoujustselectanentryinthelist
onrightsideanddoubleclickonStoragedetailsintheleftnavigationwindow.
IfwehadenoughtestingdatatheMaterialselectedintheMaterialdetailsviewandthePlantselected
inthePlantdetailsviewwouldbedisplayedontopoftherightpartofscreenasheaderentries.
submit 0
http://oprsteny.com/?p=1082 5/6
12/15/2015 ABAPHierarchicalViewClusters|Spider'sweb
R ELA TED
Articledisplayed:1289x
ThisentrywaspostedinDevelopment,ABAPandtaggedABAP,maintenanceview,viewcluster,
stepbystep,SE54bySpider.Bookmarkthepermalink[http://oprsteny.com/?p=1082].
ONETHOUGHTONABAPHIERARCHICALVIEWCLUSTERS
GlenderAlberto
on20150407at8:53pmsaid:
Thankyouverymuchfortheguide.Itisverycomplete.IhaveonlyoneproblemandIwould
liketoconsult.WheneverInavigatebetweenfoldersthesystemasksmetoentertheclient
number.WhatshouldIdotoavoidthis?
http://oprsteny.com/?p=1082 6/6