Escolar Documentos
Profissional Documentos
Cultura Documentos
PerformanceTuningofLoadswheredeltaisnotpossibleSAPNetWeaverBusinessWarehouseSCNWiki
GettingStarted Newsletters
Welcome,Guest
Login
Register
Store
SearchtheCommunity
Products
Services&Support
AboutSCN
Downloads
Industries
Training&Education
Partnership
DeveloperCenter
LinesofBusiness
UniversityAlliances
Events&Webinars
Innovation
SAPNetWeaverBusinessWarehouse / / PerformanceTuningandStatistics
PerformanceTuningofLoadswheredeltaisnotpossible
AddedbyShashankDighe,lasteditedbyColumCroninonApr08,2010
Summary:
TherearemanystandardmasteraswellasfewtransactionaldataloadsinBIwhichdonotsupportthedeltaconcept.Anexamplecanbethe0NOTIFICATIONLoadwhereinwehavetogoforfullloads
dailyasthestandarddatasourcemissesthedeltacapability.Alsomanytimeswehavetobuildcustomizeddatasourceontables/viewswherewedonothaveaparticularfieldonwhichwecanbuildthe
delta.Thesefullloadwhichrundailyunnecessarilytakealotoftimeforprocessingdatathusleadingtoincreaseinoverallloadtimes.ThiscanbeovercomedwiththeconceptofPseudoDelta.
PseudoDelta :
Pseudodeltacanbeconsideredasacustomizeddeltabutdoingcertainmodificationstoachievetheworkingconceptanalogoustostandarddelta.Ithelpsagreatdealinsavingtheloadingeffortsandtime.
ThisconceptcanalsocomehandyforDBloadswhichfairlysupportdeltaconcept.
Background:
Therearegenerallytwokindofrecordswhicharefetchedfromthedatasources:
1)Newly/FreshlycreatedrecordswhichhavetheERDAT(CreatedON)fieldpopulatedwiththedateonwhichtherecordiscreated.HeretheAUDAT(ChangedON)fieldisblank
2)Modified/ChangedrecordswhichgenerallyhasAUDATpopulatedwiththecurrentdateofchangeandERDATwiththedateonwhichitwascreated.
Sotherearisestwopossibilitiesonwhichweneedtopulldeltaonebasedonnewlycreated(ERDAT)andsecondlybasedonmodifiedversions(AUDAT).Theideaistopulltherecordsbasedonthe
selectionofERDATaswellAUDATforcurrentdate.Wecanconsiderasafetymarginoftwodays.Soonlyfewerrecordswillbefetchavoidingtheadhocrecordsfetchedineachload.
StepbyStepApproach:
Step1:
InstandarddatasourcesyouneedtocheckwhetherthefieldsAUDAT(ChangedON)andERDAT(CreatedON)arepresent.Generallytheyarepresentinalmostallthestandarddatasourcres.From
RSA6,gototheeditableversionofdatasourceandmarkthefieldsAUDAT&ERDATforselection.ReplicatethechangestoBI.Forcustomizeddatasourcesweneedtocheckintheunderlying
tables/viewswhetherthesefieldsarepresentandtheyshouldbeincludedinthedatasourcedesign.
Step2:
Nowtheselectionswillbeavailableintheinfopackageofthecorrespondingdatasource.Weneedtocreatetwoinfopackgesforpullingdelta,onebasedonERDATandtheotherbasedonAUDAT.
Step3:
InthefirstinfopackageforERDATselectionweneedtofillitviaanABAProutine.PleaserefertobelowroutinetobewrittenfortheERDATSelection.Wewillconsiderasafetymarginoftwodays.
DATA:l_idxLIKEsytabix.
READTABLEl_t_rangeWITHKEY
fieldname='ERDAT'.
l_idx=sytabix.
Data:w_datetypesydatum.
w_date=sydatum2.
l_t_rangelow=w_date.
l_t_rangehigh=sydatum.
l_t_rangesign='I'.
http://wiki.scn.sap.com/wiki/display/BI/Performance+Tuning+of+Loads+where+delta+is+not+possible
1/2
7/8/2015
PerformanceTuningofLoadswheredeltaisnotpossibleSAPNetWeaverBusinessWarehouseSCNWiki
l_t_rangeoption='BT'.
MODIFYl_t_rangeINDEXl_idx.
p_subrc=0.
Step4:
Insimilarwayforsecondinfopack,createaroutineforfieldAUDAT.Herealsosafetymarginoftwocanbeconsidered.
DATA:l_idxLIKEsytabix.
READTABLEl_t_rangeWITHKEY
fieldname='AUDAT'.
l_idx=sytabix.
Data:w_datetypesydatum.
w_date=sydatum2.
l_t_rangelow=w_date.
l_t_rangehigh=sydatum.
l_t_rangesign='I'.
l_t_rangeoption='BT'.MODIFYl_t_rangeINDEXl_idx.
p_subrc=0.
Step5:
Nowthesetwoinfopackagescanbescheduledfordailyloadsinparallel.Theywillfetchdataonlyfortwodaysthusavoidinganyredundantloading.
Pros:Ithelpinsavingalmost70to80percentofloadingtime.
Note:IncaseofDBLoadsorloadsfromOracle,necessarytimestampfieldscanbeconsideredforbuildingthepseduodeltaon.
Nolabels
2Comments
SurendraKumarReddyKoduru
Goodone.
Regards
Reddy
Guest
Whydoweneedneedtoemploy2InfoPackages.cantweuseonlyoneinfopackageandmodifythel_t_rangeinternaltable?
ContactUs
Privacy
SAPHelpPortal
TermsofUse
LegalDisclosure
Copyright
http://wiki.scn.sap.com/wiki/display/BI/Performance+Tuning+of+Loads+where+delta+is+not+possible
FollowSCN
2/2