Data loads to SAP HANA DB using SAP DS (Data Services)
Data loads to SAP HANA DB using SAP DS (Data Services)

Data loads to SAP HANA DB using SAP DS (Data Services)

In this article I'm going explain the data loading process to SAP HANA DB using SAP ECC as Source System.

SAP Data services:

SAP Data services is an ETL tool which gives a single enterprise level solution for data Integration, Transformation, Data quality, Data profiling and Text data processing from different source systems into a target DB.

SAP Data services Features:

  • Single development user interface
  • Metadata repository
  • Data connectivity layer
  • Run-time environment
  • Management Console

Once we login to DS and open Designer layout, we can see the following elements:

Menu bar across the top, Tool bar under the menu bar, Project Area, Local Object Library with following tabs.

  • Projects : Use the project area pane to create and manage projects, to monitor job executions, and to view job execution logs.
  • Jobs : Job is the only object that you execute. A job contains all other subordinate objects in hierarchical order.
  • Work flows : A work flow defines the decision-making process for executing data flows.
  • Data flows : A data flow is the process by which the software transforms source data into target data.
  • Transforms : Transforms operate on data sets by manipulating input sets and producing one or more output sets.
  • Datastores : Datastores contain connection configurations to databases and applications that contain your data.
  • Formats : Format is a set of properties that describe the metadata structure of a flat ASCII file.
  • Custom Functions : When none of SAP Data Services built-in functions match your needs, create a custom function.

Scenario:

We have SAP ECC as source system and HANA DB as target system, this is used to store organizational data centrally for reporting purpose. (and also have different sources systems like MS SQL, Oracle and other applications on different databases, but in this case I'm taking only SAP ECC as source system).

The below is the initial screen of DS.

No alt text provided for this image

Give the SAP ECC details like below.

No alt text provided for this image

Import the required tables from SAP ECC into DS.

No alt text provided for this image

Give table name MARA and Import it.

No alt text provided for this image

Create Datastore for HANA DB, we are going to create and load MARA Table data in HANA DB under my Schema.

I'm going to take MARA, MAKT tables and join them, apply some filters and load the data into HANA DB.

No alt text provided for this image

Now Under Projects, create new project, under that create a new job, under that create new work flow, under that create new data flow.

Bring two Sources Tables (MARA and MAKT from Datastore) and add Query Transform, join both tables to Query Transform.

No alt text provided for this image

Once double click on Query Transform, it will open the below window and there we can Join tables and give filters etc...

No alt text provided for this image

Join two tables using MATNR and filter the data using SPRAS (only English). Apart from these we can also have additional functions but I'm not using them, this is simple demo.

No alt text provided for this image

Save All and Execute the job.

No alt text provided for this image

We can see the Error message, the job is failed. We have to adjust the Data types and again execute.

No alt text provided for this image
No alt text provided for this image

Save All and Execute again, the job will be SUCCESS and it will create tables in HANA under given Schema.

No alt text provided for this image

See the definition and Data of MATERIALS_ECC table.

No alt text provided for this image
No alt text provided for this image

We can also load the data to NON-SAP systems to do this we have to create separate Datastore in DS and use them for Target (and also Source).

Please ignore brevity and typos.


Ramakrishnan Ramanathaiah

Director Data Analytics | Data Engineering Advisor | Large Scale Data Transformation | Program Delivery | Recognized Author | Public Speaker | Talent Mentor

2 年

Greetings Surendra. Quick question. Can we update the S/4 Application tables - In our case custom Z tables on the application from BODS. We do not see the S/4 application tables as target. I have situation where we are not allowed to load the data into SAP HANA DB directly. We are using BODS. Is there any other options with in the BODS to upload data from SQL Server in to Custom tables Directly ( By-passing ) to HANA DB. Like custom BAPI Etc? Thank you very much. Regards Ram

回复
Shivanand Swami

Manager-SAP SD and GTS | Certified Scrum Master

5 年

Nice post Surendra??

回复

My team just used in oil exploration SAP ECC as a source HANA S/4 as a target

Sounds good, nice explanation

回复
Ameya Gupte

Technical Lead @Tech Mahindra | SAP Analytics Certified, Data Warehousing, Project Management, SAP BI

5 年

Informative post. Thanks

回复

要查看或添加评论,请登录

Surendra K的更多文章

  • AMDP in SAP HANA

    AMDP in SAP HANA

    ABAP-Managed Database Procedures (AMDP) What is AMDP? AMDP is one of the recommended patterns for use in ABAP code…

    4 条评论
  • Table Functions in SAP HANA

    Table Functions in SAP HANA

    In this article I'm going explain how to create SAP HANA Calculation View using Table Function. In my previous article…

    1 条评论
  • SAP HANA Calculation View - SQL Script

    SAP HANA Calculation View - SQL Script

    In this article I'm going explain how to create SAP HANA Calculation View using SQL Code. i.

    3 条评论
  • Calculation Engine Plan Operators (CE Functions) Vs SQL Code

    Calculation Engine Plan Operators (CE Functions) Vs SQL Code

    In this blog, I'm going explain few CE Functions and also the alternative solution for CE Functions using three tables…

  • Set Operators using SQL Code and HANA Studio GUI/WEB IDE

    Set Operators using SQL Code and HANA Studio GUI/WEB IDE

    In this article, I will explain/show all Set Operators using SQL Code and also in HANA Studio/WEB IDE using Calculation…

  • The importance of SERIES GENERATE Functions in SAP HANA

    The importance of SERIES GENERATE Functions in SAP HANA

    In this page I'm going to explain few SERIES GENERATE functions with simple examples. It looks like simple but we can…

    3 条评论
  • About ROW_NUMBER(), RANK(), and DENSE_RANK() Functions in SAP HANA

    About ROW_NUMBER(), RANK(), and DENSE_RANK() Functions in SAP HANA

    ROW_NUMBER() The output of the this function can be non-deterministic among tie values. The ordering of the sequence is…

    11 条评论

社区洞察

其他会员也浏览了