When you import from an SAP BW data source, you can import all the metadata or import only the objects you select. For information about mapping SAP BW metadata objects to Framework Manager objects, see Mapping SAP BW Objects to Framework Manager.
You may want to have different views (or layers) in the model: an import view to contain the metadata you imported from the data source and a business view where you enhance the metadata. After importing, you can copy the metadata to the business view. You then have two views that must be synchronized with the BW InfoProvider.
Tip: If you want to expose calculated key figures from
a SAP BW Query, you must import the SAP BW Query .
When using an SAP BW data source, users' access to an InfoCube or InfoQuery metadata does not imply that they also have access to data within those objects. To enable Framework Manager to retrieve metadata from SAP BW, access privileges must be set up within the SAP BW system. To ensure that users have proper access permissions, verify the permissions assigned to the users' roles.
The following authorization objects must be configured so that Framework Manager can import information cubes or data sources, known as InfoCubes in the SAP BW system.
Authorization object | Field | Value |
S_RFC | Activity | 16 - Execute |
Name of RFC to be protected | SYST, RSOB, SUGU, RFC1, RS_UNIFICATION, RSAB, SDTX | |
Type of RFC object to be protected | FUGR - Function group | |
S_RS_ICUBE | Activity | 3 - Display |
InfoCube sub-object | DATA | |
InfoArea | InfoArea_of_the_ InfoCube | |
InfoCube | Name_of_ InfoCube | |
S_RS_HIER | Activity | 71 - Analyze |
Hierarchy Name | Name_of_Hierarchy | |
InfoObject | Name_of_InfoObject | |
Version | Hierarchy_Version | |
S_TABU_DIS | Activity | 03 - Display |
Authorization Group | &NC& |
Tips:
&NC& represents any table that does not have an authorization group. For security reasons, create a new authorization group and assign the table RSHIEDIR to it. The new authorization group restricts the user’s access to the above table only, which is needed by Framework Manager. Create the new authorization group as a customization in the SAP BW system.
You can use the asterisk (*) to represent all values, when it appears alone, or partial values, when used anywhere in a string.
When importing metadata, Framework Manager generates a dimension in each SAP BW characteristic.
Only one hierarchy associated with a given characteristic can be used in a report. Therefore, you should group dimensions that represent the hierarchies of a single characteristic into a folder or model query subject to make reporting easier for your users.
If there are multiple hierarchies in an SAP BW data source, the first hierarchy that is imported becomes the default hierarchy.
Framework Manager supports the following types of hierarchies:
characteristic
This is a list of all the characteristic values.
text node
Non-leaf nodes contain only text and do not reference any other data source object.
characteristic value
The nodes of each level of a presentation hierarchy are values from another characteristic.
recursive
The nodes of the entire presentation hierarchy are from the characteristic itself.
If a characteristic is not in a time dimension but it is a date and is treated as a date in SAP BW, the characteristic is imported with the date data type.
Framework Manager does not support hierarchies that contain two or more types of nodes. These hierarchies are imported but are hidden in the Framework Manager model.
Because hierarchical metadata is automatically generated for SAP BW, you cannot change it in Framework Manager.
You can import the following types of versioned hierarchies from an SAP BW data source:
Version dependent hierarchy
A hierarchy can have multiple versions. Each version of a hierarchy can have a different structure, such as Sales by Region and Sales by Manager. During metadata import, Framework Manager identifies each version as a separate hierarchy and creates a dimension for each.
Entire hierarchy time dependent
Each version has an associated time period that does not overlap with any other version of the same hierarchy. The structure of each version can be different. During metadata import, Framework Manager identifies each version as a hierarchy and includes the applicable time period as part of the dimension name.
Time-dependent hierarchy structure
There is a single version of the hierarchy, but nodes within the hierarchy can be assigned applicable time periods. Over time, the structure of the hierarchy can change with new levels being introduced or removed. For example, levels that represent different sales districts can be added over time. During metadata import, Framework Manager identifies a time-dependent hierarchy structure as a non-versioned hierarchy and recognizes the structure of the hierarchy as of the current date.
The type of dimension determines which hierarchy is used and, for time-dependent hierarchies, which date to use to control the version.
Framework Manager sets the query key date of time-dependent hierarchies based on dates that are contained within the time-dependent hierarchy. You can then select specific versions of hierarchies. For hierarchies with versions on time, the default is the current date and time. The hierarchy that you apply to a characteristic depends upon the type of query key date: fixed, current, or variable. The query key date is set for a specific date.
For fixed date, include only the version that corresponds to the fixed date in the underlying SAP BW Query. For example, if the SAP BW Query has a fixed date such as 2005, only 2005 is imported.
For current date, include only the version that encompasses a time span appropriate for the present until some reasonable time in the future.
For variable, set the date for the variable in Framework Manager and include only the version of the hierarchy applicable to that date.
When you use Framework Manager to model SAP BW data, any versions or dates applied to a presentation hierarchy in SAP BW are not imported into the model. Therefore, all versions of the hierarchy are accessible in Framework Manager.
You may have a time-dependant hierarchy and a variable defined in SAP BW to establish the effective date for the hierarchy. In this case, assign a fixed date to the variable in Framework Manager and include only the dimension that corresponds to that date in the model.
In Framework Manager, if a versioned hierarchy is not time-dependent and has a fixed version, include only the version of the hierarchy associated with the selected version. Otherwise your users are presented with a hierarchy that is inaccessible.
When you import multiple SAP BW Queries or InfoCubes, there can be two or more hierarchies that contain the same information.
You can conform these hierarchies in Framework Manager to create one dimension and one or more shortcuts. These hierarchies must have the same levels and properties. However, the order of the properties can be different. By conforming dimensions, your users can create reports that use multiple cubes without using an SAP BW MultiProvider.
A conformed dimension is represented by a dimension with one or more shortcuts to it. The dimension contains a list of data sources in which the dimension exists. If you want to retrieve data from a specific data source, ensure that you import the dimension from this data source before all others.
The dotted line in the diagram indicates a shortcut.
After import, you can also use Framework Manager to conform dimensions within a project. For more information, see Conform SAP BW Dimensions.
Many existing SAP BW queries contain structures that you can use in Cognos 8 queries to control the amount and order of information that your users see. For example, with dual structures, you can create a crosstab report with one structure on each axis.
The structures are:
key figure structure
The SAP BW Query Designer automatically creates a key figure structure when you add key figures to a query. You must have at least one key figure to import the query metadata into Framework Manager. This is true even when you do not use the key figure in reports. Therefore, you will always have a key figure structure.
characteristic structure
A characteristic structure is a collection of characteristic values (members) from one or more dimensions. You create a characteristic structure in SAP by adding a structure to the query, and then adding the required members to the structure. In Cognos 8, the structure appears as an additional dimension that has only one multiple-root level.
When you import the SAP BW query into Framework Manager, the key figure structure appears in the measure dimension called Key Figures and the characteristic structure appears as an additional dimension.
If you re-import the same SAP BW query into Framework Manager, you must use the same setting for the SAP BW Dual Structures Support check box. Framework Manager does not allow you to select a different setting for the same query because different objects are then generated in the model and this leads to errors. You can use different settings for different queries.
In earlier releases of Cognos 8, dual structures imported into Framework Manager appeared as a measure dimension whose members were the cross product of the two structures. The key figure structure appeared as another dimension not as a measure dimension.
Create a query in Business Explorer Query Designer that accesses the InfoCube.
Create an authorization variable for each InfoObject in the underlying InfoCube for which there are authorizations.
For each variable, ensure that the Ready for Input option is disabled.
By default, this option is enabled.
Enable the query for access through OLE DB for OLAP.
Save the query.
In Framework Manager, reference the query instead of the InfoCube.
Click the namespace, folder, or segment you want to import into and from the Actions menu, click Run Metadata Wizard.
Select a data source connection and click Next.
Select the objects you want to import.
If you are re-importing, the existing object gets updated.
If you are importing new objects and an object with the same name exists, the new object is imported and a number is appended to the original name. For example, you see QuerySubject and QuerySubject1 in your project.
After they are imported, query items cannot be deleted without deleting the entire query subject.
If you want to import a characteristic structure and a key figure structure, select the SAP BW Dual Structures Support check box.
The content of the Select Objects page is updated to reflect the dual structures in your data source.
Note: If you are re-importing the same SAP BW query (for example, because the underlying data source has changed), you must use the same setting for this check box. Framework Manager does not allow you to select a different setting for the same query because different objects are then generated in the model and this leads to errors.
Select the languages you want to import.
These languages must exist in the data source.
You can add languages to your project later, but you cannot go back and import the language-specific metadata from the data source. After the import is complete, the language-specific metadata must be added manually.
Indicate whether you want Framework Manager to show the short name, long name or the technical name for the dimensions.
If you select short name and the field is empty, the long name is shown. If you select the long name and the field is empty, the short name is shown. If you select either short name or long name and both fields are empty, the technical name is shown.
To have objects in the model organized the same way that they are organized in Business Explorer Query Designer, select the Enhance model for SAP BW organization of objects option.
You will then have a folder for each characteristic.
Indicate whether you want to generate conformed dimensions.
Click Next.
A list of objects that could not be imported appears along with counts of objects that were imported.
Click Finish.
After importing, you should check the usage and aggregation
property values . Fact tables can contain numeric columns
that should not be aggregated, such as exchange rates.
When you want to recreate a query on another SAP BW system, use the SAP BW migration mechanism to transport the query. This ensures that the technical name of each measure remains the same so that any project that references the query can be directed to either system without any modifications to the project.