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
 

How to setup flexible scenarios with Tables Aliases

◀ Back to Knowledge Base

With version 7.0, aliases for tables are introduced, allowing to use the same table in multiple scenarios. For example, you can build a scenario where master data of a Cost Center InfoObject should be maintained by two different departments. One department may only change the Person Responsible field and the other department may only change the Business Division field. Furthermore, you can build more flexible custom logic in BAdIs. These scenarios are explained in detail in this article.

Maintenance of Cost Center Master Data

Let's assume that the master data of the Cost Center InfoObject should be maintained by different departments. For example, the person responsible should be edited by HR, while Controlling can adjust the Business Division of the respective Cost Center. All other fields should remain untouched. Furthermore, none of the departments is allowed to add new entries or delete existing ones.

This scenario can be implemented without any coding, only using the standard configuration settings and table aliases. First, we create two alias tables, which reference to the same InfoObject.

how to setup flexible scenarios 1

In Table Properties, define InfoObject as Alias Table Type and the respective InfoObject as Alias Table Name.

how to setup flexible scenarios 2

 

how to setup flexible scenarios 3

You can also set custom settings, for each Alias Table. In our example, it should not be possible to add or delete entries.

how to setup flexible scenarios 4

Both Alias Tables should be assigned to different application, in order to assign respective authorizations. This way, each department can see only their Alias Table. You can assign authorizations for applications using the object /NLY/TBLS.

In Table Column Properties, it is possible to lock certain fields. In our example, all fields should be locked, except Person Responsible in the first Table Alias and Business Division in the second.

how to setup flexible scenarios 5

Entries are individually maintained for each field and alias table. You can lock text fields using field names TXTSH, TXTMD or TXTLG for short, middle and long text respectively.

how to setup flexible scenarios 6

As a result, only the "Person Responsible" field is editable in the first table.

how to setup flexible scenarios 7

Please also notice, that is not possible to add or remove entries in this table.

how to setup flexible scenarios 8

In the second table, it is only possible to edit the short and medium description.

how to setup flexible scenarios 9

Maintenance of Account Model Key Figures

In this example I will demonstrate how to leverage alias tables usage in BAdI. In our example, a DSO in account model is used to maintain different key figures. One department should maintain revenue (account 100) and the other costs (account 200).

how to setup flexible scenarios 10

Using an alias table, we can separate the maintenance screens for each department, with dedicated BAdI logic to restrict the filter to a certain account. Similar to the previous example, each alias table is assigned to a different application. So you can assign the authorizations accordingly.

how to setup flexible scenarios 10-11

In our example, we do not want users to be able to add new accounts via filter, so we turn global filters off in the settings of the alias table.

how to setup flexible scenarios 11

 

In the DATA Method of the Table Maintenance BAdI we implement checks for each alias table and define the filters. This way, only data matching the respective alias table is displayed. In the article “How to implement a BAdI for NextTables” you will learn how to create a BAdI.

METHOD /nly/if_editor~set_data_exit.
* This Implementation can be used if a table should be restricted by a certain field/value.
*If the user should not be able to add aditional filters, then the prefilter/gloal filter for this field should be turned off in meta data as well.
CASE i_step.
WHEN /nly/cl_table_rest_v3=>co_step_before_read.

IF i_tabname = 'ZDRACCNT_AL1'. "Not allow to change cost for this alias table
APPEND VALUE #( fieldname = '/BIC/ZACCOUNT'
sign = 'I'
option = 'EQ'
low = '100'
high = ''
)
TO c_query_post-select_options.

ELSEIF i_tabname = 'ZDRACCNT_AL2'. "Not allow to change revenue for this alias table
APPEND VALUE #( fieldname = '/BIC/ZACCOUNT'
sign = 'I'
option = 'EQ'
low = '200'
high = ''
)
TO c_query_post-select_options.
ENDIF.
ENDCASE.
ENDMETHOD.

In the BAdI filter, both aliases are maintained, so the BAdI is executed for both and the differentiation is executed in the logic. It is also possible to create different BAdI implementations with dedicated logic.

how to setup flexible scenarios 13

As a result, only revenue or costs are shown in each table.

how to setup flexible scenarios  13

 

how to setup flexible scenarios 14

How to create an Alias Table?

In order to create an Alias Table, follow the menu path CONFIG → WIZARD → Table Properties and create a new entry. Please select Alias Table (ALIASTABLE) as Table Type and define the name of your alias as Table Name. Select the type of the physical object you are referencing to in the field Alias Table Type. Afterwards, enter the technical Name of the physical object of the physical object you are referencing to in the Alias Table Name field.

You can define individual settings for your Alias Table. For example, you can make it view only and disable inserting of new values. Furthermore, you can also change properties of each field individually, just like with any other table.

how to setup flexible scenarios 15

How to use an Alias Table in BAdIs

In order to use the Alias Table in your BAdI, you have to define it in the filter. Please define ALIASTABLE as TTYPE and the name of your respective Alias Table, e.g. ZDREXMPL_AL1 as TABNAME.

how to setup flexible scenarios 16

Alias Table Authorizations

Please also note that the users will need the Alias Table authorizations in order to use Alias Tables. Please make sure the activity ALIASTABLE in the field name Table Type /NLY/TTYPE is selected.

how to setup flexible scenarios 17

Furthermore, authorizations for the respective application and table name should also be maintained.

how to setup flexible scenarios 18

 

Please note: In general "Alias Tables" can be used in the professional and enterprise version. The shown example "Maintenance of Account Model Key Figures" uses a BAdI and therefore can only be implemented in the enterprise version of NextTables. 


Which License is needed for this feature Professional  | Enterprise


Do you have a question regarding NextTables? Already a customer? Please click here for Support.