Hey Champs,
Let’s understand one of the important feature of datasphere which is dataflow, Before moving on to the topic first we have to understand the three things well i.e “What” “Why” ”How”.
Why:
Data flow is an exciting new feature of SAP Datasphere because it provides a visually-based modeling experience for data integration. This makes it easier to combine and load data from various sources, including structured and unstructured data. Just imagine we have BODS facility integrated here and that is awesome.
What:
Data flow allows you to create and manage data pipelines using a graphical interface. These pipelines can be used to perform a variety of tasks, such as extracting data from different sources, transforming it, and loading it into target destinations.
How:
Well this answer will not be small and simple, to understand this lets watch the full movie with me.
User Interface :
Champs lets see what all tools and option Sap Datasphere is providing us.
Now lets cover a simple scenario of getting data from a source as excel file and loading to a target table.
Wait.. Do we need to create target table again ?. No not at all, thanks to Sap for this wonderful feature where we just have to click create and deploy target table and automatically target table will be created.
USE CASE 1:
We got a requirement where while getting the order information from a different source table we want to add the leading zeros to the item column, so how to do it ?
let’s jump in for data flow to add the leading zeros :-
First we will create the source table using one excel file. After that we need to drag and drop the Sales order table into our play area :
Well, Now lets write one small python script to add the leading zeros. “What ? Datasphere supports python ??”. Yes, that’s correct datasphere support many python function and its still evolving.
Drag and drop script operator as shown in the below image and write the following code.
Once we finished writing the script we have to then click on add table to create the target table.
Now once we have added the target table. Click on Target table and in the right side we will get details panel. Time being select the mode as append. And then in the top left corner just clock deploy option.
I will discuss all the rest mode types in details in further blogs.
Append: Write the data obtained from the data flow as new records appended to the end of the target table.
Now go to target table and click on data preview and its done, as we can see all the items have leading zeros.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 | |
2 |