Using TEXTJOIN in SAP HANA

SAP Developer
Updated on 24-Feb-2020 06:16:56

481 Views

In SAP HANA, you can use Text join to fetch description based on user’s session language. When a text join is used, it finds out details in user’s preferred language.Text join can be applied on below modeling objects in SAP HANA −Attribute ViewAnalytic ViewCalculation View

Example of Using TEXTJOIN in SAP HANA

SAP Developer
Updated on 24-Feb-2020 06:16:14

993 Views

To implement Text join, create a table −CREATE COLUMN TABLE TEST.P_INFO (PROD_ID BIGINT, P_CAT NVARCHAR(50)); INSERT INTO TEST.P_INFO VALUES (11, ’FURNITURE’); INSERT INTO TEST.P_INFO VALUES (14, ’ELECTRONICS’); INSERT INTO TEST.P_INFO VALUES (25, ’FURNITURE’); INSERT INTO TEST.P_INFO VALUES (76, ’ELECTRONICS’);2nd table −CREATE COLUMN TABLE TEST.PROD_DESC (PROD_ID BIGINT, LANGUAGE NVARCHAR(10), DESCR NVARCHAR(100)); INSERT INTO TEST.PROD_DESC VALUES (11, ’E’, ’Table’); INSERT INTO TEST.PROD_DESC VALUES (11, ’D’, ’Chair’); INSERT INTO TEST.PROD_DESC VALUES (14, ’E’, ’32 LED’); INSERT INTO TEST.PROD_DESC VALUES (14, ’D’, ’32 inch LCD’); INSERT INTO SAP_STUDENT.PRODUCT_DESC VALUES (25, ’E’, ’Comp Table’); INSERT INTO SAP_STUDENT.PRODUCT_DESC VALUES (25, ’E’, ’Mixer’);Note that it should have ... Read More

Use of Savepoints in SAP HANA

SAP Developer
Updated on 24-Feb-2020 06:12:36

1K+ Views

In SAP HANA database, changed data is automatically saved from memory to disk and at the interval on which it is saved is called savepoints and by default they are set to occur every five minutes. In SAP HANA, there is a persistence layer which is used to make these savepoint at regular interval. During this operation changed data is written to disk and redo logs are also saved to disk as well.The data belonging to a Savepoint tells consistent state of the data on disk and remains there until the next savepoint operation has completed. Redo log entries are ... Read More

Setting Savepoint Manually in SAP HANA System

SAP Developer
Updated on 24-Feb-2020 06:11:50

329 Views

You can run savepoint manually by executing the below command −ALTER System SAVEPOINTChecking savepoint statistics of SAP HANA

Use of Persistence Layer in SAP HANA

SAP Developer
Updated on 24-Feb-2020 06:10:38

292 Views

SAP Persistence layer is required in the following scenarios −In any database, main memory is volatile therefore data is lost during a restart or when a power outage occurs.Data needs to be stored in persisted medium.Backup & Restore is available.It ensures that the database is restored to the most recent committed state after a restart and that transaction are either completely executed or completely undone.

Real-time Data Replication in SAP HANA

SAP Developer
Updated on 24-Feb-2020 06:09:52

1K+ Views

SAP HANA Replication allows migration of data from source systems to SAP HANA database. Simple way to move data from existing SAP system to HANA is by using various data replication techniques.System replication can be set up on the console via command line or by using HANA studio. The primary ECC or transaction systems can stay online during this process. We have three types of data replication methods in HANA system −SAP LT Replication methodETL tool SAP Business Object Data Service (BODS) methodDirect Extractor connection method (DXC)These methods are based on different mechanism of data replication and is recommended for ... Read More

Using Column-Base Tables in SAP HANA Calculation View with Star Join

SAP Developer
Updated on 24-Feb-2020 06:08:53

509 Views

It does not allow base column tables, Attribute Views or Analytic views to add at data foundation. All Dimension tables must be changed to Dimension Calculation views to use in Star Join. All Fact tables can be added and can use default nodes in Calculation View.For more details, you can refer our tutorial link −https://www.tutorialspoint.com/sap_hana/sap_hana_calculation_view.htmYou have four tables, two Dim tables, and two Fact tables. You have to find list of all employees with their Joining date, Emp Name, empId, Salary and Bonus.This can be achieved using Calculation view with Star Join. You need to convert column based tables to ... Read More

Using Calculation Views Inside Another Calculation View in SAP HANA

SAP Developer
Updated on 24-Feb-2020 06:07:13

755 Views

Yes, Calculation views are composite views and they can be used to combine other views. You can consume other Analytical, Attribute, and other Calculation Views & tables. It can perform complex calculations not possible with other views.

Changing Language in Text Join in SAP HANA

SAP Developer
Updated on 24-Feb-2020 06:06:26

614 Views

To change the language, go to Additional Properties tab in Database user logon and change the language as shown below −

Using TEXTJOIN in SAP HANA Modeling

SAP Developer
Updated on 24-Feb-2020 06:05:40

427 Views

To create an Attribute view, you have to navigate to Content tab → Package → New → Attribute ViewYou can select any of view type to implement a Text join in HANA.Add both the tables to Data Foundation and in Join type select Text join as shown below −Next is to save and activate Attribute view and text join is used.

Advertisements