{"id":249,"date":"2019-07-16T07:37:33","date_gmt":"2019-07-16T06:37:33","guid":{"rendered":"http:\/\/www.pierre-vincent.com\/memosap\/?p=249"},"modified":"2019-07-16T07:37:33","modified_gmt":"2019-07-16T06:37:33","slug":"planning-area-to-backup-infocube","status":"publish","type":"post","link":"http:\/\/www.pierre-vincent.com\/memosap\/2019\/07\/16\/planning-area-to-backup-infocube\/","title":{"rendered":"Planning area to Backup infocube"},"content":{"rendered":"\n<p>Source : <a href=\"https:\/\/blogs.sap.com\/2015\/01\/02\/data-extraction-from-planning-area-to-backup-info-cube\/\">https:\/\/blogs.sap.com\/2015\/01\/02\/data-extraction-from-planning-area-to-backup-info-cube\/<\/a> <\/p>\n\n\n\n<p><strong>Introduction<\/strong><br><\/p>\n\n\n\n<p>A planning area as we know is one of the most important areas in both Demand (DP) and Supply Network Planning (SNP). It basically defines the area where most of the planning activities take place grouping together both characteristics and key figures under a single domain.<\/p>\n\n\n\n<p>In order to maintain the data consistency and to avoid loss of data, it is generally a good practice to take backup of the data in planning area to Info cube.<\/p>\n\n\n\n<p>In this document, we will see how data can be backed up from Planning Area in step wise manner. For illustration purpose, have taken SNP Planning Area however process remains same for both DP and SNP \u2013 only major difference being in SNP, export DataSources can be generated for the SNP aggregates and not for MPOS like in Demand Planning. We would see the same further ahead in the document.<\/p>\n\n\n\n<p><strong>1.&nbsp;Create Planning Area<\/strong><\/p>\n\n\n\n<p>Planning area is created \u2013 TESTSNP. Here we have copied the standard planning area 9ASNP02 and created our own custom planning area. Configuration Steps for SNP Planning Area is discussed in detail in the following document \u2013<\/p>\n\n\n\n<p><a href=\"http:\/\/scn.sap.com\/docs\/DOC-58134\">SNP Configuration Steps for Planning Area and Planning Book\/Data View<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/a_617552.jpg\"><img decoding=\"async\" src=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/a_617552.jpg\" alt=\"A.jpg\"\/><\/a><\/figure>\n\n\n\n<p><strong>Creation of Backup Cube<\/strong><\/p>\n\n\n\n<p>Navigate to the Created Planning Area in the above step and from menu Select Extras \u2013 Data Extraction Tools as shown below \u2013<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/a1_617553.jpg\"><img decoding=\"async\" src=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/a1_617553.jpg\" alt=\"A1.jpg\"\/><\/a><\/figure>\n\n\n\n<p>Same can be achieved by the below transaction also \u2013<\/p>\n\n\n\n<p><strong>Transaction \u2013 \/SAPAPO\/SDP_EXTR<\/strong><\/p>\n\n\n\n<p>Here, we need to select Data backup and then Generate Infocube from Planning Area in next screen. After that we need to provide the name of Infocube and Infoarea as shown below \u2013<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/2_617554.jpg\"><img decoding=\"async\" src=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/2_617554.jpg\" alt=\"\/wp-content\/uploads\/2015\/01\/2_617554.jpg\"\/><\/a><\/figure>\n\n\n\n<p>Above step will create Infocube with name SNPBACKUP. After creation of backup Infocube, we can see the same in transaction RSA1 \u2013 here we can edit\/create new dimensions (basically to partition the data) and remove unwanted characteristics\/key-figures which we do not want to save in cube.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/3_617555.jpg\"><img decoding=\"async\" src=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/3_617555.jpg\" alt=\"\/wp-content\/uploads\/2015\/01\/3_617555.jpg\"\/><\/a><\/figure>\n\n\n\n<p><strong>3.&nbsp;Create Data Source<\/strong><\/p>\n\n\n\n<p>In order to create the Data Source, we need to again the same path as described in step 2.<\/p>\n\n\n\n<p><strong>Transaction \u2013 \/SAPAPO\/SDP_EXTR<\/strong><\/p>\n\n\n\n<p>Here, we need to select Generate Data Source and then provide the name of the data Source. 9A is prefixed to the name given by us for Data Source by the system automatically.<\/p>\n\n\n\n<p>In the next screen, we need to select the Aggregate on which we want to base the Data Source. In case of DP Planning Area, we can base the Data Source on the MPOS while this is not the case with SNP. This also means that only the characteristics or characteristics combination contained in these aggregates can be used in the InfoSource, transfer structure and transfer rules. Also For an SNP aggregate, only the key figures assigned to it can be extracted. So, it is an important decision to select the Aggregate on which one wants to base the Data Source as per business requirement. Here, we have selected the aggregate 9AMALA (9AMATNR, 9ATRNAME).<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/4_617556.jpg\"><img decoding=\"async\" src=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/4_617556.jpg\" alt=\"\/wp-content\/uploads\/2015\/01\/4_617556.jpg\"\/><\/a><\/figure>\n\n\n\n<p>Also while creation of Data Source, there is this indicator as highlighted above which gives one the flexibility to avoid the system from transferring data records cube if all key figures in the data record have the value zero. This can drastically reduce the volume of information that the system transfers, and as a result improve performance.<\/p>\n\n\n\n<p>Once the Data Source is generated, we can replicate the Data Source and then it will appear in transaction RSA1. Then we need to activate the Data Source as shown below<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/41_617557.jpg\"><img decoding=\"async\" src=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/41_617557.jpg\" alt=\"\/wp-content\/uploads\/2015\/01\/41_617557.jpg\"\/><\/a><\/figure>\n\n\n\n<p><strong>4.&nbsp;Create Transformation<\/strong><\/p>\n\n\n\n<p>In the above steps, we have created the backup cube for planning area to store the data and also Data Source for Planning Area. Now, we need to link the both and this is achieved by Transformation. It connects the objects in Source to corresponding objects in target.<\/p>\n\n\n\n<p><strong>Transaction \u2013 RSA1<\/strong><\/p>\n\n\n\n<p>Select the Infocube \u2013 Right click create transformation. In next screen, we need to provide source and target for this transformation to link. After validation of all linkages, we then activate the transformation as shown below \u2013<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/5_617558.jpg\"><img decoding=\"async\" src=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/5_617558.jpg\" alt=\"\/wp-content\/uploads\/2015\/01\/5_617558.jpg\"\/><\/a><\/figure>\n\n\n\n<p>In Transformation one also has option to define various Formulas, Rules etc. basically to define how the data needs to be mapped to the target field.<\/p>\n\n\n\n<p><strong>5.&nbsp;Create Data Transfer Package(DTP)<\/strong><\/p>\n\n\n\n<p><strong>Transaction \u2013 RSA1<\/strong><\/p>\n\n\n\n<p>In Transformation, we defined the mapping between source and target objects; however extraction and update are defined using DTP.<\/p>\n\n\n\n<p>Within DTP, there is option of defining the type of Extraction \u2013 Full\/Delta, package size, filter criteria, Update Mode, Processing Mode and Error Handling Mechanism. All these options can be defined as per business requirement.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/6_617559.jpg\"><img decoding=\"async\" src=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/6_617559.jpg\" alt=\"\/wp-content\/uploads\/2015\/01\/6_617559.jpg\"\/><\/a><\/figure>\n\n\n\n<p><strong>6.&nbsp;Create Infopackage<\/strong><\/p>\n\n\n\n<p><strong>Transaction \u2013 RSA1<\/strong><\/p>\n\n\n\n<p>Infopackage would help in extracting the data from source and loads it to PSA. Data from PSA to the target is taken by DTP as described above.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/7_617560.jpg\"><img decoding=\"async\" src=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/7_617560.jpg\" alt=\"\/wp-content\/uploads\/2015\/01\/7_617560.jpg\"\/><\/a><\/figure>\n\n\n\n<p>Once Infopackage is created, we have defined all the objects which would be needed to extract the data from SNP Planning Area and store it into Backup cube. Final structure in RSA1 would look like below \u2013<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/8_617561.jpg\"><img decoding=\"async\" src=\"https:\/\/blogs.sap.com\/wp-content\/uploads\/2015\/01\/8_617561.jpg\" alt=\"\/wp-content\/uploads\/2015\/01\/8_617561.jpg\"\/><\/a><\/figure>\n\n\n\n<p><strong>Summary \u2013<\/strong><\/p>\n\n\n\n<p>In this document, we saw how data from planning area can be stored in Infocube via data Source, Transformation, DTP and Infopackage. Also, one can automate these steps via process chain and have it scheduled on Daily\/Weekly basis as per requirement.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Source : https:\/\/blogs.sap.com\/2015\/01\/02\/data-extraction-from-planning-area-to-backup-info-cube\/ Introduction A planning area as we know is one of the most important areas in both Demand (DP) and Supply Network Planning (SNP). It basically defines the area where most of the planning activities take place grouping &hellip; <a href=\"http:\/\/www.pierre-vincent.com\/memosap\/2019\/07\/16\/planning-area-to-backup-infocube\/\">Continuer la lecture <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-249","post","type-post","status-publish","format-standard","hentry","category-apo"],"_links":{"self":[{"href":"http:\/\/www.pierre-vincent.com\/memosap\/wp-json\/wp\/v2\/posts\/249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.pierre-vincent.com\/memosap\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.pierre-vincent.com\/memosap\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.pierre-vincent.com\/memosap\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.pierre-vincent.com\/memosap\/wp-json\/wp\/v2\/comments?post=249"}],"version-history":[{"count":0,"href":"http:\/\/www.pierre-vincent.com\/memosap\/wp-json\/wp\/v2\/posts\/249\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.pierre-vincent.com\/memosap\/wp-json\/wp\/v2\/media?parent=249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.pierre-vincent.com\/memosap\/wp-json\/wp\/v2\/categories?post=249"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.pierre-vincent.com\/memosap\/wp-json\/wp\/v2\/tags?post=249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}