Skip to content
NextLytics
Megamenü_2023_Über-uns

Shaping Business Intelligence

Whether clever add-on products for SAP BI, development of meaningful dashboards or implementation of AI-based applications - we shape the future of Business Intelligence together with you. 

Megamenü_2023_Über-uns_1

About us

As a partner with deep process know-how, knowledge of the latest SAP technologies as well as high social competence and many years of project experience, we shape the future of Business Intelligence in your company too.

Megamenü_2023_Methodik

Our Methodology

The mixture of classic waterfall model and agile methodology guarantees our projects a high level of efficiency and satisfaction on both sides. Learn more about our project approach.

Products
Megamenü_2023_NextTables

NextTables

Edit data in SAP BW out of the box: NextTables makes editing tables easier, faster and more intuitive, whether you use SAP BW on HANA, SAP S/4HANA or SAP BW 4/HANA.

Megamenü_2023_Connector

NextLytics Connectors

The increasing automation of processes requires the connectivity of IT systems. NextLytics Connectors allow you to connect your SAP ecosystem with various open-source technologies.

IT-Services
Megamenü_2023_Data-Science

Data Science & Engineering

Ready for the future? As a strong partner, we will support you in the design, implementation and optimization of your AI application.

Megamenü_2023_Planning

SAP Planning

We design new planning applications using SAP BPC Embedded, IP or SAC Planning which create added value for your company.

Megamenü_2023_Dashboarding

Dashboarding

We help you with our expertise to create meaningful dashboards based on Tableau, Power BI, SAP Analytics Cloud or SAP Lumira. 

Megamenü_2023_Data-Warehouse-1

SAP Data Warehouse

Are you planning a migration to SAP HANA? We show you the challenges and which advantages a migration provides.

Business Analytics
Megamenü_2023_Procurement

Procurement Analytics

Transparent and valid figures are important, especially in companies with a decentralized structure. SAP Procurement Analytics allows you to evaluate SAP ERP data in SAP BI.

Megamenü_2023_Reporting

SAP HR Reporting & Analytics

With our standard model for reporting from SAP HCM with SAP BW, you accelerate business activities and make data from various systems available centrally and validly.

Megamenü_2023_Dataquality

Data Quality Management

In times of Big Data and IoT, maintaining high data quality is of the utmost importance. With our Data Quality Management (DQM) solution, you always keep the overview.

Career
Megamenü_2023_Karriere-2b

Working at NextLytics

If you would like to work with pleasure and don't want to miss out on your professional and personal development, we are the right choice for you!

Megamenü_2023_Karriere-1

Senior

Time for a change? Take your next professional step and work with us to shape innovation and growth in an exciting business environment!

Megamenü_2023_Karriere-5

Junior

Enough of grey theory - time to get to know the colourful reality! Start your working life with us and enjoy your work with interesting projects.

Megamenü_2023_Karriere-4-1

Students

You don't just want to study theory, but also want to experience it in practice? Check out theory and practice with us and experience where the differences are made.

Megamenü_2023_Karriere-3

Jobs

You can find all open vacancies here. Look around and submit your application - we look forward to it! If there is no matching position, please send us your unsolicited application.

Blog
NextLytics Newsletter Teaser
Sign up now for our monthly newsletter!
Sign up for newsletter
 

Characteristic relationships in SAP BW IP and BPC made simple

In planning, you can use characteristic relationships to determine which combinations you want to allow within your planning application. Correct values can also be derived automatically. In this article, you will learn how to work with characteristic relationships.

Functions of characteristic Relationships

You can use characteristic relationships to link corresponding characteristics with each other, thus ensuring data consistency. You achieve this by defining rules to check permitted combinations of characteristic values for the plan InfoProviders.

You can also define rules according to which values for other characteristics can be derived automatically from characteristic values. For example, you can use the city to determine the region. This is useful, if the derived characteristics are not relevant in the current planning context, but should be available for further evaluations.

Basically, you can differentiate between three functions:

1. When a data record is created, the SAP system can check whether the planned combination of characteristics is allowed. For example, the combination shown in the table below would not be valid and could therefore not be saved.

Product Group

Product Category

Quantity

Smartphone S

Tablets

100

 

2. The SAP system also knows the valid combinations for each characteristic and can propose (generate) them automatically. The following table shows an example.


Product Group

Product Category

Quantity

Smartphone S

Smartphones

0

Tablet I

Tablets

0

 

3. Furthermore, the value of a characteristic can be derived from the value of another characteristic. For example, the corresponding product category can be filled automatically in the background from a planned product group, as shown in the table below.

Product Group

Product Category

Quantity

Smartphone S

Smartphones

100

 

In general, multiple characteristic relationships are possible for each InfoProvider. In this case, all characteristic relationships are executed step-by-step in the specified order. This allows you to form causal chains when defining characteristic relationships. For example, you can first derive the product group from a product and then derive the product category from the product group in the second step. You can also deactivate individual steps of the characteristic relationships for test purposes.

You can differentiate between characteristic relationships with derivation and without derivation. In the following sections, I will explain the main differences using an example.

Characteristic Relationships without Derivation

Let's take a look at the following master data: the product group Smartphone S is assigned to the product category Smartphones. The product group Tablet I belongs to the product category Tablets.

Product Group

Product Category

Smartphone S

Smartphones

Tablet I

Tablets

 

At the InfoProvider level, we define a characteristic relationship without derivation. You can either use transaction RSPLAN or, in higher versions, the BW Modeling Tools.

Charactiristic Relationship

Both Characteristics are in the Aggregation Level

If both characteristics are in the aggregation level, the valid combinations are checked and can also be generated automatically.

Both Characterstic in Aggregation Level

For example, the combination of Smartphone S and Tablets is recognized as invalid.

Invalid combination

Note, however, that the following combinations are considered valid:

Product Group

Product Category

Smartphone S

#

#

Smartphones


You can view a list of all valid combinations if you select the option Characteristic Relationships for the characteristic Product Group in the query settings under Extended Access Type for Result Values.

Access Type

The following combinations are generated automatically.

Cartesian product is generated

As you can see, this is a cartesian product of all permitted combinations. The initial characteristic value # (Not assigned) plays a special role here. This means that combinations with the initial value # are valid by default. This is because characteristics that do not occur in an aggregation level are always updated with the initial value. Therefore, there is no validity check for the initial values.

Prohibit automatically valid Combinations

If this behavior is not desired, you can prohibit automatically valid combinations by selecting the Exclude # option in the characteristic relationship.

Exclude unassigned

In this case, the following combinations are no longer considered valid:

Product Group

Product Category

Smartphone S

#

#

Smartphones


If you set the setting Access Type to Characteristic Relationships, only three valid combinations are generated.

Valid combinations

Product Group in the Aggregation Level

If only the Product Group characteristic is in the aggregation level, the defined characteristic relationship has no functionality.

Product Group

If you plan at the product group level, the product category is saved as Not assigned #.

Plan Product Group

To derive the product category automatically, you must define a characteristic relationship with derivation. The next section explains how this works.

Characteristic Relationships with Derivation

To explain the characteristic relationships with derivation, I use the same combination of product group and product category as an example.

 

Product Group

Product Category

Smartphone S

Smartphones

Tablet I

Tablets


To define a characteristic relationship with derivation, activate the With Derivation setting and define the source and target characteristic.

Characteristic relationship with derivation

Both Characteristics are in the Aggregation Level

In the case of a characteristic relationship with derivation, valid combinations are still checked, if both characteristics are in the aggregation level.

Product Category and Product Group are in Aggregation Level

For example, the combination of Smartphone S and Tablets is still recognized as invalid. However, unlike the characteristic relationship without derivation, the product category is automatically derived when you enter a product group.

Derived Product Category

Therefore it is not possible to enter the following combination:

Product Group

Product Category

Smartphone S

#

 

However, please note that an undefined product group with a product category is still allowed.

Product Group

Product Category

#

Smartphones

 

Not assigned product group

To display the list of all valid combinations, you can select the option Characteristic Relationships for the characteristic Product Group in the query settings under Extended Access Type for Result Values.

Define access type

Combinations with unassigned product group considered as valid

Unlike combinations that are generated with characteristic relationships without derivation, no Cartesian product is generated. Only valid combinations of product group and product category are generated. However, as you can see, combinations with an empty product group are considered valid.  If it is not desired, you can prohibit automatically valid combinations.

Prohibit automatically valid Combinations


As with characteristic relationships without derivation, select the Exclude # setting.

Exclude not assigned

If you reset the query, the result looks the same as for characteristic relationships without derivation.

Valid combinations are automatically generated

Product Group in the Aggregation Level

However, the most important difference becomes visible if only the characteristic Product Group is in the aggregation level.

Product Group Aggregation Level

In this case, the corresponding product category is automatically derived and stored in the InfoProvider when you plan a product group.

Plan product group

Product Category derived on save

Recommended Setting

In general, you should always use the characteristic relationship with derivation. This ensures that each data record is provided with valid values, even if a characteristic is accidentally missing in the aggregation level. Even if you select the property with derivation, a combination check is still performed (or a proposal is created) if respective characteristics are contained in the aggregation level.

 


Planning Tools compared - SAP BW IP vs. BPC vs. SAC

Neuer Call-to-Action


 

Sources of Characteristic Relationships

The values of the characteristic combinations can be determined in four different ways. The source for characteristic relationships can be master data attributes of a characteristic (type attribute), a hierarchy (type hierarchy), a DataStore object (type DSO), or an exit class (type exit).

Sources of characteristic relationships

If Attribute is selected as type, the combinations of characteristic and attribute values contained in the master data of the characteristic are transferred as allowed values. If you select Hierarchy as Type, you can use a hierarchy to determine the source and target characteristics of the characteristic relationships. However, you can also store the valid combinations in a DSO and use this as the source for characteristic relationships. In addition, you have the option of designing permitted combinations of characteristics flexibly and individually by programming them. In this case, use the type Exit.

It is recommended that you implement individual exit functionality for characteristic relationships directly in the SAP HANA database using SQLScript. The SAP-HANA-specific interface IF_RSPLS_CR_EXIT_HDB must be implemented. However, if you do not want to deal with SQLScript, you can still use the ABAP implementation as a fallback. You can use the example class CL_RSPLS_CR_EXIT_BASE. The interface IF_RSPLS_CR_EXIT used here must also be available if you are using SQLScript. In certain situations, the system triggers the ABAP implementation to avoid data being transferred record by record between the SAPBW∕4HANA system and the SAP-HANA database.

However, please note that in this case you will not fully exploit the possibilities of performance optimization. Performance can suffer, especially if disaggregation or planning functions are carried out with large data quantities. For more information about the exit and fallback scenario, you can use SAP Note 1956085 (BW-IP (PAK): ABAP as fallback for exit characteristic relationships and data slices in SAP HANA).

Learn all about SAP BPC

avatar

Chris

Chris Fidanidis has been working in the SAP BW environment since 2007. During these years he has implemented several planning projects and used various SAP tools such as SAP BSP, SAP BW-IP, SAP BPC, SAP BW Embedded BPC. He has gained experience primarily as a developer, architect, project manager and team leader. He enjoys playing basketball and barbecue whenever possible.

Got a question about this blog?
Ask Chris

Blog - NextLytics AG 

Welcome to our blog. In this section we regularly report on news and background information on topics such as SAP Business Intelligence (BI), SAP Dashboarding with Lumira Designer or SAP Analytics Cloud, Machine Learning with SAP BW, Data Science and Planning with SAP Business Planning and Consolidation (BPC), SAP Integrated Planning (IP) and SAC Planning and much more.

Subscribe to our newsletter

Related Posts

Recent Posts