Você está na página 1de 6

12/15/2015 ABAPHierarchicalViewClusters|Spider'sweb

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.

SH A R EITWITH YOU R FR IEN D S:

Email Share 2 Share 1 3 Tweet

submit 0

http://oprsteny.com/?p=1082 5/6
12/15/2015 ABAPHierarchicalViewClusters|Spider'sweb

R ELA TED

Rowlevellockingof ABAPGroupingfieldsin SAPAuthorizationsBasic


databasetable fieldcatalog Overview
20130404 20150318 20141216
In"ABAP" In"ABAP" In"ABAP"

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?

EmbassySuitesby HotelVillaRoyale EmbassySuitesby


Austin SaintJosseten Austin
from $119 from $55 from $145
BookNow BookNow BookNow

http://oprsteny.com/?p=1082 6/6

Você também pode gostar