WITH ABAP Presented by Dheeraj
WITH ABAP
Presented by Dheeraj
What is SAP-HANA?
SAP HANA is a modern in-memory database platform that is deployable as
1.An on-premise appliance 2.In the cloud.
AS on premise appliance SAP HANA combines software components from SAP optimized on proven hardware provided by SAP’s hardware partners.
SAP HARDWARE PLATFORMS
SAP HANA in Cloud is offered as a comprehensive infrastructure combined with managed services.
1.SAP HANA One2.SAP HANA Cloud Platform 3. SAP HANA Enterprise Cloud.
To get benefits of the high-speed in-memory execution of SAP HANA
OPEN SQLUnified data modeling and definition with
CORE DATA SERVICESABAP managed data base procedures.
SPS 05 for SAP NetWeaver 7.4 introduced the new syntax for Open SQL
which includes support for comma separated lists, enhanced string expressions, the definition of host variables in a more standard fashion, and fewer restrictions for joins
Data modeling is often first step in database design and oop as designers first create a conceptual model of how data items relate to each other
Involves a progression from coceptual model to logical model to physical schema.
Data modeling is a process used to define and analyze data requirements needed to support the business processes within the scope of corresponding information systems in organizations.
CDS is a data modeling infrastructure for defining and consuming semantic and reusable data models on the database, rather than on the ABAP server, regardless of the database system used.
CDS views are defined using the CDS editor in ABAP in Eclipse
Database procedures are programs that can be called up from an application program in the same way as an SQL statement.
A database procedure can contain several SQL statements and series of control structures. You can program loops or branches, for example, within a database procedure.
ABAP Managed Database Procedures are a new feature in AS ABAP allowing developers to write database procedures directly in ABAP first introduced with SAP NetWeaver AS ABAP 7.4.
Database Procedure as a function stored and executed in the database. The implementation language varies from one database system to another.
In SAP HANA it is SQL Script. Using AMDP allows developers to create and execute those database procedures in the ABAP environment using ABAP methods and ABAP data types.
AMDPs are wrapped into regular global ABAP classes.
In this example we have created a database procedure for SAP HANA (FOR HDB) using
SQLScript (LANGUAGE SQLSCRIPT) which simply selects the company name for our top business partners. The number of business partners to be selected is passed as an input parameter (iv_number) which is used in the SQL Script statement.