@AbapCatalog.sqlViewName: 'XV_Sales'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Performance test'
@VDM.viewType: #BASIC
define view XV_I_Sales as select from sales002 as t1 {
key t1.salesrep,
key t1.customer,
key t1.calyear,
key t1.calmonth2,
@DefaultAggregation: #SUM
t1.amount
}
@AbapCatalog.sqlViewName: 'XV_IT_SALESREP'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Salesrep'
@VDM: { viewType: #BASIC }
@ObjectModel: { dataCategory: #TEXT }
define view XVITSALESREP as select from salesrep {
@ObjectModel.text: {
element: [ 'text' ]
}
key salesrep,
@Semantics: {language: true }
key spras,
@Semantics: { text: true }
text
}
@AbapCatalog.sqlViewName: 'XV_IAT_SALESREP'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Time-Dependent Attributes'
@VDM: { viewType: #BASIC }
@Analytics.dataCategory: #DIMENSION
@ObjectModel.representativeKey: 'salesrep'
define view XvIatSalesrep as select from salesrepat
association[0..*] to XVITSALESREP on salesrepat.salesrep = XVITSALESREP.salesrep
{
@ObjectModel: {
text: {
association: 'XVITSALESREP'
}
}
key salesrep,
@Semantics.businessDate.to: true
key dateto,
@Semantics.businessDate.from: true
datefrom,
bonus,
XVITSALESREP
}
@AbapCatalog.sqlViewName: 'XV_C_Sales'
@AbapCatalog.compiler.compareFilter: true
@Analytics: {
dataCategory: #CUBE
}
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Performance test consumption'
@VDM.viewType: #COMPOSITE
define view XVCSales as select from XV_I_Sales
association[0..*] to XvIatSalesrep on XV_I_Sales.salesrep = XvIatSalesrep.salesrep
{
@ObjectModel: { foreignKey: {
association: 'XvIatSalesrep'
}}
key salesrep,
key customer,
key calyear,
key calmonth2,
@DefaultAggregation: #SUM
amount,
XvIatSalesrep
}
@AbapCatalog.sqlViewName: 'XV_Q_SalesA'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Performance test QUERY'
@VDM.viewType: #CONSUMPTION
@Analytics.query: true
define view XVQSALESA as select from XVCSales
{
@AnalyticsDetails.query.axis: #ROWS
@AnalyticsDetails.query.display: #KEY_TEXT
salesrep,
@AnalyticsDetails.query.axis: #ROWS
XVCSales.XvIatSalesrep.bonus,
@Consumption: { filter: {selectionType: #RANGE, multipleSelections: true, mandatory: false, hidden: false }}
@AnalyticsDetails.query.axis: #COLUMNS
calyear,
@AnalyticsDetails.query.axis: #COLUMNS
amount
}
/* Statement Preview (might be truncated) */
SELECT
A1~CALYEAR AS K____256
, A1~SALESREP AS K____281
, COUNT( * ) AS Z____151_SUM
, SUM( A1~AMOUNT ) AS Z____259_SUM
FROM
XVCSALES AS A1
WHERE
( ( ( (
A1~CALYEAR
BETWEEN '2016'
AND '2017'
) ) ) )
GROUP BY
A1~CALYEAR
,A1~SALESREP
ORDER BY
K____256
, K____281
%_HINTS 'NO_RESULT_CACHE'
SELECT SALESREP AS KEY_0001, TEXT AS TXTLG FROM XV_IT_SALESREP WHERE SPRAS = 'E' GROUP BY SALESREP, TEXT
SELECT SALESREP AS KEY_0001, BONUS AS ATR_0002 FROM XV_IAT_SALESREP WHERE DATEFROM <= '20170925' AND DATETO >= '20170925' GROUP BY SALESREP, BONUS
@AbapCatalog.sqlViewName: 'XV_Q_SalesA'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Performance test QUERY'
@VDM.viewType: #CONSUMPTION
@Analytics.query: true
define view XVQSALESA
with parameters
@Consumption.hidden: false
@Environment.systemField: #SYSTEM_DATE
@EndUserText.label: 'Key Date'
p_keydate: abap.dats
as select from XVCSales
{
@AnalyticsDetails.query.axis: #ROWS
salesrep,
@AnalyticsDetails.query.axis: #ROWS
XVCSales.XvIatSalesrep[1:datefrom >= $parameters.p_keydate and dateto <= $parameters.p_keydate].bonus,
@Consumption: { filter: {selectionType: #RANGE, multipleSelections: true, mandatory: false, hidden: false }}
@AnalyticsDetails.query.axis: #COLUMNS
calyear,
@AnalyticsDetails.query.axis: #COLUMNS
amount
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
10 | |
7 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 |