SAP ABAP On HANA Questions and Answers
SAP ABAP On HANA Questions and Answers
4Q: What is the difference between traditional ABAP and ABAP on HANA?
A: The main difference between traditional ABAP and ABAP on HANA is that ABAP on HANA uses the HANA
database technology to process data faster and more efficiently. This means that ABAP on HANA applications can
leverage the power of HANA to provide real-time data processing and analysis.
Learn more in detail
SAP ABAP on HANA Enrol on the course
SAP ABAP on HANA Training for Beginners
Interview Questions and Answers On Udemy.com
• Data Compression
SAP HANA uses a dictionary per column Operates directly on compressed data using integers.
It reduces the amount of memory required.
It speeds up operations on columns because the columns can be loaded into the CPU caches faster and with fewer
loading cycles.
Learn more in detail
SAP ABAP on HANA Enrol on the course
SAP ABAP on HANA Training for Beginners
Interview Questions and Answers On Udemy.com
7Q: What is the difference between a traditional database and SAP HANA?
A: The main difference between a traditional database and SAP HANA is that SAP HANA is an in-memory database
that stores data in columns rather than rows. This enables faster data processing and real-time analytics
capabilities.
15Q: What are the benefits of code push down in SAP ABAP HANA?
A: The benefits of code push down in SAP ABAP HANA include improved application performance, reduced
network traffic and memory usage, and improved scalability. By pushing processing down to the database layer,
the application can take advantage of the in-memory computing capabilities of the HANA database, resulting in
faster data access and processing.
• Access Control:
Also referred to as DCL Source (for Data Control Language, named after the DCL part of SQL).
Contains the definition of authorization rules that are automatically checked when a program accesses a certain
CDS View or CDS table function.
Display only in ABAP workbench.
Editing requires the use of the ABAP Development Tool (ADT in Eclipse).
23Q: Difference between ABAP dictionary view and ABAP CDS view?
A:
34Q: What makes AMDP class and ABAP method different from normal class and method?
A:
AMDP class
• Can contain both regular methods and AMDP methods.
• One or more AMDP methods can be present in AMDP class.
• Can only be created using ADT.
• class with AMDPs must implement interface IF_AMDP_MARKER_HDB
AMDP Methods
• AMDP methods can be defined in the public, protected, or private visibility section of the class.
• Although you can define AMDP methods as instance methods, they are always executed like static methods.
• All AMDP method parameters have to be passed by value, and must be of either table or scalar types. Pass by
reference is not permitted
• Exporting, importing and changing parameters are allowed. Returning parameters are not allowed
• AMDP Method is specified with addition BY DATABASE PROCEDURE in the method implementation part,
followed by the database system (for example, HDB) and the implementation language (for example,
SQLScript).
• For parameters of table types, the line types have to consist of elementary components, because nested
tables are not supported. ABAP Dictionary structure types are not allowed.
Learn more in detail
SAP ABAP on HANA Enrol on the course
SAP ABAP on HANA Training for Beginners
Interview Questions and Answers On Udemy.com
38Q: What is the difference between AMDP procedure and AMDP function?
A:
Learn more in detail
SAP ABAP on HANA Enrol on the course
SAP ABAP on HANA Training for Beginners
Interview Questions and Answers On Udemy.com
42Q: When to use ABAP SQL, CDS views, AMDP and ADBC?
A:
BAP SQL, CDS views, and AMDP (ABAP Managed Database Procedures) are all options for accessing and
manipulating data in SAP systems. The choice of which to use depends on various factors such as performance,
complexity, and data structure.
• ABAP SQL should be used when simple data retrieval or manipulation is required, and the underlying
database tables or views are well-structured. ABAP SQL can be used for basic SELECT, INSERT, UPDATE, and
DELETE statements, and it is suitable for simple queries that do not require complex data processing.
• CDS views should be used when a more complex view of data is required, and when the data needs to be
accessed from multiple sources. CDS views can be used to define complex joins, unions, and aggregations,
and they are optimized for performance. They are also suitable for creating reports and analytical
applications.
• AMDP should be used when complex data processing is required, and when the data manipulation cannot
be done efficiently using ABAP SQL or CDS views alone. AMDP allows developers to write database
procedures in ABAP that can be executed on the database server, rather than in the application server,
which can result in improved performance. AMDP is suitable for complex data transformations and
calculations that require significant processing power.
• ABAP Database Connectivity (ADBC) is used in SAP ABAP on HANA systems when a direct connection to
the database is required for data access and manipulation. ADBC is particularly useful when accessing and
manipulating large volumes of data or when executing complex SQL statements that cannot be easily
handled using ABAP Open SQL or CDS Views. It is useful when working with legacy database code that
cannot be easily migrated to modern data access technologies such as CDS views or AMDP.
Learn more in detail
SAP ABAP on HANA Enrol on the course
SAP ABAP on HANA Training for Beginners
Interview Questions and Answers On Udemy.com
47Q: What are types of CDS views in Virtual Data Model (VDM)?
A:
1. Basic Views: Basic Views are the simplest type of CDS view, which define a single database table or view. They
provide a simple way to access the data and can be used as a building block for more complex views.
2. Composite Views: Composite Views combine multiple Basic Views to create a more complex view of the data.
They can include joins, unions, or projections to combine the data from multiple tables or views. Composite views
can also be used to provide a simplified view of complex data structures.
Learn more in detail
SAP ABAP on HANA Enrol on the course
SAP ABAP on HANA Training for Beginners
Interview Questions and Answers On Udemy.com
3. Consumption Views: Consumption Views are used to provide a business-oriented view of the data, which is
optimized for reporting and analysis. They are built on top of Basic and Composite Views, and can include
calculated fields, filters, and aggregations to provide a summarized view of the data. Consumption Views can be
used to define key performance indicators (KPIs) and other metrics for business analysis.
These three types of CDS views can be organized into a layered architecture in the VDM to create a scalable and
flexible data model that meets the needs of the business.
49Q. Difference between SAP HANA Native SQL, Classic Open SQL and Enhanced Open SQL
A:
SAP HANA Native SQL Classic Open SQL Enhanced Open SQL
Element List Separator Comma (,) Blank () Comma (,)
Position of Element List Before FROM clause Before FROM clause Before or after FROM clause(key
word FIELDS)
Separator between table Period (.) Tilde (~) Tilde (~)
and field name
Schema handling Implicit default schema (user schema) Only default schema Only default schema
or schema name before table name
Client Handling No implicit client handling. Client Implicit client handling by DB interface. Implicit client handling by DB
needs to be specified Explicit client via addition CLIENT interface. Explicit client via addition
in WHERE-clause and join conditions. SPECIFIED. USING CLIENT.
Delimitate number of rows TOP ... UP TO ... ROWS UP TO ... ROWS
Access to CDS Views Only SQL view visible on database Only access to SQL view supported. Access to CDS view possible.
CORRESPONDING Not supported Supported Supported
FIELDS
FOR ALL ENTRIES Not supported Supported Supported
50Q: What conditions have to be fulfilled to perform an SAP HANA full-text search on column COL of database table
TAB. Which of the following?
A:
• Table TAB is located in column store.
• A full text index exists for column COL of table TAB.