{"id":594,"date":"2021-01-04T08:52:51","date_gmt":"2021-01-04T07:52:51","guid":{"rendered":"https:\/\/ad-astra.com.pl\/?p=594"},"modified":"2021-01-14T10:51:41","modified_gmt":"2021-01-14T09:51:41","slug":"warstwa-biznesowa-w-data-warehouse-cloud-czesc-3","status":"publish","type":"post","link":"https:\/\/ad-astra.com.pl\/en\/2021\/01\/04\/warstwa-biznesowa-w-data-warehouse-cloud-czesc-3\/","title":{"rendered":"Business Layer and Data Warehouse Cloud - part 3"},"content":{"rendered":"<p>The previous articles can be found<a rel=\"noreferrer noopener\" href=\"https:\/\/ad-astra.com.pl\/en\/2020\/12\/17\/warstwa-biznesowa-w-data-warehouse-cloud-czesc-1\/\" target=\"_blank\"> HERE<\/a> and <a href=\"https:\/\/ad-astra.com.pl\/en\/2020\/12\/24\/warstwa-biznesowa-w-data-warehouse-cloud-czesc-2\/\">HERE<\/a>. We have created the following Business Entitiy structure in them.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"355\" height=\"260\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-46.png\" alt=\"\" class=\"wp-image-599\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-46.png 355w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-46-300x220.png 300w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-46-16x12.png 16w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-46-273x200.png 273w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/figure>\n\n\n\n<p>In this article, we will focus on two topics:<\/p>\n\n\n\n<ol type=\"1\"><li>Creating a <strong>Consumption Model<\/strong><\/li><li>Creating and deploying a <strong>Perspective<\/strong><\/li><\/ol>\n\n\n\n<p><strong>Part 1<\/strong><\/p>\n\n\n\n<p>We will start by creating a model based on an already created Entity structure. To do this, go to Business Builder and select <strong>New Consumption Model<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"525\" height=\"187\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-47.png\" alt=\"\" class=\"wp-image-601\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-47.png 525w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-47-300x107.png 300w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-47-16x6.png 16w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><\/figure>\n\n\n\n<p>First, we enter the model title (in our case, SALES_MODEL). Next, click the Step 2 button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"487\" height=\"164\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-48.png\" alt=\"\" class=\"wp-image-602\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-48.png 487w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-48-300x101.png 300w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-48-16x5.png 16w\" sizes=\"(max-width: 487px) 100vw, 487px\" \/><\/figure>\n\n\n\n<p>In the next step, select Fact Source (in our case FCT_SALES) and click the Step 3 button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"432\" height=\"326\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-49.png\" alt=\"\" class=\"wp-image-603\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-49.png 432w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-49-300x226.png 300w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-49-16x12.png 16w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-49-265x200.png 265w\" sizes=\"(max-width: 432px) 100vw, 432px\" \/><\/figure>\n\n\n\n<p>Click the <strong>Create<\/strong>button to finish creating the model. The model graphical interface should appear.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"468\" height=\"270\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-50.png\" alt=\"\" class=\"wp-image-604\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-50.png 468w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-50-300x173.png 300w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-50-16x9.png 16w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-50-347x200.png 347w\" sizes=\"(max-width: 468px) 100vw, 468px\" \/><\/figure>\n\n\n\n<p>How to add a dimension to the model:<\/p>\n\n\n\n<p>a) Aby wykorzysta\u0107 wcze\u015bniej zdefiniowane asocjacje klikamy na tabel\u0119 FCT_SALES na \u015brodku interfejsu,&nbsp; a nast\u0119pnie wybieramy opcj\u0119 <strong>Show Source Graph.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"215\" height=\"129\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-51.png\" alt=\"\" class=\"wp-image-605\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-51.png 215w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-51-16x10.png 16w\" sizes=\"(max-width: 215px) 100vw, 215px\" \/><\/figure>\n\n\n\n<ul><li>b) We can see our connection to the MD_DEALER table. In order to consume the descriptions, however, we must go a level deeper. To do this, click on the table and select <strong>Expand.<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"236\" height=\"223\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-52.png\" alt=\"\" class=\"wp-image-607\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-52.png 236w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-52-13x12.png 13w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-52-212x200.png 212w\" sizes=\"(max-width: 236px) 100vw, 236px\" \/><\/figure>\n\n\n\n<ul><li>c)\tThe previously created association hierarchy will appear on the screen. To add descriptions, select one of the elements and then select <strong>Add Source Context<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"367\" height=\"252\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-53.png\" alt=\"\" class=\"wp-image-608\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-53.png 367w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-53-300x206.png 300w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-53-16x12.png 16w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-53-291x200.png 291w\" sizes=\"(max-width: 367px) 100vw, 367px\" \/><\/figure>\n\n\n\n<ul><li>d) A new screen will appear. Click on the Step 2 button.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"235\" height=\"160\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-54.png\" alt=\"\" class=\"wp-image-609\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-54.png 235w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-54-16x12.png 16w\" sizes=\"(max-width: 235px) 100vw, 235px\" \/><\/figure>\n\n\n\n<ul><li>e)\tNow we can preview how the data will be linked together - we can see how the system uses MD_DEALER to get the location for the dealer and then reads the description from TXT_LOCATION. To accept, click the Create button.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"311\" height=\"287\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-55.png\" alt=\"\" class=\"wp-image-611\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-55.png 311w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-55-300x277.png 300w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-55-13x12.png 13w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-55-217x200.png 217w\" sizes=\"(max-width: 311px) 100vw, 311px\" \/><\/figure>\n\n\n\n<p class=\" translation-block\">After adding a new dimension, the system takes us back to the preview of the entire model. To add descriptions for the Dealer, we have to repeat the steps from sub-point a), this time choosing TXT_DEALER as the Source Context. Finally, our model should look like the one below : (notice how  MD_DEALER operates as transitional table and that we don\u2019t need to add it directly to the model):<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"605\" height=\"308\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-56.png\" alt=\"\" class=\"wp-image-612\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-56.png 605w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-56-300x153.png 300w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-56-535x272.png 535w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-56-16x8.png 16w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-56-393x200.png 393w\" sizes=\"(max-width: 605px) 100vw, 605px\" \/><\/figure>\n\n\n\n<p>Next, add Measures using the Measures tab (similar to Analytical Dataset).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"505\" height=\"144\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-57.png\" alt=\"\" class=\"wp-image-613\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-57.png 505w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-57-300x86.png 300w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-57-500x144.png 500w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-57-16x5.png 16w\" sizes=\"(max-width: 505px) 100vw, 505px\" \/><\/figure>\n\n\n\n<p>In the Attributes tab, we also add Dealer and Location objects.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"480\" height=\"112\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-58.png\" alt=\"\" class=\"wp-image-614\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-58.png 480w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-58-300x70.png 300w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-58-16x4.png 16w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/figure>\n\n\n\n<p>In the General tab, select the Allow public data access option and save the model. Click on Data Preview to see results of our work.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"723\" height=\"240\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-60.png\" alt=\"\" class=\"wp-image-616\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-60.png 723w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-60-300x100.png 300w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-60-535x178.png 535w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-60-16x5.png 16w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-60-603x200.png 603w\" sizes=\"(max-width: 723px) 100vw, 723px\" \/><\/figure>\n\n\n\n<p><strong>Part 2<\/strong><\/p>\n\n\n\n<p>Now we will focus on creating a perspective. <strong>Perspective<\/strong> is a saved configuration of a model that we can consume in the SAP Analytics Cloud environment. It works in a similar way to Query in classic BW.<\/p>\n\n\n\n<p>We can create a perspective from the data preview screen \u2013 use the Data Preview interface to change the configuration however you like and then select <strong>Save New<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"751\" height=\"299\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-61.png\" alt=\"\" class=\"wp-image-618\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-61.png 751w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-61-300x119.png 300w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-61-535x213.png 535w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-61-16x6.png 16w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-61-502x200.png 502w\" sizes=\"(max-width: 751px) 100vw, 751px\" \/><\/figure>\n\n\n\n<p>Provide a description and technical name for the perspective, and then press the Save button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"266\" height=\"212\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-62.png\" alt=\"\" class=\"wp-image-619\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-62.png 266w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-62-16x12.png 16w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-62-251x200.png 251w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><\/figure>\n\n\n\n<p>Aby perspektywa by\u0142a widoczna w SACu, potrzeba j\u0105 jeszcze udost\u0119pni\u0107. W tym celu przechodzimy z&nbsp;powrotem do edycji modelu, i w zak\u0142adce <strong>Perspectives<\/strong> tab, click the <strong>Deploy<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"743\" height=\"123\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-63.png\" alt=\"\" class=\"wp-image-620\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-63.png 743w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-63-300x50.png 300w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-63-535x89.png 535w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-63-16x3.png 16w\" sizes=\"(max-width: 743px) 100vw, 743px\" \/><\/figure>\n\n\n\n<p>Now, using the built-in SAC environment (or our own tenant), we can read the data contained in the perspective.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"485\" height=\"272\" src=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-64.png\" alt=\"\" class=\"wp-image-621\" srcset=\"https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-64.png 485w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-64-300x168.png 300w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-64-16x9.png 16w, https:\/\/ad-astra.com.pl\/wp-content\/uploads\/2020\/12\/image-64-357x200.png 357w\" sizes=\"(max-width: 485px) 100vw, 485px\" \/><\/figure>\n\n\n\n<p>This ends our series of articles on the business layer in SAP Data Warehouse Cloud. I hope you found it to be an useful introduction to the technology and a good resource for understanding new concepts and terminology :). A model created in this way can be further improved using technologies available in DWC, e.g. by defining time dimensions.<\/p>\n\n\n\n<p>If you want to learn more, please refer to the offical documentation which can be found<a href=\"https:\/\/help.sap.com\/viewer\/c8a54ee704e94e15926551293243fd1d\/cloud\/en-US\/3829d46c48a44f1e94915054bd76b7b9.html\" target=\"_blank\" rel=\"noreferrer noopener\"> HERE<\/a> <\/p>","protected":false},"excerpt":{"rendered":"<p>The previous articles can be found HERE and HERE. We have created the following Business Entitiy structure in them.\n\n\nIn this article, we will focus on two topics:\n\nCreating a Consumption Model\nCreating and deploying a Perspective\nPart 1\n\nWe will start by creating a model based on an already created Entity structure. To do this, go to Business Builder and...<\/p>","protected":false},"author":2,"featured_media":608,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,13],"tags":[34,37,36,10,43],"_links":{"self":[{"href":"https:\/\/ad-astra.com.pl\/en\/wp-json\/wp\/v2\/posts\/594"}],"collection":[{"href":"https:\/\/ad-astra.com.pl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ad-astra.com.pl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ad-astra.com.pl\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ad-astra.com.pl\/en\/wp-json\/wp\/v2\/comments?post=594"}],"version-history":[{"count":11,"href":"https:\/\/ad-astra.com.pl\/en\/wp-json\/wp\/v2\/posts\/594\/revisions"}],"predecessor-version":[{"id":659,"href":"https:\/\/ad-astra.com.pl\/en\/wp-json\/wp\/v2\/posts\/594\/revisions\/659"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ad-astra.com.pl\/en\/wp-json\/wp\/v2\/media\/608"}],"wp:attachment":[{"href":"https:\/\/ad-astra.com.pl\/en\/wp-json\/wp\/v2\/media?parent=594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ad-astra.com.pl\/en\/wp-json\/wp\/v2\/categories?post=594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ad-astra.com.pl\/en\/wp-json\/wp\/v2\/tags?post=594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}