@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL
@EndUserText.label : 'Sales Order by Month'
@VDM.viewType: #CONSUMPTION
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@AbapCatalog.sqlViewName : 'CSDSLSORDBYMNTH'
define view C_SalesOrderByMonth
with parameters
@Consumption.defaultValue : 'M'
P_ExchangeRateType: kurst,
P_DisplayCurrency: vdm_v_display_currency
as select from I_SalesOrderByMonthCube(
P_Date: $session.system_date,
P_NumberOfMonths: 4,
P_ExchangeRateType: $parameters .P_ExchangeRateType,
P_DisplayCurrency: $parameters .P_DisplayCurrency
)
left outer join I_Customer
on I_Customer.Customer = I_SalesOrderByMonthCube.SoldToParty
{
key SalesOrder,
// YearMonth,
// The cast is used to fix the UI hover label issue
@Consumption.labelElement : 'CalendarMonthName'
key cast ( YearMonth as ovp_year_month ) as YearMonth,
SalesOrderType,
@ObjectModel.foreignKey.association : '_CalendarMonth'
CalendarMonth,
_CalendarMonth,
@Semantics.text: true
_CalendarMonth._Text[1: Language=$session.system_language].CalendarMonthName,
@ObjectModel.foreignKey.association : '_SoldToParty'
// @Consumption.valueHelpDefinition: [ { entity : { name: 'I_Customer_VH', element: 'Customer' } } ]
@Consumption.valueHelpDefinition: [ { entity : { name: 'D_CustomerCVH', element: 'Customer' } } ]
SoldToParty,
_SoldToParty,
@UI.hidden: true
AuthorizationGroup,
@ObjectModel.foreignKey.association : '_SalesOrganization'
SalesOrganization,
_SalesOrganization,
@ObjectModel.foreignKey.association : '_DistributionChannel'
DistributionChannel,
_DistributionChannel,
@ObjectModel.foreignKey.association : '_OrganizationDivision'
OrganizationDivision,
_OrganizationDivision,
@ObjectModel.foreignKey.association : '_SalesOffice'
SalesOffice,
_SalesOffice,
@ObjectModel.foreignKey.association : '_SalesGroup'
SalesGroup,
_SalesGroup,
@Semantics.currencyCode: true
DisplayCurrency,
@DefaultAggregation: #SUM
@Semantics.amount.currencyCode : 'DisplayCurrency'
@EndUserText.label : 'Net Value of Current Year'
IncomingSalesOrdersNetAmtInDC,
@DefaultAggregation: #SUM
@Semantics.amount.currencyCode : 'DisplayCurrency'
@EndUserText.label : 'Net Value of Previous Year'
ComprnIncgSlsOrdersNetAmtInDC,
@DefaultAggregation: #SUM
@EndUserText.label : 'Number of Current Year'
NumberOfSalesOrders,
@DefaultAggregation: #SUM
@EndUserText.label : 'Number of Previous Year'
ComparisonNumberOfSalesOrders
}
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_CALENDARMONTH",
"I_CALENDARMONTHTEXT",
"I_CUSTOMER",
"I_SALESORDERBYMONTHCUBE"
],
"ASSOCIATED":
[
"I_CALENDARMONTH",
"I_CUSTOMER",
"I_DISTRIBUTIONCHANNEL",
"I_DIVISION",
"I_SALESGROUP",
"I_SALESOFFICE",
"I_SALESORGANIZATION"
],
"BASE":
[
"I_SALESORDERBYMONTHCUBE"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload