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 import CSV with dynamic file names into SAP BW

For larger companies with a broad system landscape, it is sometimes necessary to import data into BW via the flat file interface. The file names have a timestamp and change daily. In this article I will show you how to load these files automatically.

When coordinating data flows, we often face the challenge of connecting certain systems to SAP BW. For example, missing interfaces are often a problem. In this case, information is exported to a CSV file, which is then imported into BW. This process is repeated daily. In order to distinguish the files from each other, the creation date is appended to the file name. Thus the file name changes daily, which creates another challenge when automating the loading process. This can be solved using a couple of lines of ABAP.

For a better understanding I will use a concrete example. A flat file with the data of a legacy system is stored daily in the /tmp/ directory of the SAP server. You can view the directory using transaction AL11. The stored files are differentiated by the current date in the file name. For example, actuals_20190918.csv.

Folder Overview

So, the complete file path is /tmp/actuals_20190918.csv. It consists of a fixed (folder and file name) and a variable part (the current date). To determine the file path automatically, we have to program a routine.


SAP BW, HANA Native and SAP Datawarehouse Cloud - Download the comparison

New call-to-action



To do this, switch to your InfoPackage or DTP (for extraction without PSA) and select the option Load Text-Type File from Application Server under Adapter 1. Then click on Create Routine for File Name under File Name 2.

DataSource Parameter

Now enter the name for the routine and click on Editor.

Enter name for the routine

The file name is determined via the parameter p_filename. If you want to load the file with the current date, you can do this with only one line of code. We use the system variable sy-datum, which outputs the current date.

p_filename = |/tmp/actuals_{ sy-datum }.csv|.

If you want to load the file of the previous day, use the following code.

  DATA: lv_vortag TYPE sy-datum.

  lv_vortag = sy-datum - 1.

p_filename = |/tmp/actuals_{ lv_vortag }.csv|.

Save the changes and activate the DTP or InfoPackage.

The load process can now be executed automatically. The name of the file to be loaded is updated each time. This ensures that the latest file is always loaded.

Learn more about SAP BW

Image Source: Alex Knight from Pexels

,

avatar

Sebastian

Sebastian Uhlig has been consulting companies in various industries on SAP BI solutions at national and international level since 2001 and covers the range from requirements analysis to the implementation of complex solutions. He has experience in leading project teams and is the architect of the product NextTables. He enjoys mountain biking and watching American football games.

Got a question about this blog?
Ask Sebastian

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