We'll setup a simple data model from scratch which has the following design:
Using Eclipse with the BW Modeling perspective I recommend that you create a separate InfoArea to contain the build objects - but this is not mandatory. Next right-click the InfoArea and select NEW, INFO-OBJECT. | |
Create CHARACTERISTICS for COST CENTER, GL ACCOUNT, ITEM, PROFIT CENTER and VERSION with length 10, master data and texts. | |
Use the technical names shown in the screen-shot. Now create KEY FIGURES for AMOUNT, NUMBER and QUANTITY using 0CURRENCY and 0UNIT as the supporting characteristics for the unit-based key figures. These 3 key figures will demonstrate how currency, units and simple data types are handled in FOX code. | |
Creating ZNUM gives us a general purpose number key figure which does not require a currency/unit selection. | |
Now create a characteristic named ZTYPE which has NO master data or texts and is an ATTRIBUTE ONLY characteristic. We will use this as an attribute on ZITEM and ZGLACC to classify the line items and demonstrate how FOX accesses and uses them in coding. | |
Add ZTYPE to ZGLACC and ZITEM as an attribute. | |
Logon to BW to create the planning cubes in RSA1. For those of us who have worked on stand-alone instances of BW for a long time and now switching to S/4HANA this is going to take some getting used to...executing BW transaction codes directly from the ERP system where you can see the accounting SAP menu. You can of course work on any version of BW i.e. BW on AnyDB, BW on HANA, BPC 11 etc. The only code element you may have a problem with in very old versions is the use of internal tables which is a fairly new addition to FOX coding and if your version of BW does not support composite providers then use a multi-provider instead. | |
Create two InfoCubes in transaction code RSA1, MODELING. The first will be called ZREV01 for REVENUE PLANNING and the second ZCST01 for COST PLANNING. Make sure you select the check-box for REAL-TIME. Without this selection you will not be able to save data back to the cube. | |
Add all the characteristics we created to the ZREV01 cube EXCEPT for the Cost Center. Also add the standard time dimension characteristics which we did not need to create. | |
Add all the characteristics we created to the ZCST01 cube EXCEPT for the Profit Center. Also add the standard time dimension characteristics which we did not need to create. | |
Now go back to Eclipse to create the Composite provider which I named ZPLAN01. You should see your two InfoCubes in the InfoArea when you refresh the project browser. | |
Add your two InfoCubes as a UNION to the COMPOSITE PROVIDER and drag and drop all the characteristics and key figures to the target. You'll notice that all InfoObjects are shared between the two source cubes except the COST CENTER and PROFIT CENTER as we made these unique to each cube. So you will see single mapping lines from the source cubes to these two target objects. | |
The final step in the data model construction is to create an aggregation level. | |
Create an aggregation level based on the InfoProvider ZPLAN01 (the composite provider) with the technical name ZPAL01 and on the OUTPUT tab add all the InfoObjects from the composite provider. You'll notice that the system automatically adds a characteristic 0INFOPROV to the aggregation level so that we can distinguish which cube the data is being read- and written back to for shared characteristics. | |
So...by the end of the data model setup you should see the InfoArea content as follows: Characteristics and Key Figures, the two real-time InfoCubes, the Composite Provider and an aggregation level. | |
................................................................................................. |
Manually capture some basic master data for each of the characteristics created | |
Once again in transaction RSA1, INFOPROVIDER, right-click, context menu item MAINTAIN MASTER DATA. | |
For each characteristic select NEW for TEXTS and capture the ID and DESCRIPTION. When adding attributes for ITEM and GL ACCOUNT select TIME INDEPENDENT master data. | |
Cost Centers | |
Profit Centers | |
GL Accounts | |
GL Account attributes | |
Items | |
Item attributes | |
Versions |
Here are a few pointers to get the workbook INPUT-READY if it's a bit new to you: ................................................................................................................ | |
The datasource for the input template in Analysis Office is a query built on the aggregation level. | |
Flag the query to open in INPUT-READY mode under the PLANNING tab so you don't have to manually switch it when you add it to the workbook. | |
Add the 3 Key Figures to the columns and make them INPUT READY by selecting each key figure in turn and on the PLANNING tab changing the INPUT-READY field to INPUT-READY. | |
ALL CHARACTERISTICS must be added to either the columns, rows or header (free) sections of the query. Omitting a single characteristic will prevent it from opening in INPUT-READY mode as the query must be at the lowest level of granularity in order to know where to save data. The characteristics in the HEADER area under FREE characteristics must have a FIXED FILTER set for the same reason. These will not be visible in the worksheet and the user will not be able to capture them so they must have fixed values so that when we save the record it has values to save against for those characteristics. | |
After adding the query to the workbook display the design panel and on the COMPONENTS tab at the bottom of the screen select the PLANNING tab in the middle and link the query to the BPC Planning Model. On the same tab selecting the datasource's CROSSTAB will allow you to select the number of new blank lines to capture. The default is 5 and hence the 5 new rows displayed for capture in the worksheet. Selecting the datasource [DS_1] also allows you on this tab to set the datasource to INPUT READY on opening. |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |