I_ProjectMarginCube

DDL: I_PROJECTMARGINCUBE Type: view_entity COMPOSITE

Project Profitability Booklet - Cube

I_ProjectMarginCube is a Composite CDS View (Cube) that provides data about "Project Profitability Booklet - Cube" in SAP S/4HANA. It reads from 1 data source (P_SemTagAndSubLedgerItem) and exposes 97 fields with key fields Ledger, SourceLedger, CompanyCode, FiscalYear, AccountingDocument. It has 10 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_SemTagAndSubLedgerItem P_SemTagAndSubLedgerItem from

Parameters (1)

NameTypeDefault
P_GLAccountHierarchy fins_sem_tag_hryid

Associations (10)

CardinalityTargetAliasCondition
[0..1] I_MargAnlysProdAndSrvcObjType _ObjectType $projection.AccountAssignmentType = _ObjectType.MarginAnalysisObjectType
[0..1] I_ProjectProfileCode _ProjectProfileCode $projection.ProjectProfileCode = _ProjectProfileCode.ProjectProfileCode
[0..1] I_ServiceDocument _SolutionOrder $projection.BusinessSolutionOrder = _SolutionOrder.ServiceDocument and _SolutionOrder.ServiceObjectType = 'BUS2000172'
[0..1] I_AcctgServiceDocumentType _ServiceDocumentTypeNew $projection.ServiceDocumentType = _ServiceDocumentTypeNew.ServiceDocumentType
[0..1] I_AccountingServiceDocument _ServiceDocumentNew $projection.ServiceDocumentType = _ServiceDocumentNew.ServiceDocumentType and $projection.ServiceDocument = _ServiceDocumentNew.ServiceDocument
[0..1] I_AcctgSrvcDocumentItemBasic _ServiceDocumentItemNew $projection.ServiceDocumentType = _ServiceDocumentItemNew.ServiceDocumentType and $projection.ServiceDocument = _ServiceDocumentItemNew.ServiceDocument and $projection.ServiceDocumentItem = _ServiceDocumentItemNew.ServiceDocumentItem
[0..1] I_AcctgServiceDocumentType _ServiceContractTypeNew $projection.ServiceContractType = _ServiceContractTypeNew.ServiceDocumentType
[0..1] I_AccountingServiceDocument _ServiceContractNew $projection.ServiceContractType = _ServiceContractNew.ServiceDocumentType and $projection.ServiceContract = _ServiceContractNew.ServiceDocument
[0..1] I_AcctgSrvcDocumentItemBasic _ServiceContractItemNew $projection.ServiceContractType = _ServiceContractItemNew.ServiceDocumentType and $projection.ServiceContract = _ServiceContractItemNew.ServiceDocument and $projection.ServiceContractItem = _ServiceContractItemNew.ServiceDocumentItem
[1..1] E_JournalEntryItem _Extension_acdoca $projection.SourceLedger = _Extension_acdoca.SourceLedger and $projection.CompanyCode = _Extension_acdoca.CompanyCode and $projection.FiscalYear = _Extension_acdoca.FiscalYear and $projection.AccountingDocument = _Extension_acdoca.AccountingDocument and $projection.LedgerGLLineItem = _Extension_acdoca.LedgerGLLineItem

Annotations (12)

NameValueLevelField
Analytics.internalName #LOCAL view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #MANDATORY view
Analytics.dataCategory #CUBE view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.modelingPattern #ANALYTICAL_CUBE view
AccessControl.personalData.blocking #REQUIRED view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Project Profitability Booklet - Cube view

Fields (97)

KeyFieldSource TableSource FieldDescription
KEY Ledger Ledger Ledger
KEY SourceLedger SourceLedger Source Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
KEY SemanticTag SemanticTag Semantic Tag
FiscalYearVariant FiscalYearVariant FY Variant
FiscalPeriod FiscalPeriod Tax period
FiscalYearPeriod FiscalYearPeriod Period/Year
ServiceContractType ServiceContractType
ServiceContract ServiceContract Transaction ID
ServiceContractItem ServiceContractItem Item Number in Doc.
BusinessSolutionOrder BusinessSolutionOrder Solution Order
BusinessSolutionOrderItem BusinessSolutionOrderItem Solution Order Item
ProviderContract ProviderContract Contract
ProviderContractItem ProviderContractItem Contract Item
SoldProduct SoldProduct Product Sold
AccountAssignmentType AccountAssignmentType Sndr AcctAssgmt Type
_ProjectExternalID _ProjectExternalID
ProjectExternalID ProjectExternalID Project def.
ProjectProfileCode _ProjectExternalID ProjectProfileCode Project Profile
ProjectInternalID ProjectInternalID Project Def.
ProfitCenter ProfitCenter Profit Center
ServiceDocumentType ServiceDocumentType Transaction Type
ServiceDocument ServiceDocument Transaction ID
ServiceDocumentItem ServiceDocumentItem Service Document
BillToParty BillToParty Inv. Recipient
Customer Customer Sold-to Party
CustomerGroup CustomerGroup Customer Group
GLAccount GLAccount General Ledger
CustomerSupplierIndustry CustomerSupplierIndustry Industry
SoldProductGroup SoldProductGroup Product Sold Group
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
SalesDocument SalesDocument SD Document
SalesOrganization SalesOrganization Sales Organization
ShipToParty ShipToParty Ship-To Party (obsolete)
ChartOfAccounts ChartOfAccounts Node Class
ControllingArea ControllingArea Controlling Area
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision OrganizationDivision Org. Division
FunctionalArea FunctionalArea Sendr Fctl Area
Plant Plant Valuation Area
CustomerSupplierCountry CustomerSupplierCountry Customer or Supplier Country/Region
WBSElement WBS Internal ID
SalesDistrict SalesDistrict Sales District
Segment Segment Segment number
GlobalCurrency GlobalCurrency GM Billing Element: Global Currency
VarblCOGSAmtInCCCrcy VarblCOGSAmtInCCCrcy
ContrbnMargin1AmtInCoCodeCrcy ContrbnMargin1AmtInCoCodeCrcy
FxdCOGSAmtInCCCrcy FxdCOGSAmtInCCCrcy
PriceDifferenceAmtInCCCrcy PriceDifferenceAmtInCCCrcy
ContrbnMargin2AmtInCoCodeCrcy ContrbnMargin2AmtInCoCodeCrcy
InptPriceVarcAmtInCoCodeCrcy InptPriceVarcAmtInCoCodeCrcy
InptQtyVarcAmtInCoCodeCrcy InptQtyVarcAmtInCoCodeCrcy
RsceUsgeVarcAmtInCoCodeCrcy RsceUsgeVarcAmtInCoCodeCrcy
LotSizeVarcAmtInCoCodeCrcy LotSizeVarcAmtInCoCodeCrcy
InputRmngVarcAmtInCoCodeCrcy InputRmngVarcAmtInCoCodeCrcy
ContrbnMargin3AmtInCoCodeCrcy ContrbnMargin3AmtInCoCodeCrcy
AmountInGlobalCurrency AmountInGlobalCurrency Amount in Global Currency
CompanyCodeCurrency CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Local Crcy Amt
_ProjectProfileCode _ProjectProfileCode
_SourceLedger _SourceLedger
_JournalEntry _JournalEntry
_SemanticTag _SemanticTag
_CustomerSupplierCountry _CustomerSupplierCountry
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_Ledger _Ledger
_ObjectType _ObjectType
_SolutionOrder _SolutionOrder
_ServiceDocumentTypeNew _ServiceDocumentTypeNew
_ServiceDocumentNew _ServiceDocumentNew
_ServiceDocumentItemNew _ServiceDocumentItemNew
_ServiceContractNew _ServiceContractNew
_ServiceContractItemNew _ServiceContractItemNew
_ServiceContractTypeNew _ServiceContractTypeNew
_SalesOrder _SalesOrder
_SalesOrderItem _SalesOrderItem
_SalesDocument _SalesDocument
_Customer _Customer
_CustomerGroup _CustomerGroup
_ShipToParty _ShipToParty
_SoldProduct _SoldProduct
_SoldProductGroup _SoldProductGroup
_ProfitCenter _ProfitCenter
_SalesOrganization _SalesOrganization
_BillToParty _BillToParty
_ChartOfAccounts _ChartOfAccounts
_ControllingArea _ControllingArea
_DistributionChannel _DistributionChannel
_FunctionalArea _FunctionalArea
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_Plant _Plant
_SalesDistrict _SalesDistrict

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_ProjectMarginCube.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- Parameters: P_GLAccountHierarchy : fins_sem_tag_hryid

CREATE VIEW I_ProjectMarginCube AS
SELECT
  Ledger,
  SourceLedger,
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  LedgerGLLineItem,
  SemanticTag,
  FiscalYearVariant,
  FiscalPeriod,
  FiscalYearPeriod,
  ServiceContractType,
  ServiceContract,
  ServiceContractItem,
  BusinessSolutionOrder,
  BusinessSolutionOrderItem,
  ProviderContract,
  ProviderContractItem,
  SoldProduct,
  AccountAssignmentType,
  ProjectExternalID,
  _ProjectExternalID.ProjectProfileCode AS ProjectProfileCode,
  ProjectInternalID,
  ProfitCenter,
  ServiceDocumentType,
  ServiceDocument,
  ServiceDocumentItem,
  BillToParty,
  Customer,
  CustomerGroup,
  GLAccount,
  CustomerSupplierIndustry,
  SoldProductGroup,
  SalesOrder,
  SalesOrderItem,
  SalesDocument,
  SalesOrganization,
  ShipToParty,
  ChartOfAccounts,
  ControllingArea,
  DistributionChannel,
  OrganizationDivision,
  FunctionalArea,
  Plant,
  CustomerSupplierCountry,
  cast( WBSElement as fis_wbs_no_conv preserving type ) AS WBSElement,
  SalesDistrict,
  Segment,
  GlobalCurrency,
  VarblCOGSAmtInCCCrcy,
  ContrbnMargin1AmtInCoCodeCrcy,
  FxdCOGSAmtInCCCrcy,
  PriceDifferenceAmtInCCCrcy,
  ContrbnMargin2AmtInCoCodeCrcy,
  InptPriceVarcAmtInCoCodeCrcy,
  InptQtyVarcAmtInCoCodeCrcy,
  RsceUsgeVarcAmtInCoCodeCrcy,
  LotSizeVarcAmtInCoCodeCrcy,
  InputRmngVarcAmtInCoCodeCrcy,
  ContrbnMargin3AmtInCoCodeCrcy,
  AmountInGlobalCurrency,
  CompanyCodeCurrency,
  AmountInCompanyCodeCurrency
FROM P_SemTagAndSubLedgerItem
LEFT OUTER JOIN I_MargAnlysProdAndSrvcObjType AS _ObjectType ON AccountAssignmentType = _ObjectType.MarginAnalysisObjectType  -- association [0..1]
LEFT OUTER JOIN I_ProjectProfileCode AS _ProjectProfileCode ON ProjectProfileCode = _ProjectProfileCode.ProjectProfileCode  -- association [0..1]
LEFT OUTER JOIN I_ServiceDocument AS _SolutionOrder ON BusinessSolutionOrder = _SolutionOrder.ServiceDocument AND _SolutionOrder.ServiceObjectType = 'BUS2000172'  -- association [0..1]
LEFT OUTER JOIN I_AcctgServiceDocumentType AS _ServiceDocumentTypeNew ON ServiceDocumentType = _ServiceDocumentTypeNew.ServiceDocumentType  -- association [0..1]
LEFT OUTER JOIN I_AccountingServiceDocument AS _ServiceDocumentNew ON ServiceDocumentType = _ServiceDocumentNew.ServiceDocumentType AND ServiceDocument = _ServiceDocumentNew.ServiceDocument  -- association [0..1]
LEFT OUTER JOIN I_AcctgSrvcDocumentItemBasic AS _ServiceDocumentItemNew ON ServiceDocumentType = _ServiceDocumentItemNew.ServiceDocumentType AND ServiceDocument = _ServiceDocumentItemNew.ServiceDocument AND ServiceDocumentItem = _ServiceDocumentItemNew.ServiceDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_AcctgServiceDocumentType AS _ServiceContractTypeNew ON ServiceContractType = _ServiceContractTypeNew.ServiceDocumentType  -- association [0..1]
LEFT OUTER JOIN I_AccountingServiceDocument AS _ServiceContractNew ON ServiceContractType = _ServiceContractNew.ServiceDocumentType AND ServiceContract = _ServiceContractNew.ServiceDocument  -- association [0..1]
LEFT OUTER JOIN I_AcctgSrvcDocumentItemBasic AS _ServiceContractItemNew ON ServiceContractType = _ServiceContractItemNew.ServiceDocumentType AND ServiceContract = _ServiceContractItemNew.ServiceDocument AND ServiceContractItem = _ServiceContractItemNew.ServiceDocumentItem  -- association [0..1]
LEFT OUTER JOIN E_JournalEntryItem AS _Extension_acdoca ON SourceLedger = _Extension_acdoca.SourceLedger AND CompanyCode = _Extension_acdoca.CompanyCode AND FiscalYear = _Extension_acdoca.FiscalYear AND AccountingDocument = _Extension_acdoca.AccountingDocument AND LedgerGLLineItem = _Extension_acdoca.LedgerGLLineItem  -- association [1..1]
;