Abap On Hana
Abap On Hana
Abap On Hana
------------------------------------------------------------------------------------------------------------------
Table of Contents
From CDS Views to Fiori Apps: Simplifying Integration in SAP Landscapes .....................1
CDS View ......................................................................................................................1
Output.............................................................................................................................................. 3
Create Service Definition .................................................................................................................. 4
Create Service Binding ..................................................................................................................... 5
Check Added Service in Tcode /IWFND/MAINT_SERVICE ................................................................. 6
Execute SAP Gateway Client............................................................................................................. 6
OData Link ....................................................................................................................................... 6
CDS View
For a detailed explanation of the following CDS view, please refer to my previous
post. I utilized multiple left outer joins in the CDS view to generate a more
comprehensive and meaningful report for our learners .Be sure to follow SAP’s best
practices to address performance issues. This example highlights the power of CDS
views and their seamless integration with
• S/4HANA Fiori,
• SAP Datasphere and
• SAP Analytics Cloud,
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Aggregate Sales and Production Data'
@Analytics: { dataCategory: #CUBE ,dataExtraction : { enabled : true } }
@OData.publish: true
define view entity ZI_AGG_SALES_PROD
as select from ZI_MULTI_COMPONENT_REPLICATE
{
key CompanyCode,
key Fiscalyear,
key Currency,
@Semantics.amount.currencyCode: 'Currency'
sum(OpenItemAmount) as TotalOpenAmount,
@Semantics.amount.currencyCode: 'Currency'
sum(SalesAmount) as TotalSalesAmount,
}
group by
CompanyCode,
Fiscalyear,
Currency
Output
Create Service Definition
Please create Service Definition by right clicking the CDS view and activate the service
definition.
Create Service Binding
By right-clicking the Service definition, please create service binding to expose into Fiori
App.
Check Added Service in Tcode /IWFND/MAINT_SERVICE
OData Link
Note:I have hidden https link for security purpose.
http://000.000.000.000:0000/sap/opu/odata/sap/ZSB_AGG_SALES_PROD/
Login to BTP
I have hidden https link for security purpose.
Click Next
Entity Selection
Project Attributes
Click Finish.
Application Information
Preview Application
This effort is not for commercial purposes; it is to give back to the community, as many people
supported your professional growth during the initial stages. This is a way to assist students
and learners in gaining the right context.
If you have any comments or queries, please send me a personal message. Avoid negative
comments and refrain from posting advertisements or promotional content. I am also learning
alongside you and may make mistakes. Please bear with me as I work to correct them. Due to
my commitments to learning German, working for my organization, and upskilling with
industry practices, my time is limited. If you are working on your own scenarios, please seek
support on SAP Community .