Sunteți pe pagina 1din 2

14/04/2016

MyTables:Whereuseditis|SCN

GettingStarted Newsletters

Hi,Guest

LogOn

JoinUs

Products

Services&Support

AboutSCN

Downloads

Industries

Training&Education

Partnership

DeveloperCenter

Activity

LinesofBusiness

UniversityAlliances

Events&Webinars

Innovation

Browse

MyTables:Whereuseditis

Store

SearchtheCommunity

Communications

Actions

Version1

createdbyRajKumarSallaon05May201322:36,lastmodifiedbyRajKumarSallaon06May201300:00

Share

Tweet

Like

ThisdocumentispreparedbasedonversionHANA1.0SPS05revision46.

InHANAstudiowehavethecoolfeaturetofindoutwhereourInformationview(Attribute/Analytic/Calculation)isused
byrightclickingtheviewandselecting"WhereUsed".Itthenshowstypeofview,UsedInwhichview,packagename
inasubwindowpanel"WhereUsedList".

Butthereisnosimilarfeaturetofindthesamefortablesinaschemaweuseinmodeling
Inthisdocumentwewillcometoknowhowwecangetthelist.

Thereisaschemacalled"SRK"whichhasmanytablesandIusetwotables"EMPLOYEE"and"DEPT"forsimplicityto
modelinformationviews.
Advancedreaderscanskipstep1asyouwerealreadyawareofthis.

Step1:

FirstletuscreatetheAttributeview(AT_DEPT)whichusesonlysingletable"DEPT".
WecreateAnalyticview(AN_USING_AT_DEPT)usingthetable"EMPLOYEE"indatafoundationandusetheAttribute
view(AT_DEPT)inlogicaljoin.

Nowletususethefeature"WhereUsed"forAttributeview(AT_DEPT)byrightclickingtheviewandselecting"Where
Used".Itshowstheresultasattributeviewisusedinanalyticviewwhichcontainsinpackage'srk'.

Step2:

Nowweneedtofindwheremyparticulartableisusedinwhichoftheinformationviewsorprocedures,etc.
WedonothavesimilarwhereUsedfunctionalityfortables.Letustrybyjustrightclickthetableintheschemaandwe
willnotfound.

http://scn.sap.com/docs/DOC41091

1/3

14/04/2016

MyTables:Whereuseditis|SCN

ThealternatesolutionistowriteSQL,queryingfromtablesreferringtorepository.

HereisthesimpleSQL:

SELECTBASE_SCHEMA_NAME,BASE_OBJECT_NAME,
DEPENDENT_SCHEMA_NAME,DEPENDENT_OBJECT_NAME,DEPENDENT_OBJECT_TYPE
FROM"SYS"."OBJECT_DEPENDENCIES"
WHEREBASE_SCHEMA_NAME='SRK'/*<==SchemaName*/
ANDBASE_OBJECT_NAME='DEPT'/*<==TableName*/

Thisquerywillshowtheresultwearelookingforandalsoshowswhetheranyprocedures,synonyms,etcareusing
ourtable.

BasedonDEPENDENT_OBJECT_TYPE,wecansaywhetheritisusedbyview/procedure/synonymetc.,and
DEPENDENT_OBJECT_NAMEgivesitscorrespondingname.Packagenamecanfoundinthe
DEPENDENT_OBJECT_NAMEitself.

That'sitwesuccessfullygotthewhereusedlistforourspecifictables
Mightbeinfuturerelease,wecanexpectthisfeatureifsomeonecaninitiatethis.

ThankYouforyourtime.
Raj

1042Views

Tags:whereusedlist,where_used_list,whereused,where_used

AverageUserRating
(28ratings)

Share

http://scn.sap.com/docs/DOC41091

Tweet

Like

2/3

S-ar putea să vă placă și