Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

ABAP on HANA - Wir beleuchten das code to data Paradigma

234 Aufrufe

Veröffentlicht am

Inhalt:
ABAP spielt auch in BW Systemen mit HANA eine große Rolle. Mit HANA verändert hat sich die Vorgehensweise in der Entwicklung: Die Logik wird zu den Daten gebracht mit dem sog. code to data Paradigma. Wir stellen dieses Konzept von ABAP CDS Views und er ABAP Managed Database Procedures vor und bewerten die Einsatzmöglchkeiten aus Sicht von BW Datenmodellen.

Dieses Webinar eignet sich für:
- Entwickler, die auf ABAP spezialisiert sind und ihr Wissen vertiefen möchten.
- Spezialisten, die wissen möchten, was sich hinter dem code to data Paradigma verbirgt.

In diesem Webinar lernen Sie:
- Was das code to data Paradigma ist.
- Wie ABAP durch HANA beeinflusst wird.

Agenda:
1. Code Push Down
2. Core Data Services
3. ABAP-Managed Database Process

Veröffentlicht in: Technologie
  • Als Erste(r) kommentieren

  • Gehören Sie zu den Ersten, denen das gefällt!

ABAP on HANA - Wir beleuchten das code to data Paradigma

  1. 1. Digital Trailblazer 2017 B.Braun, Aesculap and IBsolution ABAP on HANA Wir beleuchten das code to data Paradigma 31.07.2018
  2. 2. Agenda Digital Trailblazer 2017 B.Braun, Aesculap and IBsolution 1. Code Push Down 2. Core Data Services 3. ABAP-Managed Database Process
  3. 3. Agenda Digital Trailblazer 2017 B.Braun, Aesculap and IBsolution 1. Code Push Down 2. Core Data Services 3. ABAP-Managed Database Process
  4. 4. Code PushDown 31.07.2018 © 2018 - IBsolution GmbH 4
  5. 5. Code PushDown 31.07.2018 © 2018 - IBsolution GmbH 5 Scenario - Activation of a DataStore object
  6. 6. Code PushDown 31.07.2018 © 2018 - IBsolution GmbH 6 Reporting Performance Impact
  7. 7. Agenda Digital Trailblazer 2017 B.Braun, Aesculap and IBsolution 1. Code Push Down 2. Core Data Services 3. ABAP-Managed Database Process
  8. 8. Core Data Services 31.07.2018 © 2018 - IBsolution GmbH 8  Paradigm Changes in Application Programming
  9. 9. Core Data Services 31.07.2018 © 2018 - IBsolution GmbH 9  Unified Data Model Across All Application Domains
  10. 10. Core Data Services 31.07.2018 © 2018 - IBsolution GmbH 10  CDS Views in ABAP
  11. 11. Core Data Services – Sequence of Generation 31.07.2018 © 2018 - IBsolution GmbH 11  CDS is source based  Tools: ABAP Development Tools (eclipse based)  Textual CDS source code editor  Graphical CDS modelling view  Dependency Analyzer  Annotation viewer  During activation of a DDL source:  1. Corresponding DDIC view gets generated  2. The view gets deployed to the database
  12. 12. Core Data Services - CDS Table Functions 31.07.2018 © 2018 - IBsolution GmbH 12
  13. 13. CDS – Use Case 31.07.2018 © 2018 - IBsolution GmbH 13 CDS - Union all – Alternate to HANA View Union RESULT VIEW
  14. 14. CDS – Use Case 31.07.2018 © 2018 - IBsolution GmbH 14 CDS – Join – Alternate to HANA View Joins
  15. 15. Core Data Services - CDS Table Functions Implemented via AMDP 31.07.2018 © 2018 - IBsolution GmbH 15
  16. 16. Agenda Digital Trailblazer 2017 B.Braun, Aesculap and IBsolution 1. Code Push Down 2. Core Data Services 3. ABAP-Managed Database Process
  17. 17. AMDP – Transformation Processing 31.07.2018 © 2018 - IBsolution GmbH 17
  18. 18. AMDP – what it looks like? 31.07.2018 © 2018 - IBsolution GmbH 18 1. INTERFACES IF_AMDP_MARKER_HDB PUBLIC SECTION. 2. TYPE TABLE OF statements  Not allowed. i. Use: DDIC table type OR TYPES statement ii. IMPORTING and EXPORTING variables  PASS BY VALUE! iii. No Pass-By Reference to another system. 3. Table Declaration – Prior to Method declaration.
  19. 19. AMDP – what it looks like? 31.07.2018 © 2018 - IBsolution GmbH 19 4. Database and the language 5. Specify Table Names. 6. SQL Scripts – Statement Termination with “;” and not “.”
  20. 20. AMDP – in BW Transformation 31.07.2018 © 2018 - IBsolution GmbH 20 Scenario: Removing invalid characters in HANA based BW transformation Normal ABAP Code AMDP Code
  21. 21. AMDP – in BW Transformation 31.07.2018 © 2018 - IBsolution GmbH 21 Scenario: Removing invalid characters in HANA based BW transformation AMDP Code Field routine  Method PROCEDURE with Entire String Replacement Field routine  Method PROCEDURE with 1st Character Replacement AMDP – BW Transformation - Output
  22. 22. Decision Making 31.07.2018 © 2018 - IBsolution GmbH 22
  23. 23. Agenda Digital Trailblazer 2017 B.Braun, Aesculap and IBsolution Additional Info
  24. 24. Code Push-Down 31.07.2018 © 2018 - IBsolution GmbH 24 Pros and Cons  PROS  Core of SAP HANA-optimized processes.  Concept: Efficient use of resources to execute these data-intensive tasks on the database directly without an expensive data transfer. This concept is referred to as Code Push-Down  Along with in-memory technology, SAP HANA can also map application logic.  Application Layer will stay.  In addition to a hardware improvement there is also software optimization.  Application logic is replaced by new programs that can run directly on the database.  Benefits observed while processing large volumes of data.  CONS  Problem with processing on Application Layer:  Read operation on Application layer are time consuming.  Large volumes of results are transferred to the application layer.  Due to the above, a lot of resources are consumed and the response times are unsatisfactory.
  25. 25. Code PushDown 31.07.2018 © 2018 - IBsolution GmbH 26  Important areas with improved performance, due to Code Pushdown:  Activation of DSOs (classic), SID generation  InfoCubes: compression, marker update  Remodeling of BW objects  Processing of transformation rules  Processing of OLAP calculations  Processing of planning functions
  26. 26. Core Data Services – Built-in Functions 31.07.2018 © 2018 - IBsolution GmbH 27  String functions:  CONCAT(arg1, arg2)  LPAD(arg, len, src)  REPLACE(arg1, arg2, arg3)  SUBSTRING(arg, pos, len)  Numeric functions: • ABS(arg), CEIL(arg), FLOOR(arg), • DIV(arg1, arg2), DIVISION(arg1, arg2, dec), • MOD(arg1, arg2), ROUND(arg, pos)  Conversion functions  CURRENCY_CONVERSION( p1 => a1, … )  UNIT_CONVERSION( p1 => a1, ... )  DECIMAL_SHIFT( p1 => a1, ... )  Date functions  DATS_DAYS_BETWEEN  DATS_ADD_DAYS  DATS_ADD_MONTH
  27. 27. Core Data Services - Table Functions 31.07.2018 © 2018 - IBsolution GmbH 28  CDS Table Functions allow to use natively implemented database-functions in SAP HANA DB directly from CDS  CDS is an open extension of classical DDIC views:  Support for AnyDB  Optimal integration into DDIC and ABAP  Supports about 90 % of SQL features  But: no access to specific HANA features  Required: Some scenarios require selective measure (“Breakout Scenario” for HANA -only applications)  Highest performance requirements e.g. with complex calculations  Use of database / analytical engine specific functions required  Open SQL and CDS views do not yet offer functionality to solve the problem
  28. 28. Weitere Informationen finden Sie auf academy.ibsolution.de Unser Service für Sie: Ab morgen finden Sie dieses Webinar und die zugehörigen Folien unter: academy.ibsolution.de Nächstes Webinar: 25. September 2018: Warum SAP GRC Access Control 12.0? Warum nicht auch Ihren Kollegen zeigen? Anmeldung auf academy.ibsolution.de 31.07.2018 © 2018 - IBsolution GmbH 29

×