To use Cognos product documentation, you must enable JavaScript in your browser.

Import from an SAP BW Data Source

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 .

Access to SAP BW Metadata and Data

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:

SAP BW Hierarchies

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:

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.

Versioned Hierarchies

You can import the following types of versioned hierarchies from an SAP BW data source:

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.

Conformed Dimensions

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.

SAP BW Structures

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:

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.

Steps to Access a Secured InfoCube
  1. Create a query in Business Explorer Query Designer that accesses the InfoCube.

  2. Create an authorization variable for each InfoObject in the underlying InfoCube for which there are authorizations.

  3. For each variable, ensure that the Ready for Input option is disabled.

    By default, this option is enabled.

  4. Enable the query for access through OLE DB for OLAP.

  5. Save the query.

  6. In Framework Manager, reference the query instead of the InfoCube.

Steps to Import from an SAP BW Data Source
  1. Ensure that there is a connection to the data source .

  2. Click the namespace, folder, or segment you want to import into and from the Actions menu, click Run Metadata Wizard.

  3. Select a data source connection and click Next.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. Indicate whether you want to generate conformed dimensions.

  10. Click Next.

    A list of objects that could not be imported appears along with counts of objects that were imported.

  11. 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.