SlideShare una empresa de Scribd logo
1 de 29
© Ctac - Better Business. Ctac Cloud
SITNL 2016
What a CDS-view can do for You
Practical use of CDS Views on ECC EHP7 on HANA -
tricks & tips
Ben Meijs
© Ctac - Better Business. Ctac Cloud 2
ABOUT ME
© Ctac - Better Business. Ctac Cloud 3
CDS Quick RECAP Use Case – BW Extract Unit Conversions Date defaults/ functions Use Case – Report Texts in one go
Tips Outlook
© Ctac - Better Business. Ctac Cloud 4
What is a CDS?
© Ctac - Better Business. Ctac Cloud 6
Core Data Services – it’s an ABAPPER thing!
• Just like defining an Database View in SE11, but with a lot more options:
• INNER and OUTER JOINS
• ASSOCIATIONS
• UNION
• Built-in functions
• Parameters
• Annotations => DB-viewname, client dependency, buffering. generating Odata-services and BOPF-artifacts
• How do you define a CDS View?
• In ECLIPSE!
• Using a Data Definition Language
• Generates a Database View
• You use a CDS-view
• With Open SQL
• In other CDS-view
© Ctac - Better Business. Ctac Cloud 7
Creating a CDS with a JOIN - example
© Ctac - Better Business. Ctac Cloud 8
CDS – options and Built-in functions
© Ctac - Better Business. Ctac Cloud 9
CDS – options and Built-in functions
© Ctac - Better Business. Ctac Cloud 10
Creating a CDS with a JOIN - example
© Ctac - Better Business. Ctac Cloud 11
CDS Quick RECAP Use Case – BW Extract Unit Conversions Date defaults/ functions Use Case – Report Texts in one go
Tips Outlook
© Ctac - Better Business. Ctac Cloud 12
Use Case – CDS view for BW extractor without using any ABAP
Question: is it possible to define a fast BW extractor in an ECC-on-HANA environment, without any ABAP-statement?
• Selection of sales orders, purchase orders, inbound and outbound deliveries within a timeframe of next 6 weeks;
• Quantities in base unit of measure (MARA-MEINS);
• Aggregate this data on Material Number, Plant, Week number;
• Make it as fast as possible;
Technical Challenges:
• Material Unit conversion (every quantity in base unit of measure MARA-MEINS);
• No system variables in CDS on WAS740;
• No calculations possible with date fields in CDS-context on WAS740;
Answer: Yes, it is possible. A weekly run including all the necessary steps on BW now only takes a few minutes
© Ctac - Better Business. Ctac Cloud 13
CDS Quick RECAP Use Case – BW Extract Unit Conversions Date defaults/ functions Use Case – Report Texts in one go
Tips Outlook
© Ctac - Better Business. Ctac Cloud 14
Trick 1 - Unit Conversion using CDS
Option 1 – Use the ABAP function for material unit conversions
Option 2 – Let BW do the unit conversions
Option 3 – Include Material Conversion Table MARM in the CDS
© Ctac - Better Business. Ctac Cloud 15
CDS Quick RECAP Use Case – BW Extract Unit Conversions Date defaults/ functions Use Case – Report Texts in one go
Tips Outlook
© Ctac - Better Business. Ctac Cloud 16
Trick 2 – Default Date and Date +/+ 42 days
Option 1 – Use of two view parameters for these two dates
Option 2 – Use HANA: M_TIME_DIMENSION via an External view
© Ctac - Better Business. Ctac Cloud 17
Trick 3 – Get week number for date
Option 1 – Use of ABAP calendar function to calculate week numbers
Option 2 – Use HANA: M_TIME_DIMENSION via an External view
© Ctac - Better Business. Ctac Cloud 18
Snapshot of resulting CDS
Main CDS (extraction)
CDS – Open Deliveries
SUM group by
MATNR/WERKS/WEEKNR
CDS – Open Deliveries
Details from VBBE
CDS – Time (Weeknumbers)
Weeknumber, based on VBBE-MBDAT
Stock
Shipments
Open Orders
© Ctac - Better Business. Ctac Cloud 19
CDS Quick RECAP Use Case – BW Extract Unit Conversions Date defaults/ functions Use Case – Report Texts in one go
Tips Outlook
© Ctac - Better Business. Ctac Cloud 20
Use Case – Just a simple ABAP Report
Question: Is it possible to read the first line of a ‘SAPscript’ text using a CDS-view?
• Selection of Sales order data with partners and status information
• The user wants the first line of a specific Sales order text in the output
Technical Challenges:
• How to get the first line of the text
• How to read a field of type LRAW (STXL-CLUSTD)
• Vague error messages
Solution
• Extra CDS-views needed in order to be able to read the first line of a text
• All primary key fields of all JOINED tables must be specified in the field list. Otherwise a DB-view is generated with all fields as
key field. LRAW-fields cannot be key fields!
• The text can be converted in the ABAP ALV report using a specific IMPORT statement that converts from RAW to Text format.
Answer: Yes, if the implicit View key is generated correctly.
© Ctac - Better Business. Ctac Cloud 21
CDS-view with first line of long text
© Ctac - Better Business. Ctac Cloud 22
ABAP - Converting the LRAW text to readable format
© Ctac - Better Business. Ctac Cloud 23
CDS Quick RECAP Use Case – BW Extract Unit Conversions Date defaults/ functions Use Case – Report Texts in one go
Tips Outlook
© Ctac - Better Business. Ctac Cloud 24
Tips
How and when to use CDS-views:
• CDS offers options to limit number of needed ABAP-statements (Code Pushdown)
• Limit use of WHERE-clause in CDS-views (reusability!);
• CDS has more options than Open SQL
• Important role of CDS in SAP Architecture
Be careful and precise when using JOINS:
• Are you sure that you should use an INNER JOIN?
• Are you sure that you should use an OUTER JOIN?
• Did you specify all relevant JOIN fields in the ON-clause?
• Don’t forget the DISTINCT option of the SELECT-statement
Technical tips:
• CDS not limited to HANA
• If not all key fields of joined tables are specified in field list, all fields are considered key field in the generated
VIEW
• External Views: synchronize and re-activate usage
© Ctac - Better Business. Ctac Cloud 25
CDS Quick RECAP Use Case – BW Extract Unit Conversions Date defaults/ functions Use Case – Report Texts in one go
Tips Outlook
© Ctac - Better Business. Ctac Cloud 26
Outlook – CDS as common data model in S/4HANA
© Ctac - Better Business. Ctac Cloud 27
Outlook – CDS as central model in future developments
© Ctac - Better Business. Ctac Cloud 28
© Ctac - Better Business. Ctac Cloud 29
Outlook – CDS as central model in future developments
© Ctac - Better Business. Ctac Cloud 30
© Ctac - Better Business. Ctac Cloud
Thank you

Más contenido relacionado

La actualidad más candente

SAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdfSAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdf
KoushikGuna
 
Fully Utilizing Spark for Data Validation
Fully Utilizing Spark for Data ValidationFully Utilizing Spark for Data Validation
Fully Utilizing Spark for Data Validation
Databricks
 
Enhancing data sources with badi in SAP ABAP
Enhancing data sources with badi in SAP ABAPEnhancing data sources with badi in SAP ABAP
Enhancing data sources with badi in SAP ABAP
Aabid Khan
 
Oracle Hyperion Planning Best Practices
Oracle Hyperion Planning Best PracticesOracle Hyperion Planning Best Practices
Oracle Hyperion Planning Best Practices
Issam Hejazin
 
Lo extraction part 3 extractor logic
Lo extraction   part 3 extractor logicLo extraction   part 3 extractor logic
Lo extraction part 3 extractor logic
JNTU University
 
SAP HANA Migration Deck.pptx
SAP HANA Migration Deck.pptxSAP HANA Migration Deck.pptx
SAP HANA Migration Deck.pptx
SingbBablu
 

La actualidad más candente (20)

SAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdfSAP BI Generic Extraction Using a Function Module.pdf
SAP BI Generic Extraction Using a Function Module.pdf
 
SAP S/4HANA - transition brochure
SAP S/4HANA - transition brochureSAP S/4HANA - transition brochure
SAP S/4HANA - transition brochure
 
SAP'S INTELLIGENT ENTERPRISE
SAP'S INTELLIGENT ENTERPRISESAP'S INTELLIGENT ENTERPRISE
SAP'S INTELLIGENT ENTERPRISE
 
Successful SAP Implementation Checklist
Successful SAP Implementation ChecklistSuccessful SAP Implementation Checklist
Successful SAP Implementation Checklist
 
What is HyperLogLog and Why You Will Love It | PostgreSQL Conference Europe 2...
What is HyperLogLog and Why You Will Love It | PostgreSQL Conference Europe 2...What is HyperLogLog and Why You Will Love It | PostgreSQL Conference Europe 2...
What is HyperLogLog and Why You Will Love It | PostgreSQL Conference Europe 2...
 
SAP Business One
SAP Business OneSAP Business One
SAP Business One
 
Fully Utilizing Spark for Data Validation
Fully Utilizing Spark for Data ValidationFully Utilizing Spark for Data Validation
Fully Utilizing Spark for Data Validation
 
MD04 Report in BW
MD04 Report in BWMD04 Report in BW
MD04 Report in BW
 
Modern Data Warehousing with the Microsoft Analytics Platform System
Modern Data Warehousing with the Microsoft Analytics Platform SystemModern Data Warehousing with the Microsoft Analytics Platform System
Modern Data Warehousing with the Microsoft Analytics Platform System
 
Sap bw4 hana architecture archetypes
Sap bw4 hana architecture archetypesSap bw4 hana architecture archetypes
Sap bw4 hana architecture archetypes
 
Enhancing data sources with badi in SAP ABAP
Enhancing data sources with badi in SAP ABAPEnhancing data sources with badi in SAP ABAP
Enhancing data sources with badi in SAP ABAP
 
BPD Design Template
BPD Design TemplateBPD Design Template
BPD Design Template
 
Repair process-in-sap-cs-customer-service--part-ii
Repair process-in-sap-cs-customer-service--part-iiRepair process-in-sap-cs-customer-service--part-ii
Repair process-in-sap-cs-customer-service--part-ii
 
Oracle Hyperion Planning Best Practices
Oracle Hyperion Planning Best PracticesOracle Hyperion Planning Best Practices
Oracle Hyperion Planning Best Practices
 
Lo extraction part 3 extractor logic
Lo extraction   part 3 extractor logicLo extraction   part 3 extractor logic
Lo extraction part 3 extractor logic
 
SAP BW to BW4HANA Migration
SAP BW to BW4HANA MigrationSAP BW to BW4HANA Migration
SAP BW to BW4HANA Migration
 
SAP BTP Enablement
SAP BTP EnablementSAP BTP Enablement
SAP BTP Enablement
 
Principal Propagation with SAP Cloud Platform
Principal Propagation with SAP Cloud PlatformPrincipal Propagation with SAP Cloud Platform
Principal Propagation with SAP Cloud Platform
 
SAP HANA for SAP Overview
SAP HANA for SAP OverviewSAP HANA for SAP Overview
SAP HANA for SAP Overview
 
SAP HANA Migration Deck.pptx
SAP HANA Migration Deck.pptxSAP HANA Migration Deck.pptx
SAP HANA Migration Deck.pptx
 

Destacado

SAP BW 4HANA IN A NUTSHELL
SAP BW 4HANA IN A NUTSHELLSAP BW 4HANA IN A NUTSHELL
SAP BW 4HANA IN A NUTSHELL
Arsalan Baig
 
B30 hanaってどうなの?sap hana概要 by 村田聡一郎
B30 hanaってどうなの?sap hana概要 by 村田聡一郎B30 hanaってどうなの?sap hana概要 by 村田聡一郎
B30 hanaってどうなの?sap hana概要 by 村田聡一郎
Insight Technology, Inc.
 
[D13] 次世代型インメモリデータベース SAP HANA その最新技術を理解する by Toshihisa Hanaki
[D13] 次世代型インメモリデータベース SAP HANA その最新技術を理解する by Toshihisa Hanaki[D13] 次世代型インメモリデータベース SAP HANA その最新技術を理解する by Toshihisa Hanaki
[D13] 次世代型インメモリデータベース SAP HANA その最新技術を理解する by Toshihisa Hanaki
Insight Technology, Inc.
 
[D14] 【詳解】インメモリーデータベース SAP HANA:実際の仕組みと動きを理解しよう!by Toshiro Morisaki
[D14] 【詳解】インメモリーデータベース SAP HANA:実際の仕組みと動きを理解しよう!by Toshiro Morisaki[D14] 【詳解】インメモリーデータベース SAP HANA:実際の仕組みと動きを理解しよう!by Toshiro Morisaki
[D14] 【詳解】インメモリーデータベース SAP HANA:実際の仕組みと動きを理解しよう!by Toshiro Morisaki
Insight Technology, Inc.
 

Destacado (17)

BW4/HANA implementation stories | sitNL 2016
BW4/HANA implementation stories | sitNL 2016BW4/HANA implementation stories | sitNL 2016
BW4/HANA implementation stories | sitNL 2016
 
SAP TechEd BI recap | sitNL 2016
SAP TechEd BI recap | sitNL 2016SAP TechEd BI recap | sitNL 2016
SAP TechEd BI recap | sitNL 2016
 
BW Migration to HANA Part 3 - Post-processing on the Migrated System
BW Migration to HANA Part 3 - Post-processing on the Migrated SystemBW Migration to HANA Part 3 - Post-processing on the Migrated System
BW Migration to HANA Part 3 - Post-processing on the Migrated System
 
SAP BW 4HANA IN A NUTSHELL
SAP BW 4HANA IN A NUTSHELLSAP BW 4HANA IN A NUTSHELL
SAP BW 4HANA IN A NUTSHELL
 
CDS Unit Testing
CDS Unit TestingCDS Unit Testing
CDS Unit Testing
 
BW Migration to HANA Part 2 - SUM DMO Tool for SAP Upgrade & Migration
BW Migration to HANA Part 2 - SUM DMO Tool for SAP Upgrade & MigrationBW Migration to HANA Part 2 - SUM DMO Tool for SAP Upgrade & Migration
BW Migration to HANA Part 2 - SUM DMO Tool for SAP Upgrade & Migration
 
LSA++ english version
LSA++ english versionLSA++ english version
LSA++ english version
 
SITIST 2016 Dev - What is new in SAP Analytics
SITIST 2016 Dev - What is new in SAP AnalyticsSITIST 2016 Dev - What is new in SAP Analytics
SITIST 2016 Dev - What is new in SAP Analytics
 
B30 hanaってどうなの?sap hana概要 by 村田聡一郎
B30 hanaってどうなの?sap hana概要 by 村田聡一郎B30 hanaってどうなの?sap hana概要 by 村田聡一郎
B30 hanaってどうなの?sap hana概要 by 村田聡一郎
 
The S/4 HANA Programing Paradigm
The S/4 HANA Programing ParadigmThe S/4 HANA Programing Paradigm
The S/4 HANA Programing Paradigm
 
Dev207 berlin
Dev207 berlinDev207 berlin
Dev207 berlin
 
あなたの知っているSAPは古いかもしれません
あなたの知っているSAPは古いかもしれませんあなたの知っているSAPは古いかもしれません
あなたの知っているSAPは古いかもしれません
 
[D13] 次世代型インメモリデータベース SAP HANA その最新技術を理解する by Toshihisa Hanaki
[D13] 次世代型インメモリデータベース SAP HANA その最新技術を理解する by Toshihisa Hanaki[D13] 次世代型インメモリデータベース SAP HANA その最新技術を理解する by Toshihisa Hanaki
[D13] 次世代型インメモリデータベース SAP HANA その最新技術を理解する by Toshihisa Hanaki
 
The Best SAP ABAP on HANA Online Training in USA, UK, Canada.
The Best SAP ABAP on HANA Online Training in USA, UK, Canada.The Best SAP ABAP on HANA Online Training in USA, UK, Canada.
The Best SAP ABAP on HANA Online Training in USA, UK, Canada.
 
SAP HANAは 単なるインメモリーデータベースじゃなくて (賢い)アプリの開発・実行プラットフォーム
SAP HANAは 単なるインメモリーデータベースじゃなくて (賢い)アプリの開発・実行プラットフォームSAP HANAは 単なるインメモリーデータベースじゃなくて (賢い)アプリの開発・実行プラットフォーム
SAP HANAは 単なるインメモリーデータベースじゃなくて (賢い)アプリの開発・実行プラットフォーム
 
[D14] 【詳解】インメモリーデータベース SAP HANA:実際の仕組みと動きを理解しよう!by Toshiro Morisaki
[D14] 【詳解】インメモリーデータベース SAP HANA:実際の仕組みと動きを理解しよう!by Toshiro Morisaki[D14] 【詳解】インメモリーデータベース SAP HANA:実際の仕組みと動きを理解しよう!by Toshiro Morisaki
[D14] 【詳解】インメモリーデータベース SAP HANA:実際の仕組みと動きを理解しよう!by Toshiro Morisaki
 
Whats New on SAP HANA SPS 11 Core Database Capabilities
Whats New on SAP HANA SPS 11 Core Database CapabilitiesWhats New on SAP HANA SPS 11 Core Database Capabilities
Whats New on SAP HANA SPS 11 Core Database Capabilities
 

Similar a What a CDS-view can do for you | sitNL 2016

VMworld 2013: Strategic Reasons for Classifying Workloads for Tier 1 Virtuali...
VMworld 2013: Strategic Reasons for Classifying Workloads for Tier 1 Virtuali...VMworld 2013: Strategic Reasons for Classifying Workloads for Tier 1 Virtuali...
VMworld 2013: Strategic Reasons for Classifying Workloads for Tier 1 Virtuali...
VMworld
 
Main_changes_in_SAP_S_4HANA_compared_to_SAP_ERP_1695885545.pdf
Main_changes_in_SAP_S_4HANA_compared_to_SAP_ERP_1695885545.pdfMain_changes_in_SAP_S_4HANA_compared_to_SAP_ERP_1695885545.pdf
Main_changes_in_SAP_S_4HANA_compared_to_SAP_ERP_1695885545.pdf
Shekhar Bhartiya
 
FINGRC2015_Enaganti_Arunachalam_Casestudyinsightsinto
FINGRC2015_Enaganti_Arunachalam_CasestudyinsightsintoFINGRC2015_Enaganti_Arunachalam_Casestudyinsightsinto
FINGRC2015_Enaganti_Arunachalam_Casestudyinsightsinto
Vish Arunachalam
 

Similar a What a CDS-view can do for you | sitNL 2016 (20)

VMworld 2013: Strategic Reasons for Classifying Workloads for Tier 1 Virtuali...
VMworld 2013: Strategic Reasons for Classifying Workloads for Tier 1 Virtuali...VMworld 2013: Strategic Reasons for Classifying Workloads for Tier 1 Virtuali...
VMworld 2013: Strategic Reasons for Classifying Workloads for Tier 1 Virtuali...
 
Storage Optimization and Operational Simplicity in SAP Adaptive Server Enter...
Storage Optimization and Operational Simplicity in SAP  Adaptive Server Enter...Storage Optimization and Operational Simplicity in SAP  Adaptive Server Enter...
Storage Optimization and Operational Simplicity in SAP Adaptive Server Enter...
 
Ctac S/4HANA Scenarios Explained
Ctac S/4HANA Scenarios ExplainedCtac S/4HANA Scenarios Explained
Ctac S/4HANA Scenarios Explained
 
BMC and Compuware: Partnering to Improve Mainframe Economics
BMC and Compuware: Partnering to Improve Mainframe EconomicsBMC and Compuware: Partnering to Improve Mainframe Economics
BMC and Compuware: Partnering to Improve Mainframe Economics
 
Top 5 performance and capacity challenges for z/OS
Top 5 performance and capacity challenges for z/OS Top 5 performance and capacity challenges for z/OS
Top 5 performance and capacity challenges for z/OS
 
Cloud dev ops costs prices sap hana ms
Cloud dev ops costs prices sap hana msCloud dev ops costs prices sap hana ms
Cloud dev ops costs prices sap hana ms
 
AMIS Oracle OpenWorld 2015 Review – part 3- PaaS Database, Integration, Ident...
AMIS Oracle OpenWorld 2015 Review – part 3- PaaS Database, Integration, Ident...AMIS Oracle OpenWorld 2015 Review – part 3- PaaS Database, Integration, Ident...
AMIS Oracle OpenWorld 2015 Review – part 3- PaaS Database, Integration, Ident...
 
SAPonAzureCaseStudyMay2020.pptx
SAPonAzureCaseStudyMay2020.pptxSAPonAzureCaseStudyMay2020.pptx
SAPonAzureCaseStudyMay2020.pptx
 
Ctac S/4HANA: Experienced Guide to Simple Migration
Ctac S/4HANA: Experienced Guide to Simple Migration Ctac S/4HANA: Experienced Guide to Simple Migration
Ctac S/4HANA: Experienced Guide to Simple Migration
 
Main_changes_in_SAP_S_4HANA_compared_to_SAP_ERP_1695885545.pdf
Main_changes_in_SAP_S_4HANA_compared_to_SAP_ERP_1695885545.pdfMain_changes_in_SAP_S_4HANA_compared_to_SAP_ERP_1695885545.pdf
Main_changes_in_SAP_S_4HANA_compared_to_SAP_ERP_1695885545.pdf
 
Building and Deploying Large Scale SSRS using Lessons Learned from Customer D...
Building and Deploying Large Scale SSRS using Lessons Learned from Customer D...Building and Deploying Large Scale SSRS using Lessons Learned from Customer D...
Building and Deploying Large Scale SSRS using Lessons Learned from Customer D...
 
An overview of reference architectures for Postgres
An overview of reference architectures for PostgresAn overview of reference architectures for Postgres
An overview of reference architectures for Postgres
 
SAP BPC and RTC(Real Time Consolidation.pptx
SAP BPC and RTC(Real Time Consolidation.pptxSAP BPC and RTC(Real Time Consolidation.pptx
SAP BPC and RTC(Real Time Consolidation.pptx
 
Sap bpc optimized for s4 hana real time consolidation
Sap bpc optimized for s4 hana   real time consolidationSap bpc optimized for s4 hana   real time consolidation
Sap bpc optimized for s4 hana real time consolidation
 
Performance tuning - A key to successful cassandra migration
Performance tuning - A key to successful cassandra migrationPerformance tuning - A key to successful cassandra migration
Performance tuning - A key to successful cassandra migration
 
Optimizing your cloud
Optimizing your cloudOptimizing your cloud
Optimizing your cloud
 
Automatic Performance Modelling from Application Performance Management (APM)...
Automatic Performance Modelling from Application Performance Management (APM)...Automatic Performance Modelling from Application Performance Management (APM)...
Automatic Performance Modelling from Application Performance Management (APM)...
 
SAP on Azure. Use Cases and Benefits
SAP on Azure. Use Cases and BenefitsSAP on Azure. Use Cases and Benefits
SAP on Azure. Use Cases and Benefits
 
VoltDB and Flytxt Present: Building a Single Technology Platform for Real-Tim...
VoltDB and Flytxt Present: Building a Single Technology Platform for Real-Tim...VoltDB and Flytxt Present: Building a Single Technology Platform for Real-Tim...
VoltDB and Flytxt Present: Building a Single Technology Platform for Real-Tim...
 
FINGRC2015_Enaganti_Arunachalam_Casestudyinsightsinto
FINGRC2015_Enaganti_Arunachalam_CasestudyinsightsintoFINGRC2015_Enaganti_Arunachalam_Casestudyinsightsinto
FINGRC2015_Enaganti_Arunachalam_Casestudyinsightsinto
 

Más de Twan van den Broek

Más de Twan van den Broek (20)

How SAP Leonardo is empowering animal wellbeing (Leon / Harmen)
How SAP Leonardo is empowering animal wellbeing (Leon / Harmen)How SAP Leonardo is empowering animal wellbeing (Leon / Harmen)
How SAP Leonardo is empowering animal wellbeing (Leon / Harmen)
 
Can you keep up with SAP Analytics Cloud? (Martijn van Foeken)
Can you keep up with SAP Analytics Cloud? (Martijn van Foeken)Can you keep up with SAP Analytics Cloud? (Martijn van Foeken)
Can you keep up with SAP Analytics Cloud? (Martijn van Foeken)
 
SAP Data Hub – What is it, and what’s new? (Sefan Linders)
SAP Data Hub – What is it, and what’s new? (Sefan Linders)SAP Data Hub – What is it, and what’s new? (Sefan Linders)
SAP Data Hub – What is it, and what’s new? (Sefan Linders)
 
SAP HANA SQL Data Warehousing (Sefan Linders)
SAP HANA SQL Data Warehousing (Sefan Linders)SAP HANA SQL Data Warehousing (Sefan Linders)
SAP HANA SQL Data Warehousing (Sefan Linders)
 
SAP analytics as enabler for the intelligent enterprise (Iver van de Zand)
SAP analytics as enabler for the intelligent enterprise (Iver van de Zand)SAP analytics as enabler for the intelligent enterprise (Iver van de Zand)
SAP analytics as enabler for the intelligent enterprise (Iver van de Zand)
 
Beyond OData introducing the xmla model for ui5 (Roland Bouwman)
Beyond OData introducing the xmla model for ui5 (Roland Bouwman)Beyond OData introducing the xmla model for ui5 (Roland Bouwman)
Beyond OData introducing the xmla model for ui5 (Roland Bouwman)
 
Integrating SAPUI5 with ArcGIS Maps (Leon van Ginneken)
Integrating SAPUI5 with ArcGIS Maps (Leon van Ginneken)Integrating SAPUI5 with ArcGIS Maps (Leon van Ginneken)
Integrating SAPUI5 with ArcGIS Maps (Leon van Ginneken)
 
SQL Data Warehousing in SAP HANA (Sefan Linders)
SQL Data Warehousing in SAP HANA (Sefan Linders)SQL Data Warehousing in SAP HANA (Sefan Linders)
SQL Data Warehousing in SAP HANA (Sefan Linders)
 
SAP Predictive Analytics (Nico van der Hoeven)
SAP Predictive Analytics (Nico van der Hoeven)SAP Predictive Analytics (Nico van der Hoeven)
SAP Predictive Analytics (Nico van der Hoeven)
 
Blockchain for the Enterprise
Blockchain for the EnterpriseBlockchain for the Enterprise
Blockchain for the Enterprise
 
DIR - A tribute to Standards and Guidelines... (Laurens van Rijn)
DIR - A tribute to Standards and Guidelines...  (Laurens van Rijn)DIR - A tribute to Standards and Guidelines...  (Laurens van Rijn)
DIR - A tribute to Standards and Guidelines... (Laurens van Rijn)
 
Building an innovation culture - Powered by diversity
Building an innovation culture - Powered by diversityBuilding an innovation culture - Powered by diversity
Building an innovation culture - Powered by diversity
 
SAP Leonardo / Machine Learning (Iver van de Zand)
SAP Leonardo / Machine Learning (Iver van de Zand)SAP Leonardo / Machine Learning (Iver van de Zand)
SAP Leonardo / Machine Learning (Iver van de Zand)
 
SAP TechEd recap (Ronald Konijnenburg / Sven van Leuken)
SAP TechEd recap (Ronald Konijnenburg / Sven van Leuken)SAP TechEd recap (Ronald Konijnenburg / Sven van Leuken)
SAP TechEd recap (Ronald Konijnenburg / Sven van Leuken)
 
The importance of applying SAP patches (Joris van de Vis)
The importance of applying SAP patches (Joris van de Vis)The importance of applying SAP patches (Joris van de Vis)
The importance of applying SAP patches (Joris van de Vis)
 
Masterclass Mendix (Jan Penninkhof / Twan van den Broek)
Masterclass Mendix (Jan Penninkhof / Twan van den Broek)Masterclass Mendix (Jan Penninkhof / Twan van den Broek)
Masterclass Mendix (Jan Penninkhof / Twan van den Broek)
 
Masterclass Machine Learning (Ronald Kleijn)
Masterclass Machine Learning (Ronald Kleijn)Masterclass Machine Learning (Ronald Kleijn)
Masterclass Machine Learning (Ronald Kleijn)
 
SAP Run Live Truck - SAP Cloud Platform use cases
SAP Run Live Truck - SAP Cloud Platform use casesSAP Run Live Truck - SAP Cloud Platform use cases
SAP Run Live Truck - SAP Cloud Platform use cases
 
Recap SAP Inside Track NL (sitNL)
Recap SAP Inside Track NL (sitNL)Recap SAP Inside Track NL (sitNL)
Recap SAP Inside Track NL (sitNL)
 
Welcome at SAP Inside Track NL (sitNL)
Welcome at SAP Inside Track NL (sitNL)Welcome at SAP Inside Track NL (sitNL)
Welcome at SAP Inside Track NL (sitNL)
 

Último

Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
dlhescort
 
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
dlhescort
 
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
lizamodels9
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
Matteo Carbone
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
amitlee9823
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
amitlee9823
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
daisycvs
 

Último (20)

Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
 
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdfDr. Admir Softic_ presentation_Green Club_ENG.pdf
Dr. Admir Softic_ presentation_Green Club_ENG.pdf
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communications
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 May
 
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
Falcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to ProsperityFalcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to Prosperity
 
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
 
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture concept
 
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLBAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
 
Monthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxMonthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptx
 

What a CDS-view can do for you | sitNL 2016

  • 1. © Ctac - Better Business. Ctac Cloud SITNL 2016 What a CDS-view can do for You Practical use of CDS Views on ECC EHP7 on HANA - tricks & tips Ben Meijs
  • 2. © Ctac - Better Business. Ctac Cloud 2 ABOUT ME
  • 3. © Ctac - Better Business. Ctac Cloud 3 CDS Quick RECAP Use Case – BW Extract Unit Conversions Date defaults/ functions Use Case – Report Texts in one go Tips Outlook
  • 4. © Ctac - Better Business. Ctac Cloud 4 What is a CDS?
  • 5. © Ctac - Better Business. Ctac Cloud 6 Core Data Services – it’s an ABAPPER thing! • Just like defining an Database View in SE11, but with a lot more options: • INNER and OUTER JOINS • ASSOCIATIONS • UNION • Built-in functions • Parameters • Annotations => DB-viewname, client dependency, buffering. generating Odata-services and BOPF-artifacts • How do you define a CDS View? • In ECLIPSE! • Using a Data Definition Language • Generates a Database View • You use a CDS-view • With Open SQL • In other CDS-view
  • 6. © Ctac - Better Business. Ctac Cloud 7 Creating a CDS with a JOIN - example
  • 7. © Ctac - Better Business. Ctac Cloud 8 CDS – options and Built-in functions
  • 8. © Ctac - Better Business. Ctac Cloud 9 CDS – options and Built-in functions
  • 9. © Ctac - Better Business. Ctac Cloud 10 Creating a CDS with a JOIN - example
  • 10. © Ctac - Better Business. Ctac Cloud 11 CDS Quick RECAP Use Case – BW Extract Unit Conversions Date defaults/ functions Use Case – Report Texts in one go Tips Outlook
  • 11. © Ctac - Better Business. Ctac Cloud 12 Use Case – CDS view for BW extractor without using any ABAP Question: is it possible to define a fast BW extractor in an ECC-on-HANA environment, without any ABAP-statement? • Selection of sales orders, purchase orders, inbound and outbound deliveries within a timeframe of next 6 weeks; • Quantities in base unit of measure (MARA-MEINS); • Aggregate this data on Material Number, Plant, Week number; • Make it as fast as possible; Technical Challenges: • Material Unit conversion (every quantity in base unit of measure MARA-MEINS); • No system variables in CDS on WAS740; • No calculations possible with date fields in CDS-context on WAS740; Answer: Yes, it is possible. A weekly run including all the necessary steps on BW now only takes a few minutes
  • 12. © Ctac - Better Business. Ctac Cloud 13 CDS Quick RECAP Use Case – BW Extract Unit Conversions Date defaults/ functions Use Case – Report Texts in one go Tips Outlook
  • 13. © Ctac - Better Business. Ctac Cloud 14 Trick 1 - Unit Conversion using CDS Option 1 – Use the ABAP function for material unit conversions Option 2 – Let BW do the unit conversions Option 3 – Include Material Conversion Table MARM in the CDS
  • 14. © Ctac - Better Business. Ctac Cloud 15 CDS Quick RECAP Use Case – BW Extract Unit Conversions Date defaults/ functions Use Case – Report Texts in one go Tips Outlook
  • 15. © Ctac - Better Business. Ctac Cloud 16 Trick 2 – Default Date and Date +/+ 42 days Option 1 – Use of two view parameters for these two dates Option 2 – Use HANA: M_TIME_DIMENSION via an External view
  • 16. © Ctac - Better Business. Ctac Cloud 17 Trick 3 – Get week number for date Option 1 – Use of ABAP calendar function to calculate week numbers Option 2 – Use HANA: M_TIME_DIMENSION via an External view
  • 17. © Ctac - Better Business. Ctac Cloud 18 Snapshot of resulting CDS Main CDS (extraction) CDS – Open Deliveries SUM group by MATNR/WERKS/WEEKNR CDS – Open Deliveries Details from VBBE CDS – Time (Weeknumbers) Weeknumber, based on VBBE-MBDAT Stock Shipments Open Orders
  • 18. © Ctac - Better Business. Ctac Cloud 19 CDS Quick RECAP Use Case – BW Extract Unit Conversions Date defaults/ functions Use Case – Report Texts in one go Tips Outlook
  • 19. © Ctac - Better Business. Ctac Cloud 20 Use Case – Just a simple ABAP Report Question: Is it possible to read the first line of a ‘SAPscript’ text using a CDS-view? • Selection of Sales order data with partners and status information • The user wants the first line of a specific Sales order text in the output Technical Challenges: • How to get the first line of the text • How to read a field of type LRAW (STXL-CLUSTD) • Vague error messages Solution • Extra CDS-views needed in order to be able to read the first line of a text • All primary key fields of all JOINED tables must be specified in the field list. Otherwise a DB-view is generated with all fields as key field. LRAW-fields cannot be key fields! • The text can be converted in the ABAP ALV report using a specific IMPORT statement that converts from RAW to Text format. Answer: Yes, if the implicit View key is generated correctly.
  • 20. © Ctac - Better Business. Ctac Cloud 21 CDS-view with first line of long text
  • 21. © Ctac - Better Business. Ctac Cloud 22 ABAP - Converting the LRAW text to readable format
  • 22. © Ctac - Better Business. Ctac Cloud 23 CDS Quick RECAP Use Case – BW Extract Unit Conversions Date defaults/ functions Use Case – Report Texts in one go Tips Outlook
  • 23. © Ctac - Better Business. Ctac Cloud 24 Tips How and when to use CDS-views: • CDS offers options to limit number of needed ABAP-statements (Code Pushdown) • Limit use of WHERE-clause in CDS-views (reusability!); • CDS has more options than Open SQL • Important role of CDS in SAP Architecture Be careful and precise when using JOINS: • Are you sure that you should use an INNER JOIN? • Are you sure that you should use an OUTER JOIN? • Did you specify all relevant JOIN fields in the ON-clause? • Don’t forget the DISTINCT option of the SELECT-statement Technical tips: • CDS not limited to HANA • If not all key fields of joined tables are specified in field list, all fields are considered key field in the generated VIEW • External Views: synchronize and re-activate usage
  • 24. © Ctac - Better Business. Ctac Cloud 25 CDS Quick RECAP Use Case – BW Extract Unit Conversions Date defaults/ functions Use Case – Report Texts in one go Tips Outlook
  • 25. © Ctac - Better Business. Ctac Cloud 26 Outlook – CDS as common data model in S/4HANA
  • 26. © Ctac - Better Business. Ctac Cloud 27 Outlook – CDS as central model in future developments
  • 27. © Ctac - Better Business. Ctac Cloud 28
  • 28. © Ctac - Better Business. Ctac Cloud 29 Outlook – CDS as central model in future developments
  • 29. © Ctac - Better Business. Ctac Cloud 30 © Ctac - Better Business. Ctac Cloud Thank you

Notas del editor

  1. CDS in ABAP context van een 740 system on HANA. Use Cases om gebruik te schetsen. We gaan het verder niet hebben over hoe dat wordt ingericht Deze presentatie gaat niet over waarom je CDS zou moeten gebruiken ipv Open SQL of SQL Script
  2. CDS is not restricted to HANA
  3. CDS in ABAP context van een 740 system on HANA. Use Cases om gebruik te schetsen. We gaan het verder niet hebben over hoe dat wordt ingericht Deze presentatie gaat niet over waarom je CDS zou moeten gebruiken ipv Open SQL of SQL Script
  4. CDS in ABAP context van een 740 system on HANA. Use Cases om gebruik te schetsen. We gaan het verder niet hebben over hoe dat wordt ingericht Deze presentatie gaat niet over waarom je CDS zou moeten gebruiken ipv Open SQL of SQL Script
  5. Use function DIVISION DEMO DDL : Z_SITNL_MATERIAL_UNIT_CONV, Z_SITNL_EXAMPLE_MATCONV View: ZV_SITNL_UOM
  6. CDS in ABAP context van een 740 system on HANA. Use Cases om gebruik te schetsen. We gaan het verder niet hebben over hoe dat wordt ingericht Deze presentatie gaat niet over waarom je CDS zou moeten gebruiken ipv Open SQL of SQL Script
  7. Rekenen met datumvelden kan niet in CDS. In 750 zijn er datumfuncties, View ZV_SITNL_CURDAT DDL Z_Sitnl_Example_Dateselection Demo geven van external view! ZVE_DATE_TO
  8. View ZVE_TIME -> F8 en SE16N demo
  9. CDS in ABAP context van een 740 system on HANA. Use Cases om gebruik te schetsen. We gaan het verder niet hebben over hoe dat wordt ingericht Deze presentatie gaat niet over waarom je CDS zou moeten gebruiken ipv Open SQL of SQL Script
  10. Voorbeeld CDS views
  11. Voorbeeldprogramma zsitnl_cds_lraw
  12. CDS in ABAP context van een 740 system on HANA. Use Cases om gebruik te schetsen. We gaan het verder niet hebben over hoe dat wordt ingericht Deze presentatie gaat niet over waarom je CDS zou moeten gebruiken ipv Open SQL of SQL Script
  13. CDS in ABAP context van een 740 system on HANA. Use Cases om gebruik te schetsen. We gaan het verder niet hebben over hoe dat wordt ingericht Deze presentatie gaat niet over waarom je CDS zou moeten gebruiken ipv Open SQL of SQL Script