Sap Abap-6
Sap Abap-6
Inhaltsverzeichnis
INTRODUCTION..................................................................................................................... 1
ANALYTICAL CDS VIEWS .......................................................................................................... 1
ESSENTIAL TYPES OF ANALYTICAL VIEWS ....................................................................................... 1
FIRST ANALYTICAL CUBE VIEW ................................................................................................... 1
EXECUTE THE CDS VIEW ......................................................................................................... 4
OUTPUT .............................................................................................................................. 5
TEST ENVIRONMENT FOR ANALYTICAL VIEWS ............................................................................... 5
STEP 1 ................................................................................................................................ 5
STEP 2 ................................................................................................................................ 6
EXECUTE THE REPORT ............................................................................................................. 7
ENABLE STANDARD QUERY OPTION ............................................................................................ 7
VIEW ANALYTICAL QUERY IN FIORI QUERY DESIGNER .................................................................. 11
GO TO FIORI LAUNCHPAD ...................................................................................................... 11
SELECT THE VIEW BROWSER .................................................................................................... 12
PROVIDE CDS VIEW NAME ..................................................................................................... 12
EXECUTE THE FIORI QUERY ..................................................................................................... 13
Introduction
Modeling analytical applications using CDS (Core Data Services) views in SAP involves
creating CDS views that are optimized for analytics and then exposing these views for
consumption in tools like SAP Fiori, SAP Analytics Cloud, or third-party BI tools.
@AbapCatalog.sqlViewName: 'ZMAHI_SOIC01'
@AccessControl.authorizationCheck: #NOT_ALLOWED
@EndUserText.label: 'Sales Order item Cube view'
@Metadata.ignorePropagatedAnnotations: true
@Analytics.dataCategory: #CUBE
@OData.publish: true
@Analytics.dataExtraction.enabled: true
define view ZMAHI_SalesOrderItemCube01 as select from I_SalesOrderItem
{
@ObjectModel.readOnly: true
SalesOrder,
_SalesOrder,
SalesOrderItem,
SalesOrderItemCategory,
SalesOrderItemType,
CreatedByUser,
CreationDate,
CreationTime,
Division,
@ObjectModel.foreignKey.association: '_Material'
Material,
Product,
Batch,
MaterialGroup,
ProductGroup,
MaterialPricingGroup,
Plant,
StorageLocation,
DeliveryGroup,
PurchaseOrderByCustomer,
PurchaseOrderByShipToParty,
CustomerPurchaseOrderDate,
@ObjectModel.foreignKey.association: '_SalesOrganization'
_SalesOrder.SalesOrganization,
WBSElement,
WBSElementInternalID,
OrderID,
ContractAccount,
ReferenceSDDocument,
ReferenceSDDocumentItem,
ReferenceSDDocumentCategory,
DeliveryStatus,
_BusinessAreaText,
_CreatedByUser,
_CustomerAccountAssgmtGroup,
_CustomerGroup,
_CustomerPaymentTerms,
_CustomerPriceGroup,
_DeliveryPriority,
_DeliveryStatus,
_Division,
_ItemVolumeUnit,
_ItemWeightUnit,
_Material,
_MaterialGroup,
_MaterialPlant,
_MaterialPricingGroup,
_MaterialText,
_NetPriceQuantityUnit,
_PartialDeliveryItem,
_Partner,
_Plant,
_PrecedingProcFlowDocItem,
_PricingElement,
_Product,
_ProductGroup,
_ProductText,
_ProfitCenter,
_ReferenceSDDocument,
_ReferenceSDDocumentCategory,
_ReferenceSDDocumentItem,
_RequestedQuantityUnit,
_Route,
_SalesDeal,
_SalesDistrict,
_SalesDocumentRjcnReason,
_ScheduleLine,
_ShippingPoint,
_ShippingPointText,
_ShippingType,
_StorageLocation,
_SubsequentProcFlowDocItem,
_TargetQuantityUnit,
_TransactionCurrency,
_WBSElementBasicData,
_WBSElementBasicData_2
}
Output
Step 2
SQL View Name ZMAHI_SOIC01
In the above screenshot you can find “Standard Query” option which is sometimes not
visible.
in the selection screen parameter ‘Maintain table RSADMIN’ .Then execute the report
When we execute the report first time,the settings will be adjusted to “X” for the object
DFT_QUERY_CDS_SUPPORTED. I am executing this report second time so you will see
the output as ‘INSERT failed because a record already exists’.
Please go back to Transient Provider report for Operational Data Provider and again
execute
Go to Fiori Launchpad
Transaction Code :/UI2/FLP
Thank you.