Sie sind auf Seite 1von 4

CREATING INFOCUBES FOR USE IN DEMAND PLANNING

You can create InfoCubes manually as described here or use the report /SAPAPO/TS_PAREA_TO_ICUBE to generate a new InfoCube from the planning area automatically. Procedure To create InfoCubes manually, proceed as follows: 1. In the Data Warehousing Workbench under Data Targets, select the InfoArea you previously created and choose Create InfoCube from the context menu. 2. Enter a name and a description for the InfoCube, select the InfoCube type, and press Enter. If asked by the system to choose between SAP APO and BW, select BW. You never actively create an SAP APO InfoCube. 3. In the Edit InfoCube: Characteristics screen, select the characteristics you want to include in your InfoCube from the template and copy them to the InfoCube using the Transfer fields button. Note o o Include 9AVERSION. The SAP SCM system is preconfigured to store planning versions in this characteristic. We recommend that you include the same characteristics that you have in your master planning object structure. Do not include characteristics that you defined as attributes in the master planning object structure. Include 9AMATNR for products and 9ALOCNO for locations. Characteristics prefixed with 9A fall within the standard SAP APO name space. Use conversion routine PRODU for the characteristic that represents products.

o o

End of the note. 4. Click Dimensions to define at least one dimension. Dimensions allow you to group your characteristics according to different business perspectives. For example, you might have a Geography dimension and a Product dimension. Note The dimensions for time characteristics, units, and data packets are automatically created. End of the note. 5. Click the Assign tab to assign the characteristics to dimensions. Select the characteristics that you want to assign. Use the scroll keys to select the dimensions to which the characteristics are to be assigned, and then choose Assign. For example, you might assign the characteristics Region and Customer to the Geography

dimension, and the characteristics Product family, Brand and Product to the Product dimension. Note Assign the characteristic 9AVERSION to a dimension named Version. Choose Continue. End of the note. 6. Click the Time chars. tab to edit the time characteristics. This takes you to the Edit InfoCube: Time Characteristics screen. Select time characteristics from the template. We recommend that you include the same time characteristics as you have for periodicities in the storage buckets profile of the planning area. 7. To include key figures in your InfoCube click the Key fig. tab. This takes you to the Edit InfoCube: Key Figures screen. Select from the template the key figures you want to include in your InfoCube and copy them to the InfoCube using the Transfer fields button. Note o If you wish to use this InfoCube to back up planning data as well as to store actual data, include all the key figures whose data you wish to be backed up. For information on data backup, see Extracting Data from a Planning Area. However, you should not use InfoCubes for storing your current planning data. o To create new key figures, choose Environment Key figures Create . For monetary amounts, select Amount, and enter the data typeCURR and the unit/currency 0STAT_CURR or 0Currency. For quantities, select Quantity and enter the data typeQUAN and the unit0BASE_UOM or 0Unit.

End of the note. 8. Choose InfoCube Activate .

9. Choose Back.

EXTRACTING DATA FROM A PLANNING AREA


Use
There are two purposes for which you might follow this procedure: For ad hoc reporting for planning area data To save data persistently to the database

Procedure
... 1. Generate an export DataSource for the planning area. To do so, proceed as follows: a. On the SAP Easy Access screen, choose Demand Planning Environment Administration of Demand Planning and Supply Network Planning. b. Select the planning area and, in the context menu, choose Change/Display. c. In planning area maintenance, choose Extras Generate DataSource. A dialog box appears in which you enter a name for the data source. d. Choose Execute. A screen with details for the data source appears. e. Specify the fields that you want to be able to select later for reporting purposes. This step enables you to limit a query to specific objects or ranges of objects. Your selection here does not influence the fields that are included in the export structure. Select the Suppress field indicator for the fields (InfoObjects) that you do not want to transfer.

The number of fields that you transfer directly affects performance. Therefore, we recommend that you only transfer those fields that you require for reporting purposes in the InfoCube. The field for the planning version is selected by default; you cannot deselect it. This means that you must enter a planning version in the InfoPackage later. f. Make a note of the DataSource name. g. Choose Save. 2. Replicate the DataSource. To do so, right mouse click the source system and choose Replicate DataSources in the Data Warehousing Workbench. In this case, the source system is the system in which you are performing Demand Planning. For example, if you are planning in the SAP SCM system, client 002, the technical name of the source system is APOCLNT002. When the system messages at the bottom of your screen cease, a background job is triggered. Check in the job overview that this job has finished before proceeding to the next step. 3. In the Data Warehousing Workbench, you are still in the source system view. Right-click the source system and choose DataSources Overview in the context menu. 4. Assign an InfoSource to the DataSource: To do so, proceed as follows: a. In the DataSource overview under Data Marts, select the DataSource and choose Assign InfoSource from the context menu. b. In the dialog box, choose Create. c. In the next dialog box, enter a name and a short description for the InfoSource. d. When the InfoSource has been created, choose Enter. e. Answer the system prompt with Yes. This saves the InfoSource/DataSource assignment.

If the above procedure is unsuccessful, use the following alternative: Switch to the InfoSource view. Create an InfoSource (right-click a suitable InfoArea and choose Create InfoSource).

Right-click the InfoSource and choose Assign DataSource from the context menu. A dialog box appears with an overview of all DataSources in the Data Mart, including the export DataSources you have generated yourself. Select the DataSource you created in step 1. 5. In the Data Warehousing Workbench, branch to the InfoSource view. 6. Right-click the InfoSource that you have just created and choose Change. The screen in which you can specify the assignment of the communication structure to the transfer structure appears. You see the communication structure in the upper half of the screen and the transfer structure in the lower half. Some of the assignment information is proposed by the system. You must fill in the missing information.

This is another opportunity to remove superfluous InfoObjects from the communication structure. See also step 1. 7. Define the assignment of the communication structure to the transfer structure. To do so, proceed as follows: a. In the lower half of the screen, enter the source system and the DataSource for the transfer structure. b. On the Transfer Structure tab page, copy the objects from the DataSource to the transfer structure (from right to left). c. Click the Transfer Rule tab page. d. Check where the assignment of transfer structure fields to communication structure InfoObjects is not proposed by the system. e. Where the assignment has not been proposed: i. Include new InfoObjects in the communication structure in the upper half of the screen. ii. In the lower half of the screen, select the new InfoObjects in the communication structure on the left and copy the InfoObjects to the appropriate fields in the transfer structure on the right. f. Choose Activate. 8. If you need an InfoCube to carry out reporting with a BI front end, create an SAP Remote InfoCube, specifying the InfoSource that you created in step 4 as the InfoSource. Otherwise, see the note below. 9. Activate the SAP Remote InfoCube.

Result
In the SAP Business Explorer Browser, you can now create queries based on this SAP Remote InfoCube. See also Ad Hoc Reporting on Data in a Planning Area

If you want to copy planning area data to an InfoCube for backup purposes or to save old planning data, create a basic InfoCube during step 8 (for example, by running program /SAPAPO/TS_PAREA_TO_ICUBE) and proceed as you would when uploading data from an ERP system or a flat file.

Das könnte Ihnen auch gefallen