Professional Documents
Culture Documents
SemanticGroupsinDTP|SCN
GettingStarted Newsletters
Hi,Guest
LogOn
JoinUs
Store
SearchtheCommunity
Products
Services&Support
AboutSCN
Downloads
Industries
Training&Education
Partnership
DeveloperCenter
Activity
LinesofBusiness
UniversityAlliances
Events&Webinars
Innovation
Browse
Communications
Actions
SAPBusinessWarehouse
SemanticGroupsinDTP
PostedbySangitaKumariinSAPBusinessWarehouseon16Jun201314:04:54
2
Share
Tweet
Like
Introduction
From SAP BI 7.0 onwards, in DTP we have an option for semantic groups. We have different perception about
SemanticGroupsinDTPanditsusage.HereIamsummarizingspecificusageofsemanticgroupwithexamples.
Case1.Calculationongroupofrecords
Example:IwouldliketoprovidediscounttoeachcustomerbasedontotalsalesvalueofCustomerNo,Countryand
Productcategory.
Discountshouldbeassignedtoeachrowi.e.foreachproduct.Iamhavingbelowsamplerecords.
ProductNo
CustomerNo
Country
ProductCategory
SaleValue(In
US$)
P001
C001
US
Home
5000
P002
C002
UK
Electronics
3000
P003
C003
Germany
Kids
2000
P004
C004
India
Home
4000
P005
C001
US
Electronics
1000
P006
C003
Germany
Kids
6000
P007
C005
France
Home
5000
P008
C004
India
Electronics
3000
P009
C002
UK
Kids
2000
P010
C001
US
Home
1000
DiscountCriteriabasedonSalesvalueaspergrouping(CustomerNo+Country+ProductCategory)
TotalSales(InUS$)
Discount%
>=1000AND<5000
>=5000AND<10000
10
>=10000
20
DataUploadfromPSAtoStandardDSO.
DTPPackagesizeis5Records.
EndroutineiscalculatingtotalsaleswhichareusedfordiscountcalculationofeachcustomerbasedonSales
valueandassigningittoeachproductrow.
WithoutSemanticGroupDataUpload
TotalsalesvalueandDiscountamountwhendataloadedwithoutsemanticgroupisasbelow
http://scn.sap.com/community/datawarehousing/bw/blog/2013/06/16/semanticgroupsindtp
1/6
5/17/2016
SemanticGroupsinDTP|SCN
Product
Customer
No
No
Country
Product
SaleValue
TotalSales
Discount
Category
(InUS$)
(InUS$)
Amount(In
US$)
P001
C001
US
Home
5000
5000
500
P002
C002
UK
Electronics
3000
3000
150
P003
C003
Germany
Kids
2000
2000
100
P004
C004
India
Home
4000
4000
200
P005
C001
US
Electronics
1000
1000
50
P006
C003
Germany
Kids
6000
6000
600
P007
C005
France
Home
5000
5000
500
P008
C004
India
Electronics
3000
3000
150
P009
C002
UK
Kids
2000
2000
100
P010
C001
US
Home
1000
1000
50
HereifyounoticeaboutCustomerC001havingsamecountryandproductcategorybutTotalsaleisassignedas5000
and1000respectively.
InsuchcaseforProductP010,customerreceivedonly5%discountwhereasactuallyhe/sheshouldget10%.
SimilarcaseisforCustomerC003andproductP003.
ThisisbecauseDatauploadedinto2equalpackagesof5recordseach,first5recordsinto1stpackageandrest5
recordsin2ndpackage.
SinceinFirstpackage5recordsareasbelow,
Product
Customer Country
Product
SaleValue(In
No
No
Category
US$)
P001
C001
US
Home
5000
P002
C002
UK
Electronics
3000
P003
C003
Germany
Kids
2000
P004
C004
India
Home
4000
P005
C001
US
Electronics
1000
TotalSalesValueiscalculatedasbelow
Product
Customer Country
Product
No
No
Category
Sale
Value(In
US$)
Total
Sale(In
US$)
P001
C001
US
Home
5000
5000
P002
C002
UK
Electronics
3000
3000
P003
C003
Germany
Kids
2000
2000
P004
C004
India
Home
4000
4000
P005
C001
US
Electronics
1000
1000
SoDiscountvaluesforfirst5rowsarestoredintoTargetDSOasbelow
Product
Customer
No
No
P001
C001
US
Home
5000
5000
500
P002
C002
UK
Electronics
3000
3000
150
P003
C003
Germany
Kids
2000
2000
100
P004
C004
India
Home
4000
4000
200
P005
C001
US
Electronics
1000
1000
50
Country
Product
Category
Fornext5rowsasbelow
Product Customer
No
No
Country
Product
SaleValue
TotalSale
Discount
Category
(InUS$)
(InUS$)
Amount(In
US$)
SaleValue
(InUS$)
TotalSale
(InUS$)
Discount
Amount(In
US$)
P006
C003
Germany
Kids
6000
6000
600
P007
C005
France
Home
5000
5000
500
P008
C004
India
Electronics
3000
3000
150
P009
C002
UK
Kids
2000
2000
100
P010
C001
US
Home
1000
1000
50
http://scn.sap.com/community/datawarehousing/bw/blog/2013/06/16/semanticgroupsindtp
2/6
5/17/2016
SemanticGroupsinDTP|SCN
WithSemanticGroupDataUpload
KeyfieldsareCustomerno,CountryandProductcategory
TotalsalesvalueandDiscountamountwhendataloadedwithsemanticgroupareasbelow
ProductNo
Customer
Country
Product
SaleValue(In
TotalSale(In
No
Category
US$)
US$)
Discount
Amount
(InUS$)
P001
C001
US
Home
5000
6000
500
P002
C002
UK
Electronics
3000
3000
150
P003
C003
Germany
Kids
2000
8000
200
P004
C004
India
Home
4000
4000
200
P005
C001
US
Electronics
1000
1000
50
P006
C003
Germany
Kids
6000
8000
600
P007
C005
France
Home
5000
5000
500
P008
C004
India
Electronics
3000
3000
150
P009
C002
UK
Kids
2000
2000
100
P010
C001
US
Home
1000
6000
100
InthiscaserecordswillbegroupedbasedonSemantickeydefinitionandevenifthereare2packageseachwillhave
recordsasbelow.
RecordsinFirstpackagegroupedbasedonareCustomerNo,CountryandProductCategory
No
Category
(InUS$)
(InUS$)
Amount(InUS
$)
P001
C001
US
Home
5000
6000
500
P002
C002
UK
Electronics
3000
3000
150
P005
C001
US
Electronics
1000
1000
50
P009
C002
UK
Kids
2000
2000
100
P010
C001
US
Home
1000
6000
100
SaleValue
(InUS$)
TotalSale
(InUS$)
RecordsinSecondpackage
Product
No
Customer
No
Country
Product
Category
Discount
Amount(In
US$)
P003
C003
Germany
Kids
2000
8000
200
P004
C004
India
Home
4000
4000
200
P006
C003
Germany
Kids
6000
8000
600
P007
C005
France
Home
5000
5000
500
P008
C004
India
Electronics
3000
3000
150
DuetothissemanticgroupingwehavecorrectvaluesfortheTotalSalesandourdiscountvaluesarealsocalculated
asexpected.
Pleasenotetoaccommodaterecordsaspersemanticgroup,packagesizewillbeautomaticallyadjusted.Hence,it
willnotbeconstantthroughouttheload.
Case2.Errorhandling
SimilarlyifErrorhandlingisenabledanderrorDTPisavailable,errorhandlingfunctionalitywillworkasbelowbased
onsemanticgroup.
WithoutSemanticGroupDataUpload
IncasethereisanerrorintherecordhavingproductnoP001thenitwillgointoerrorstackandrestoftherecordswill
beuploaded.InsuchcaseforProductP010,totalsalesvaluewillbe1000andhencediscountwillbe5%i.e.50$.
Evenlaterifwewillcorrectfirstrecord(P001)intoerrorstackanduploaditthrougherrorDTP,Discountvaluewillnot
changeforrecordP010.
WithSemanticGroupDataUpload
IncasethereisanerrorintherecordhavingproductnoP001thenitwillgointoerrorstackalongwithrecordhaving
productidP010andrestofrecordswillbe
uploadedintotarget.Itisduetosemanticdefinition,soevenonerecordishavingerror,bothrecordsaretransferred
intoerrorstacktomaintainsemanticgrouping.
http://scn.sap.com/community/datawarehousing/bw/blog/2013/06/16/semanticgroupsindtp
3/6
5/17/2016
SemanticGroupsinDTP|SCN
Insuchcase,whenproductP001willbecorrectedintoerrorstackanderrorDTPwillrun,itwilluploadbothrecords
withcorrecttotalsalesanddiscountvalue.
AdditionalNote
HereIhaveusedonly2casesforillustrationpurpose.Inreallifetherecanbemoreusecasesasperspecificneeds.
Pleasenoteaboveexampleistoexplaintheconceptofsemanticgroups.Therecanalsobeotherwaystoachievethis
calculation.
HopeitwillhelptogetbetterinsightaboutsemanticgroupsintoDTPforbeginners.
13260Views
Topics:enterprise_data_warehousing/business_warehouseTags:sap_netweaver_bw,sap_bw,sap_netweaver_bi,sap_bi
AverageUserRating
(17ratings)
Share
Tweet
Like
25Comments
SumanChakravarthyK16Jun201315:02
Nicedemonstrationwithrealtimeexamples...ButthisexampleistouploadtoDSO(WOptimized)
One,Amiright?Ifyouuploadthese10recordstoStandardDSO,thenthebehaviorwillchange
basedontheKeyfieldsandsettingsinyourDSO.
Thanks,
Suman
Like(1)
SangitaKumari16Jun201315:04(inresponsetoSumanChakravarthyK)
HelloSuman,
Thanksforcomments.EveninStdDSO,ifyouhavedefinedonlyProductidaskey
fielditwillbehaveasImentionedintheaboveexample.SohereassumptionisinStd
DSOonlyproductidiskeyfield.
ButyouarerightifyouhavealreadydefinedCustomerNo,CountryandProduct
categoryaskeyfieldinStdDSObehaviorwillbedifferent.
BestRegards,
Sangita
Like(2)
SumanChakravarthyK16Jun201315:05(inresponsetoSangitaKumari)
Yeah,Nowitisverycleartome.Anyway,niceefforts..
Regards,
Suman
Like(1)
KannanJagadeesan17Jun201306:48
Goodworkkeepitup.
Kannan
Like(0)
AnshuLilhori17Jun201307:15
Reallyhelpfuldocumnettounderstandtheconceptofsemantickeysingroupingthesamedataand
processingitinsimilarpackage.
ItautomaticallyincreasesthePackagesizebasedonrecordsibelieve.
Regards,
AnshuLilhori
Like(1)
http://scn.sap.com/community/datawarehousing/bw/blog/2013/06/16/semanticgroupsindtp
4/6
5/17/2016
SemanticGroupsinDTP|SCN
SangitaKumari18Jun201312:46(inresponsetoAnshuLilhori)
ThanksAnshu.Itautomaticallyincreasesordecreasesthepackagesizebasedonsemantic
grouping.
Regards,
Sangita
Like(0)
MannaDas17Jun201307:50
reallygreatdocumentwithbriefexplanation.
KindRegards
MannaDas
Like(0)
RamanjaneyuluKorrapati17Jun201310:30
Nicearticlewithgoodexamples.verywelldocumented.thanksforsharing.
Thanks
RK
Like(0)
UmashankarPoojar17Jun201311:41
Verygoodarticletounderstandtheconceptwithexample.Thanksforsharing.
Cheers!
Umashankar
Like(0)
SangitaKumari18Jun201312:45
ThanksAllforyourvaluablefeedbackandappreciation!!
Regards,
Sangita
Like(0)
KrishnaChaitanya02Sep201311:23
Goodwork...niceefforts...Informative..Thanks:)Regards,Krishna.
Like(1)
HarishAllachervu08Feb201417:43
Exceptionalarticulationthanksorsharingandmakingustounderstoodveryclearlywithyour
fabulousblog....
Regards,
Harish
Like(1)
PadmasekharPediredla08Feb201418:39
excellent
Like(0)
GiriPrasad10Feb201413:19
Verygood.
Like(0)
SelvamRamalingam21Apr201421:32
Thanksforsharing,excellentdocument
Like(0)
Dukewu25Apr201408:31
simpleanduseful,
Like(1)
http://scn.sap.com/community/datawarehousing/bw/blog/2013/06/16/semanticgroupsindtp
5/6
5/17/2016
SemanticGroupsinDTP|SCN
anirbanmukhopadhyay25Apr201412:11
HiSangita,
Firstly,thisisatopnotcharticlewithcrispexplanations.
However,Ijusthadalittlethought.Idon'tthinkthattheDTPpackagesizeincreasesanytime.Forthe
samesetofsemantickeys,standardaggregationtakesplaceandthusthereisonerecordforthe
samesetofsemantickeys.Theserecordshavebeenaggregatedduringextractionfromthesource.
Whensemantickeysareused,internallysortingofthesourcedatatakesplaceduringextractionon
thebasisofthesemantickeys.
Letmeknowwhatyouthink!
Regards,
Anirban.
Like(0)
SangitaKumari17May201414:41(inresponsetoanirbanmukhopadhyay)
HelloAnirban,
Thanksforappreciation.Toansweryourquestion,Iwillsuggesttrytoloaddatawith
semantickeyandwithoutsemantickeyandobserveeachDTPpackagesize.Itwillbeself
explanatoryandshallansweryourquestion.
Thanks.
Regards,
Sangita
Like(3)
anirbanmukhopadhyay13May201414:15(inresponsetoSangitaKumari)
WillDo.
Like(0)
MohammedAbdullah22May201409:07
Excellentdocument!!Keepitup!!,
Like(0)
vimonwu22Aug201403:48
nicedocument,simplebuthelpful.
Like(0)
EvgeniyPotseluev11Aug201511:47
Thanks!
Like(0)
Jinalpatel01Jan201616:57
onestepupafterreadingthisdoctogetalongwithDTPs.GoodWork!!
Like(0)
RaviRaja20Apr201613:40
Thanks.NiceexamplestoshoweffectiveuseofSymanticGroupinginDTP.
Like(0)
PrakashDoguparthy11May201612:44
Thanksforyourexplanation,GoodJob!
Like(0)
SiteIndex
Privacy
ContactUs
TermsofUse
SAPHelpPortal
LegalDisclosure
Copyright
http://scn.sap.com/community/datawarehousing/bw/blog/2013/06/16/semanticgroupsindtp
FollowSCN
6/6