Escolar Documentos
Profissional Documentos
Cultura Documentos
Applies To:
This article applies to SAP_BW 350 with support package SAPKW35015
Summary
Business rules change from year to year, but it is generally necessary to study Financial Variances (variances related to Cost center accounting, Activity-based accounting, or Product Costing) across different Fiscal years. In the past, this definitely called for complex BEx queries with sets of restricted/calculated key figures corresponding to each year. But with BW 3.5 onwards, we can achieve this using the Analysis Process Designer, or APD, new in BW 3.5. By: Padmanabha Rao Company: Wipro Technolgies Date: 25 January 2006
2006 SAP AG
Table of Contents
Applies To: .................................................................................................................................1 Summary....................................................................................................................................1 Table of Contents.......................................................................................................................2 Business Scenario .....................................................................................................................3 What is the APD?.......................................................................................................................3 APD Functions..............................................................................................................................4 Step by Step guide.....................................................................................................................4 Data sources.................................................................................................................................4 Transformation..............................................................................................................................4 Data target ....................................................................................................................................4 Online Reporting...........................................................................................................................4 Prerequisite Steps ........................................................................................................................5 Create the BEx query................................................................................................................5 Create ODS...............................................................................................................................5 Creating a new Analysis Process Designer..................................................................................5 Datasources ..............................................................................................................................6 Transformation ........................................................................................................................10 Datatarget................................................................................................................................14 Online Reporting .....................................................................................................................22 Learning, Recommendations & Other uses of APD ................................................................22 Learning ......................................................................................................................................22 Recommendations......................................................................................................................22 Other uses of APD......................................................................................................................22 Reference: ...............................................................................................................................23 Author Bio ................................................................................................................................23 Disclaimer & Liability Notice ....................................................................................................23
2006 SAP AG
Business Scenario
Business Scenario: Stored Financial Variance Model Business rules change from year to year, but it is generally necessary to study Financial Variances (variances related to Cost center accounting, Activity-based accounting, or Product Costing) across different Fiscal years. In the past, this definitely called for complex BEx queries with sets of restricted/calculated key figures corresponding to each year. But with BW 3.5 onwards, we can achieve this using the Analysis Process Designer, or APD, new in BW 3.5.
The APD is able to source data from InfoProviders such as InfoCubes, ODS objects, InfoObjects, database tables, BW queries, and flat files. Transformations include joins, sorts, transpositions, and with BW 3.5, integration with BWs Data Mining Workbench (RSDMWB).
2006 SAP AG
APD Functions The APD interface consists mainly of a Navigation Area, Function selection, and Work Area, as shown below:
The Navigation area consists of an Application toolbar and a tree structure in which all available analysis processes are displayed. A new Analysis Process must be assigned to any one of the applications that SAP has provided. Functions vary from application to application, so they depend on the application component in which you model your analysis process. In the function selection area, all of the available datasources, transformations, and data targets are displayed in the form of icons.
2006 SAP AG
Creating a new Analysis Process Designer SAP menu for the APD is SAP Menu => Data Mining => Analysis Process Designer
Click on icon
2006 SAP AG
Datasources First select the query icon from the Datsources section, and drag & drop it into the Work area. Enter a source query when prompted by the following screen:
2006 SAP AG
2006 SAP AG
Also enter the variant for the variables available in the selected query, if required.
2006 SAP AG
2006 SAP AG
Now the query is read and it is ready for any transformation using routine. Under the first tab of routine, specify a description for the routine.
2006 SAP AG
There is an option for grouping the fields. Move required fields to Source Fields.
2006 SAP AG
You will find all the selected source fields that were selected under the Target fields. BW assigns InfoObjects automatically to all the characteristics and restricted key figures (basic key figure InfoObject used by RKF). Assign InfoObjects to the fields where there is no automatic assignment is available. You also have the option of adding or removing any InfoObject that you would like to map for the Data targets.
2006 SAP AG
Under the last tab Routine, you can do complex mapping of source fields to target fields. For example, the routine below gets the fiscal year from source field fiscal period.
2006 SAP AG
Data Target Select the ODS icon from Data targets section, and drag & drop it to the work area.
2006 SAP AG
Specify the transactional ODS that was already created and provide the description. Under the tab Target Area, APD provides two options for how data (result) is to be stored in the ODS.
2006 SAP AG
Option 1: Already existing data is deleted from ODS regardless of the keyfield combination of ODS. Option 2: Only selected section of data from ODS will be deleted and selected area will be written. Example: Say you have key figures in ODS that are mapped to keyfigures coming from two different data source queries. In this case, insert a master data characteristic Data source Category (eg: ZCQUERY) and load it with the respective query names. Design two Analysis Process one each for each of the predefined query category. This way data will be deleted in ODS only for the respective category query data. Join the nodes of Routine and ODS by dragging on nodes.
2006 SAP AG
2006 SAP AG
Click on Automatic Assignment and further click on same info object. All objects that can be identified readily by ODS to target fields in the routine are mapped automatically.
For Target structure fields like Key figures, you can map it manually by selecting them individually.
2006 SAP AG
Three kinds of field assignment between Target structure (ODS) and Source Structure (Routine Target fields) can be done at this stage, namely: Source char or Constant or Initial value.
Save the analysis process by using icon You will be prompted to enter the technical name for the same. Provide as per the naming convention. Once you have checked the Analysis process using The Analysis process is ready for use. Click on , activate it by to execute the process.
2006 SAP AG
Context menu functionality is available at every node to see the results in each stage and analyze the transformation and storage of data.
2006 SAP AG
2006 SAP AG
Online Reporting An info cube can be built that is connected through BW data mart functionality to the transactional ODS (used in the above Analysis Process). The Analysis Process will run every month, capturing the financial variance using the formula built into source query, storing the data in ODS, and then moving the data to Infocube, so that the ODS is ready for the next months financial variance loading. Hence, the infoCube can be used for reporting the financial variances. If there is any change in business rules or if there is a change in a variance formula, respective changes will have to be done to the query and the data is stored in the infocube accordingly without disturbing the variance values that are already stored.
Recommendations The APD can easily be adopted into a process chain using the process type ABAP program. Choose the ABAP report RSAN_PROCESS_EXECUTE to accomplish this. Query variables and variants can be used to make the APD query more flexible. For example, a user-exit variable can derive the current fiscal year versus entering this value and saving it as a variant. Do not segment the data on the query object if the query is written on a Multi Provider. An overview of APD is available online in the SAP Library (help.sap.com). Follow the menu path Documentation>SAP NetWeaver>(your release/language)>Information Integration> SAP Business Intelligence>BI Platform>Analysis Process Designer. Other uses of APD In a complex system landscape that involves a plethora of sources, a reconciliation method becomes more crucial in reporting financial information. The Analysis Process Designer (APD) can help reconcile financial data. Profiling key figures and characteristics in ODS objects, PSA data, and BW queries can be difficult, time consuming, and inefficient. The Analysis Process Designer tool vastly improves ability to profile data also giving more options to understand data.
2006 SAP AG
Reference:
www.help.sap.com www.bwexpertonline.com
Author Bio
Padmanabha Rao , is a BW Consultant working with Wipro Technologies.
2006 SAP AG