Top 22 Sap Hana Sql Script Interview Questions You Must Prepare 27.Jul.2024

Q1. What Is Sqlscript In Sap Hana ?

It is a set of SQL extensions for SAP HANA database which allow developers to push data intensive logic into the database.

Q2. What Operator Is Used To Debug Sqlscript Procedures?

TRACE operator. It traces the tabular data passed as its argument into a local temporary table and return its input unmodified. The names of the temporary tables can be retrieved from the SYS.SQL SCRIPT TRACE view. 

Example: out = TRACE (:input);

Q3. What Is The Difference Between Break And Continue?

Break means loop should stop processing, CONTINUE means loop should stop processing the current iteration and immediately start processing the next iteration.

Q4. Is It Possible To Specify The Type Of Data Load And Replication In Sap Hana ?

Yes it is possible to specify type of data load and replication in SAP HANA, it can be either in real time, or scheduled by time or by interval.

Q5. What Is A Private Attribute In Sap Hana?

Private attributes are the attributes used inside a modeling views and cannot be used outside the view.These are used in a modeling view to customize the behavior of an attribute for only that view.

Q6. What Is Sap Hana Appliance 1.0?

SAP HANA 1.0 is an analytics appliance which consists of certified hardware, and In Memory DataBase (IMDB), an Analytics Engine and some tooling for getting data in and out of HANA. The logic and structures are built by the user and a tool is used.

Example: SAP BusinessObjects, to visualize or analyze data.

Q7. Hana Uses Which Storage Subsystem?

A shared network attached and varies from vendor to vendor and is called the storage. Here both regular magnetic disks and SSD storage can be used for the backup of the database (HANA runs in memory remember, so disk storage is just for backup, and later, for data ageing). If the operator require 2x storage that you have RAM, which is 2x the database size - i.e. storage size = 4x database size. Anyways in most cases there is additional ultra-high speed SSD storage for log files.

Q8. Define Latency In Sap Hana ?

Latency is the length of time to replicate data (a table entry) from the source system to the target system.

Q9. Explain How Sqlscript Procedure Is Processed In Hana Database?

When a user creates a new procedure, the HANA database query compiler first:

  • Parse the statements
  • Check the statement semantic correctness
  • Optimize the code for Declarative and Imperative logic
  • Code generation creates Calculation models for Declarative logic and L nodes for Imperative logic
  • Compiled procedure creates Content in the database Catalog and in Repository

Q10. Is There Any Need Of Pre-requisite Before Creating The Configuration And Replication?

DMIS add-on is installed in SLT replication server for SAP source systems. The role IUUC_REPL_CONTENT is assigned to the user for RFC connection but not DDIC. DMIS add-on is notrequired and grants a database user sufficient authorization for data replication for a non-SAP source system.

Q11. Define Configuration In Slt?

The information required to create the connection between the source system, SLT system, and the SAP HANA system is specified within the SLT system as a Configuration. A new configuration in Configuration & Monitoring Dashboard (transaction LTR) can hence be defined.

Q12. How To Set-up Tracing?

From the Administration perspective, navigate to tab “Trace Configuration” . In order to change settings, you need to have system privileges “TRACE ADMIN” and “INFILE ADMIN”. 

Q13. What Are Transformation Rules?

Transformation rule is a rule specified in the Advanced Replication settings transaction for source tables such a way that the data is transformed during the replication process. 

For example: one can specify rule to Convert fields, Fill empty fields and Skip records

Q14. What Is Slt(sap Landscape Transformation) In Sap Hana?

The full form of SLT is SAP Landscape Transformation which is nothing but a trigger based replication. It is the replication technology to pass the data from the source system to the target system. Here the source can be either SAP or non-SAP whereas the Target system is SAP HANA system which contains HANA database.

Q15. What Additional Limitations Does Sybase Replication Server Present?

SRS has additional restrictions which are worth to be understood. It only replicates Unicode data and does not support IBM DB2 compress tables.

Q16. Can We Load And Replicate Data From One Source System To Multiple Target Database Schemas Of Hana System?

Yes. It can be loaded and replicated for up to 4 targets.

Q17. What Happens When You Compile The Procedure In Sap Hana ?

During compilation, the call to the procedure is rewritten for processing by the calculation engine.

Q18. What Is The Relation Between The Number Of Data Transfer Jobs In The Configuration Settings And The Available Bgd Work Processes?

Each job occupies 1 BGD work processes in SLT replication server. For each configuration, the parameter Data Transfer Jobs restricts the maximum number of data load job for each mass transfer ID (MT_ID).

A mass transfer ID requires at least 4 background jobs to be available:

One master job

One master controller job

At least one data load job

One additional job either for migration/access plan calculation/to change configuration settings in "Configuration and Monitoring Dashboard".

Q19. Hana Support In Real-time What Types Of Source Database?

If Sybase Replication Server (SRS) for near real-time data is used then the licensing still (SAP have license deals pending) needs to checked. If DB2 is run then its fine but with Oracle and Microsoft SQL Server there are some license challenges. So if license is bought through SAP, because you may have a limited license that does not allow extraction

Q20. How Big Does Hana Scale ?

Theory wise at least very well. Most mid-size workloads - 2TB of in-memory storage is equivalent to 5-20TB of Oracle storage can be run by the biggest single server HANA hardware. HANA works in a way that means it is possible to chain multiple systems together which means that scalability has thus-far been determined by the size of customers' wallets. Whilst SAP talk up "Big Data" quite a lot, HANA currently only scales to the small-end of Big Data referring to the kind of huge datasets that FaceBook or Google have to store - not Terabytes, but rather Petabytes.

Q21. What Is Advanced Replication Settings?

replication settings like modifying target table structures, specifying performance optimization settings that defines transformation rules.

Q22. When Should Be Sqlscript Used In Sap Hana ?

 It should be used in cases where other modeling constructs of HANA such as Attribute views or Analytic views are not sufficient.