Professional Documents
Culture Documents
Semantic Groups in DTP
Semantic Groups in DTP
----------------------------------------------------------
27 Likes 28,392 Views 26 Comments
Introduction
From SAP BI 7.0 onwards, in DTP we have an option for semantic groups. We have different
perception about Semantic Groups in DTP and its usage. Here I am summarizing specific usage of
semantic group with examples.
Example: I would like to provide discount to each customer based on total sales value of Customer
No, Country and Product category.
Discount should be assigned to each row i.e. for each product. I am having below sample records.
Discount Criteria based on Sales value as per grouping (Customer No + Country + Product
Category)
>=10000 20
Data Upload from PSA to Standard DSO.
End routine is calculating total sales which are used for discount calculation of each
customer based on Sales value and assigning it to each product row.
Total sales value and Discount amount when data loaded without semantic group is as below
Here if you notice about Customer C001 having same country and product category but Total sale is
assigned as 5000 and 1000 respectively.
In such case for Product P010, customer received only 5% discount where as actually he/she should
get 10%.
This is because Data uploaded into 2 equal packages of 5 records each, first 5 records into 1st
package and rest 5 records in 2nd package.
So Discount values for first 5 rows are stored into Target DSO as below
Total sales value and Discount amount when data loaded with semantic group are as below
In this case records will be grouped based on Semantic key definition and even if there are 2
packages each will have records as below.
Records in First package grouped based on are Customer No, Country and Product Category
Due to this semantic grouping we have correct values for the Total Sales and our discount values are
also calculated as expected.
Please note to accommodate records as per semantic group, package size will be automatically
adjusted. Hence, it will not be constant through out the load.
Similarly if Error handling is enabled and error DTP is available, error handling functionality will work
as below based on semantic group.
In case there is an error in the record having product no P001 then it will go into error stack and rest
of the records will be uploaded. In such case for Product P010, total sales value will be 1000 and
hence discount will be 5% i.e. 50$.
Even later if we will correct first record (P001) into error stack and upload it through error DTP,
Discount value will not change for record P010.
With Semantic Group Data Upload
In case there is an error in the record having product no P001 then it will go into error stack along
with record having product id P010 and rest of records will be
uploaded into target. It is due to semantic definition, so even one record is having error, both records
are transferred into error stack to maintain semantic grouping.
In such case, when product P001 will be corrected into error stack and error DTP will run, it will
upload both records with correct total sales and discount value.
Additional Note
Here I have used only 2 cases for illustration purpose. In real life there can be more use cases as
per specific needs.
Please note above example is to explain the concept of semantic groups. There can also be other
ways to achieve this calculation.
Hope it will help to get better insight about semantic groups into DTP for beginners.