Editing Aggregates 
The InfoCube for which you want to create an aggregate has been saved and is active.
How to create or change an aggregate for an InfoCube is described below.
...
1. You are in the Modeling function area of the Administrator Workbench. In the navigation window choose InfoProvider.
2. In the InfoProvider tree, navigate to the InfoCube whose queries you want to optimize.
3. In the context menu of the InfoCube select Maintain Aggregates. This will bring you screen Maintain Aggregates.
If an
aggregate was already created for the selected InfoCube, you can also go to
the maintenance screen by double-clicking on
.

If you create the first aggregate for an InfoCube, you will first go to the Proposals for Aggregates dialog box. You can define whether the system should propose aggregates or whether you want to create them manually.
For more information see Creating the First Aggregate for an InfoCube.
4. The left side of the screen shows the dimensions, characteristics and navigation attributes of the selected InfoCube in a tree structure as Selection Options for Aggregates.
Select one or more objects to be copied to the aggregate.
Define the granularity you need for the data in the aggregate. Add all the characteristics derived from these characteristics.

For example if you define an aggregate for the month, you should also include the quarter and year in the aggregate.
This enhancement does not increase the data set, but permits
· a year aggregate to be built from this aggregate,
· those who need the annual values can also use queries of this aggregate.
You can only include a characteristic and one of its attributes in an aggregate in expert mode (Extras -> Switch expert mode on/off). Such an aggregate has the same granularity and size as an aggregate that was only built with the characteristic, but is affected by the hierarchy/attribute change run. Compared with the aggregate for the characteristic in which the attribute information is defined by a join with the master data table, the aggregate for the characteristic and the attribute only saves the database join.
We therefore recommend that you either build an aggregate using with the characteristic or you build a much smaller aggregate using the attribute.
5. You have different options for creating an aggregate:
· Pull the selected object(s) to the column Aggregates on the right side of the screen using Drag-and-drop.
·
Select
Create new aggregate.
The Enter Description for Aggregate dialog box appears.
6. Enter:
Short description
Long Description
To change the text at a later time select Change description text from the context menu of the aggregate.
7.
Choose
Continue. You get to the Maintain
Aggregates screen.
The system displays the aggregate at the upper right of the screen. The log is displayed in the lower part of the screen.
For more information see Displaying Aggregates and their Components.
8. If an aggregate contains a time-dependent component, you must assign the aggregate a key date.

When you fill the aggregate, the key date behaves like the key date of a query: The time-dependent attributes and hierarchies are evaluated on this key date. For this reason aggregates with a time-dependent component can only be used in a query if the key date of the query is the same as the key date of the aggregate.
In the Select Variable or Fixed Date dialog box select the following as key date:
·
a variable
that is also used in queries for the key date and can be automatically
calculated in the SAP Exit or Customer Exit processing types
(see
Using
Variables),

0CWD Current workday
0DAT Current calendar day
0P_KEYDT Key date of due date
0P_KEYD2 Key date of posting (from key date of due date)
0P_KEYD3 Key date of clearing (from key date of due date)
0P_KEYD4 Key date of posting (posting date)
0P_KEYD5 Key date of clearing (from key date of posting)

Aggregates with a variable key date must be updated
regularly. This process must be included in a
process chain (Further BW processes ->
Adjust time-dependent aggregates).
· A certain calendar day

To enter a calendar day, select object CALENDAR in
the Select Variable or Fixed Date dialog box (<Calendar>). Choose
Transfer selections. This takes you to the Calendar dialog
box. You can copy this date to the aggregate definition by double-clicking.
The system displays the technical name of the
variable you chose or of the fixed calendar date in the aggregate tree under
Properties for node
Variables for key date.
Once the aggregate has been activated and filled,
the system copies the key date computed from the variable when the aggregate
should be filled into the line
Key
date.
9. You can change the structure of the aggregate by adding further components or deleting existing ones. You can also change the key date.
Inserting Components into the Aggregate
i. Select one or more objects in Selection Options for Aggregates.
ii. Pull them to the aggregate to be changed at the right of the screen with drag-and-drop.
iii. If necessary, change the aggregation levelusing the context menu:
Aggregates containing fewer than 14 components are stored on the database in optimized form (see Efficiently Loading Data into Aggregates).
The characteristics that are defined in the InfoCube are also included in the aggregate and thus increase the number of components even though they are not visible on the surface.
Deleting Components from the Aggregate
i. In the aggregate tree navigate to the characteristic(s) or navigation attributes you want to delete.
ii. Select these components.
iii. To delete the components from the aggregate you can:
- Select Remove components from the context menu.
- Pull the components to the left part of the screen with drag-and-drop.

To delete a dimension from an aggregate, you have to delete all the characteristics and navigation attributes of this dimension.
Changing the Key Date
i.
In the
aggregate tree under
Properties select node
Variable for key date and choose
Change from the context menu. You go to dialog box Select Variable
or Fixed Date.
ii. Select and copy the required variable or calendar date.
The key date computed from a changed variable is
only copied to line
Key date when the Adjust
time-dependent aggregates process has been executed.
10.
To check the
aggregate definition for inconsistencies choose
Check
definition.
11. Save the new or changed aggregate.
You can activate the new or changed aggregate and fill it with data. It is then available for reporting.
See also:
Activating and Filling Aggregates
Rolling Data up into an Aggregate
Automatically Selecting an Optimizing Aggregates
Applying
Hierarchy and Attribute Changes