I_SolnOrderProfitabilityCube

DDL: I_SOLNORDERPROFITABILITYCUBE SQL: ISOLNORDERPROF Type: view COMPOSITE

Solution Business Profitability - Cube

I_SolnOrderProfitabilityCube is a Composite CDS View (Cube) that provides data about "Solution Business Profitability - Cube" in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItemSemTag) and exposes 116 fields with key fields Ledger, SourceLedger, CompanyCode, FiscalYear, AccountingDocument. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_GLAccountLineItemSemTag I_GLAccountLineItemSemTag from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_MargAnlysProdAndSrvcObjType _ObjectType $projection.AccountAssignmentType = _ObjectType.MarginAnalysisObjectType
[0..1] I_FiscalCalYearPeriodForCoCode _FiscalYearPeriodNew $projection.FiscalYearPeriod = _FiscalYearPeriodNew.FiscalYearPeriod and $projection.CompanyCode = _FiscalYearPeriodNew.CompanyCode
[1..1] E_JournalEntryItem _Extension $projection.SourceLedger = _Extension.SourceLedger and $projection.CompanyCode = _Extension.CompanyCode and $projection.FiscalYear = _Extension.FiscalYear and $projection.AccountingDocument = _Extension.AccountingDocument and $projection.LedgerGLLineItem = _Extension.LedgerGLLineItem

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName ISOLNORDERPROF view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
Metadata.allowExtensions true view
EndUserText.label Solution Business Profitability - Cube view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #COMPOSITE view
Analytics.dataCategory #CUBE view
ObjectModel.representativeKey LedgerGLLineItem view
Analytics.internalName #LOCAL view
Search.searchable false view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.modelingPattern #ANALYTICAL_CUBE view

Fields (116)

KeyFieldSource TableSource FieldDescription
KEY Ledger Ledger
KEY SourceLedger SourceLedger
KEY CompanyCode CompanyCode
KEY FiscalYear FiscalYear
KEY AccountingDocument AccountingDocument
KEY LedgerGLLineItem LedgerGLLineItem
KEY GLAccountHierarchy GLAccountHierarchy
KEY SemanticTag SemanticTag
KEY ValidityStartDate ValidityStartDate
KEY ValidityEndDate ValidityEndDate
LedgerFiscalYear LedgerFiscalYear
FiscalPeriod FiscalPeriod
FiscalYearPeriod FiscalYearPeriod
FiscalYearVariant FiscalYearVariant
ServiceContract ServiceContract
ServiceContractItem ServiceContractItem
BusinessSolutionOrder BusinessSolutionOrder
BusinessSolutionOrderItem BusinessSolutionOrderItem
ProviderContract ProviderContract
ProviderContractItem ProviderContractItem
ServiceContractType ServiceContractType
AccountAssignmentType AccountAssignmentType
ProjectExternalID ProjectExternalID
ProfitCenter ProfitCenter
ServiceDocumentType ServiceDocumentType
ServiceDocument ServiceDocument
ServiceDocumentItem ServiceDocumentItem
BillToParty BillToParty
BusinessTransactionType BusinessTransactionType
Customer Customer
CustomerGroup CustomerGroup
GLAccount GLAccount
CustomerSupplierIndustry CustomerSupplierIndustry
SoldProduct SoldProduct
SoldProductGroup SoldProductGroup
SalesOrder SalesOrder
SalesOrderItem SalesOrderItem
SalesOrganization SalesOrganization
ShipToParty ShipToParty
ChartOfAccounts ChartOfAccounts
ControllingArea ControllingArea
BaseUnit BaseUnit
Quantity Quantity
BillableControl BillableControl
DistributionChannel DistributionChannel
OrganizationDivision OrganizationDivision
Equipment Equipment
FunctionalArea FunctionalArea
Material Material
PartnerCostCtrActivityType PartnerCostCtrActivityType
PersonnelNumber PersonnelNumber
Plant Plant
CustomerSupplierCountry CustomerSupplierCountry
WBSElement
SalesDistrict SalesDistrict
CompanyCodeCurrency CompanyCodeCurrency
BilledRevenueAmtInCoCodeCrcy BilledRevenueAmtInCoCodeCrcy
RecognizableCostAmtInCCCrcy RecognizableCostAmtInCCCrcy
RecognizedRevnAmtInCCCrcy RecognizedRevnAmtInCCCrcy
RecognizedCOGSAmtInCCCrcy RecognizedCOGSAmtInCCCrcy
RecognizedMarginAmtInCCCrcy RecognizedMarginAmtInCCCrcy
RevenueAdjustmentAmtInCCCrcy RevenueAdjustmentAmtInCCCrcy
COGSAdjustmentAmtInCCCrcy COGSAdjustmentAmtInCCCrcy
DeferredCOGSAmtInCCCrcy DeferredCOGSAmtInCCCrcy
DeferredRevenueAmtInCCCrcy DeferredRevenueAmtInCCCrcy
AccruedRevenueAmtInCCCrcy AccruedRevenueAmtInCCCrcy
AccruedCOGSAmtInCCCrcy AccruedCOGSAmtInCCCrcy
ImminentLossRsrvAmtInCCCrcy ImminentLossRsrvAmtInCCCrcy
SalesDeductReserveAmtInCCCrcy SalesDeductReserveAmtInCCCrcy
UnrlzdCostsReserveAmtInCCCrcy UnrlzdCostsReserveAmtInCCCrcy
_ProjectExternalID _ProjectExternalID
_SourceLedger _SourceLedger
_JournalEntry _JournalEntry
_CompanyCodeCurrency _CompanyCodeCurrency
_BaseUnit _BaseUnit
_Hierarchy _Hierarchy
_SemanticTag _SemanticTag
_CurrentProfitCenter _CurrentProfitCenter
_CustomerSupplierCountry _CustomerSupplierCountry
_GLAccountInCompanyCode _GLAccountInCompanyCode
_ObjectType _ObjectType
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_Ledger _Ledger
_SalesOrder _SalesOrder
_SalesOrderItem _SalesOrderItem
_ServiceContract _ServiceContract
_ServiceContractItem _ServiceContractItem
_Customer _Customer
_CustomerGroup _CustomerGroup
_ShipToParty _ShipToParty
_SoldProduct _SoldProduct
_SoldProductGroup _SoldProductGroup
_ProfitCenter _ProfitCenter
_ServiceDocumentType _ServiceDocumentType
_ServiceDocument _ServiceDocument
_ServiceDocumentItem _ServiceDocumentItem
_SalesOrganization _SalesOrganization
_BillToParty _BillToParty
_BusinessTransactionType _BusinessTransactionType
_ChartOfAccounts _ChartOfAccounts
_ControllingArea _ControllingArea
_DistributionChannel _DistributionChannel
_Equipment _Equipment
_FunctionalArea _FunctionalArea
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_PartnerCostCtrActivityType _PartnerCostCtrActivityType
_Plant _Plant
_SalesDistrict _SalesDistrict
_ServiceContractType _ServiceContractType
_LedgerFiscalYear _LedgerFiscalYear
_FiscalPeriod _FiscalPeriod
_FiscalYearVariant _FiscalYearVariant
_FiscalYearPeriodNew _FiscalYearPeriodNew
_ProviderContract _ProviderContract
_ProviderContractItem _ProviderContractItem
@AbapCatalog.sqlViewName: 'ISOLNORDERPROF'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@Metadata.allowExtensions: true
@EndUserText.label: 'Solution Business Profitability - Cube'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking: #REQUIRED
@VDM.viewType: #COMPOSITE
@Analytics.dataCategory: #CUBE
@ObjectModel.representativeKey: 'LedgerGLLineItem'
@Analytics.internalName: #LOCAL
@Search.searchable: false
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass:  #MIXED
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.modelingPattern: #ANALYTICAL_CUBE
@ObjectModel.supportedCapabilities: [ #ANALYTICAL_PROVIDER,
                                      #SQL_DATA_SOURCE,
                                      #CDS_MODELING_DATA_SOURCE ]
define view I_SolnOrderProfitabilityCube
  as select from I_GLAccountLineItemSemTag as I_GLAccountLineItemSemTag
  association [0..1] to I_MargAnlysProdAndSrvcObjType as _ObjectType on  $projection.AccountAssignmentType  = _ObjectType.MarginAnalysisObjectType
  //association [0..1] to I_BusinessSolutionOrderStdVH as _SolutionOrder on  $projection.BusinessSolutionOrder  = _SolutionOrder.BusinessSolutionOrder

  association [0..1] to I_FiscalCalYearPeriodForCoCode as _FiscalYearPeriodNew on $projection.FiscalYearPeriod = _FiscalYearPeriodNew.FiscalYearPeriod
                                                                              and $projection.CompanyCode      = _FiscalYearPeriodNew.CompanyCode
  association [1..1] to E_JournalEntryItem as _Extension on  $projection.SourceLedger       = _Extension.SourceLedger
                                                         and $projection.CompanyCode        = _Extension.CompanyCode
                                                         and $projection.FiscalYear         = _Extension.FiscalYear
                                                         and $projection.AccountingDocument = _Extension.AccountingDocument
                                                         and $projection.LedgerGLLineItem   = _Extension.LedgerGLLineItem
{
  @ObjectModel.foreignKey.association: '_Ledger'
  @Environment.sql.passValue: true
  key Ledger,
  @ObjectModel.foreignKey.association: '_SourceLedger'
  key SourceLedger,
  @ObjectModel.foreignKey.association: '_CompanyCode'
  @Environment.sql.passValue: true
  key CompanyCode,
  @ObjectModel.foreignKey.association: '_FiscalYear'
  @Environment.sql.passValue: true
  key FiscalYear,
  @ObjectModel.foreignKey.association: '_JournalEntry'
  key AccountingDocument,
  key LedgerGLLineItem,
  @ObjectModel.foreignKey.association: '_Hierarchy'
  @Environment.sql.passValue: true
  key GLAccountHierarchy,
  @ObjectModel.foreignKey.association: '_SemanticTag'
  key SemanticTag,
  @Semantics.businessDate.from: true
  key ValidityStartDate,
  @Semantics.businessDate.to: true
  key ValidityEndDate,
  @ObjectModel.foreignKey.association: '_LedgerFiscalYear'
  LedgerFiscalYear,
  @ObjectModel.foreignKey.association: '_FiscalPeriod'
  FiscalPeriod,
  @ObjectModel.foreignKey.association: '_FiscalYearPeriodNew'
  //cast( FiscalYearPeriod as abap.char( 7 ) ) as FiscalYearPeriod,

  FiscalYearPeriod,
  FiscalYearVariant,
  @ObjectModel.foreignKey.association: '_ServiceContract'
  ServiceContract,
  @Analytics.internalName: #LOCAL
  @ObjectModel.foreignKey.association: '_ServiceContractItem'
  ServiceContractItem,
  BusinessSolutionOrder,
  BusinessSolutionOrderItem,
  @ObjectModel.foreignKey.association: '_ProviderContract'
  ProviderContract,
  @ObjectModel.foreignKey.association: '_ProviderContractItem'
  ProviderContractItem,
  @ObjectModel.foreignKey.association: '_ServiceContractType'
  ServiceContractType,
  @ObjectModel.foreignKey.association: '_ObjectType'
  AccountAssignmentType,
  @ObjectModel.foreignKey.association: '_ProjectExternalID'
  ProjectExternalID,
  @ObjectModel.foreignKey.association: '_ProfitCenter'
  ProfitCenter,
  @ObjectModel.foreignKey.association: '_ServiceDocumentType'
  ServiceDocumentType,
  @ObjectModel.foreignKey.association: '_ServiceDocument'
  ServiceDocument,
  @ObjectModel.foreignKey.association: '_ServiceDocumentItem'
  ServiceDocumentItem,
  @ObjectModel.foreignKey.association: '_BillToParty'
  BillToParty,
  @ObjectModel.foreignKey.association: '_BusinessTransactionType'
  BusinessTransactionType,
  @ObjectModel.foreignKey.association: '_Customer'
  Customer,
  @ObjectModel.foreignKey.association: '_CustomerGroup'
  CustomerGroup,
  @ObjectModel.foreignKey.association: '_GLAccountInChartOfAccounts'
  GLAccount,
  CustomerSupplierIndustry,
  @ObjectModel.foreignKey.association: '_SoldProduct'
  SoldProduct,
  @ObjectModel.foreignKey.association: '_SoldProductGroup'
  SoldProductGroup,
  @ObjectModel.foreignKey.association: '_SalesOrder'
  SalesOrder,
  @ObjectModel.foreignKey.association: '_SalesOrderItem'
  SalesOrderItem,
  @ObjectModel.foreignKey.association: '_SalesOrganization'
  SalesOrganization,
  @ObjectModel.foreignKey.association: '_ShipToParty'
  ShipToParty,
  @ObjectModel.foreignKey.association: '_ChartOfAccounts'
  ChartOfAccounts,
  @ObjectModel.foreignKey.association: '_ControllingArea'
  ControllingArea,
  @ObjectModel.foreignKey.association: '_BaseUnit'
  @Semantics.unitOfMeasure:true
  BaseUnit,
  @DefaultAggregation: #SUM
  @Semantics: { quantity : {unitOfMeasure: 'BaseUnit'} }
  Quantity,
  BillableControl,
  @ObjectModel.foreignKey.association: '_DistributionChannel'
  DistributionChannel,
  OrganizationDivision,
  @ObjectModel.foreignKey.association: '_Equipment'
  Equipment,
  @ObjectModel.foreignKey.association: '_FunctionalArea'
  FunctionalArea,
  Material,
  @ObjectModel.foreignKey.association: '_PartnerCostCtrActivityType'
  PartnerCostCtrActivityType,
  PersonnelNumber,
  @ObjectModel.foreignKey.association: '_Plant'
  Plant,
  @ObjectModel.foreignKey.association: '_CustomerSupplierCountry'
  CustomerSupplierCountry,
  cast( WBSElement as fis_wbs_no_conv preserving type ) as WBSElement,
  @ObjectModel.foreignKey.association: '_SalesDistrict'
  SalesDistrict,
 //////////////////////////////////////////////////////////////////////

 //  Key Figures with Semantic Tag

 //////////////////////////////////////////////////////////////////////

  @Semantics.currencyCode:true
  CompanyCodeCurrency,
  @DefaultAggregation: #SUM
  @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
  BilledRevenueAmtInCoCodeCrcy,
  @DefaultAggregation: #SUM
  @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
  RecognizableCostAmtInCCCrcy,
  @DefaultAggregation: #SUM
  @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
  RecognizedRevnAmtInCCCrcy,
  @DefaultAggregation: #SUM
  @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
  RecognizedCOGSAmtInCCCrcy,
  @DefaultAggregation: #SUM
  @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
  RecognizedMarginAmtInCCCrcy,
  @DefaultAggregation: #SUM
  @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
  RevenueAdjustmentAmtInCCCrcy,
  @DefaultAggregation: #SUM
  @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
  COGSAdjustmentAmtInCCCrcy,
  @DefaultAggregation: #SUM
  @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
  DeferredCOGSAmtInCCCrcy,
  @DefaultAggregation: #SUM
  @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
  DeferredRevenueAmtInCCCrcy,
  @DefaultAggregation: #SUM
  @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
  AccruedRevenueAmtInCCCrcy,
  @DefaultAggregation: #SUM
  @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
  AccruedCOGSAmtInCCCrcy,
  @DefaultAggregation: #SUM
  @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
  ImminentLossRsrvAmtInCCCrcy,
  @DefaultAggregation: #SUM
  @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
  SalesDeductReserveAmtInCCCrcy,
  @DefaultAggregation: #SUM
  @Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
  UnrlzdCostsReserveAmtInCCCrcy,

 ///////////////////////////////////////////////////////////////////////

 // Associations

 ///////////////////////////////////////////////////////////////////////

  _ProjectExternalID,
  _SourceLedger,
  _JournalEntry,
  _CompanyCodeCurrency,
  _BaseUnit,
  _Hierarchy,
  _SemanticTag,
  _CurrentProfitCenter,
  _CustomerSupplierCountry,
  _GLAccountInCompanyCode,
  _ObjectType,
  //_SolutionOrder,

  _CompanyCode,
  _FiscalYear,
  //_FiscalYearPeriod,

  _Ledger,
  _SalesOrder,
  _SalesOrderItem,
  _ServiceContract,
  _ServiceContractItem,
  _Customer,
  _CustomerGroup,
  _ShipToParty,
  _SoldProduct,
  _SoldProductGroup,
  _ProfitCenter,
  _ServiceDocumentType,
  _ServiceDocument,
  _ServiceDocumentItem,
  _SalesOrganization,
  _BillToParty,
  _BusinessTransactionType,
  _ChartOfAccounts,
  _ControllingArea,
  _DistributionChannel,
  _Equipment,
  _FunctionalArea,
  _GLAccountInChartOfAccounts,
  _PartnerCostCtrActivityType,
  _Plant,
  _SalesDistrict,
  _ServiceContractType,
  _LedgerFiscalYear,
  _FiscalPeriod,
  _FiscalYearVariant,
  _FiscalYearPeriodNew,
   _ProviderContract,
   _ProviderContractItem
 }
where
  (( AccountAssignmentType = 'PR' and  ControllingObjectClass = 'PA' )
  or AccountAssignmentType = 'EO'
  or AccountAssignmentType = 'SV'
  or AccountAssignmentType = 'SC'
) and BusinessSolutionOrder != ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_GLACCOUNTLINEITEMSEMTAG"
],
"ASSOCIATED":
[
"E_JOURNALENTRYITEM",
"I_BUSINESSTRANSACTIONTYPE",
"I_CHARTOFACCOUNTS",
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_COSTCENTERACTIVITYTYPE",
"I_COUNTRY",
"I_CURRENCY",
"I_CUSTOMER",
"I_CUSTOMERGROUP",
"I_DISTRIBUTIONCHANNEL",
"I_EQUIPMENT",
"I_FINANCIALSTATEMENTHIERARCHY",
"I_FISCALCALYEARPERIODFORCOCODE",
"I_FISCALYEARFORCOMPANYCODE",
"I_FISCALYEARPERIODFORCMPNYCODE",
"I_FISCALYEARVARIANT",
"I_FUNCTIONALAREA",
"I_GLACCOUNTINCHARTOFACCOUNTS",
"I_GLACCOUNTINCOMPANYCODE",
"I_JOURNALENTRY",
"I_LEDGER",
"I_MARGANLYSPRODANDSRVCOBJTYPE",
"I_PLANT",
"I_PRODUCT",
"I_PRODUCTGROUP",
"I_PROFITCENTER",
"I_PROJECTBYEXTERNALID",
"I_PROVIDERCONTRACT",
"I_PROVIDERCONTRACTITEM",
"I_SALESDISTRICT",
"I_SALESORDER",
"I_SALESORDERITEM",
"I_SALESORGANIZATION",
"I_SEMANTICTAG",
"I_SERVICEDOCUMENTTYPE",
"I_SRVCDOCBYDOCUMENTTYPE",
"I_SRVCDOCITEMBYDOCUMENTTYPE",
"I_UNITOFMEASURE"
],
"BASE":
[
"I_GLACCOUNTLINEITEMSEMTAG"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/