C_SolutionOrderProfitability

DDL: C_SOLUTIONORDERPROFITABILITY SQL: CSOLNORDERPROFIT Type: view CONSUMPTION

Solution Order Margins

C_SolutionOrderProfitability is a Consumption CDS View that provides data about "Solution Order Margins" in SAP S/4HANA. It reads from 1 data source (I_SolnOrderProfitabilityCube) and exposes 57 fields with key fields GLAccountHierarchy, Ledger, CompanyCode, AccountingDocument, LedgerGLLineItem. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_SolnOrderProfitabilityCube I_SolnOrderProfitabilityCube from

Associations (1)

CardinalityTargetAliasCondition
[1..1] C_BusinessPartner _BusinessPartner $projection.Customer = _BusinessPartner.BusinessPartner

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName CSOLNORDERPROFIT view
VDM.viewType #CONSUMPTION view
EndUserText.label Solution Order Margins view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
Metadata.allowExtensions true view
AbapCatalog.preserveKey true view
Analytics.settings.maxProcessingEffort #HIGH view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
UI.headerInfo.typeName Solution Order Margins view
UI.headerInfo.typeNamePlural Solution Order Margins view

Fields (57)

KeyFieldSource TableSource FieldDescription
KEY GLAccountHierarchy GLAccountHierarchy Financial Statement Version
KEY Ledger Ledger Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
KEY SourceLedger SourceLedger Source Ledger
KEY SemanticTag SemanticTag Semantic Tag
KEY FiscalYear FiscalYear G/L Fiscal Year
GLAccountHierarchyName
LedgerName
CompanyCodeName _CompanyCode CompanyCodeName Company Name
CompanyCodeCurrency CompanyCodeCurrency Local Currency
SoldProductGroup SoldProductGroup Product Sold Group
SoldProductGroupName Sold Product Group Name
CustomerGroup CustomerGroup Customer Group
CustomerGroupName Customer Group Name
BusinessSolutionOrder BusinessSolutionOrder Solution Order
BusinessSolutionOrderItem BusinessSolutionOrderItem Solution Order Item
ProfitCenter ProfitCenter Profit Center
ProfitCenterName Profit Center Name
FiscalYearPeriod FiscalYearPeriod Period/Year
FiscalPeriod FiscalPeriod Tax period
ProjectExternalID ProjectExternalID Project def.
ProjectName _ProjectExternalID ProjectDescription Project Name
SoldProduct SoldProduct Product Sold
SoldProductName
Customer Customer Sold-to Party
BPCustMultiAddrIsActive _BusinessPartner BPCustMultiAddrIsActive
CustomerName _Customer CustomerName Name of Customer
AccountAssignmentType AccountAssignmentType Sndr AcctAssgmt Type
AccountAssignmentTypeName Account Assignment Type Name
Plant Plant Valuation Area
PlantName _Plant PlantName Plant Name
LedgerFiscalYear LedgerFiscalYear
ControllingArea ControllingArea Controlling Area
SalesOrganization SalesOrganization Sales Organization
SalesOrganizationName
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
DistributionChannelName
OrganizationDivision OrganizationDivision Org. Division
SalesDistrict SalesDistrict Sales District
SalesDistrictName
GLAccount GLAccount General Ledger
ChartOfAccounts ChartOfAccounts Node Class
ServiceDocumentType ServiceDocumentType Transaction Type
ServiceDocument ServiceDocument Transaction ID
_ServiceDocument _ServiceDocument
BilledRevenueAmtInCoCodeCrcy BilledRevenueAmtInCoCodeCrcy
RecognizableCostAmtInCCCrcy RecognizableCostAmtInCCCrcy
RecognizedRevnAmtInCCCrcy RecognizedRevnAmtInCCCrcy
RecognizedCOGSAmtInCCCrcy RecognizedCOGSAmtInCCCrcy
RecognizedMarginAmtInCCCrcy RecognizedMarginAmtInCCCrcy
MarginInPct
UnitOfMeasure
BaseUnit BaseUnit Unit of Measure
Quantity Quantity Value
_BusinessPartner _BusinessPartner

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 C_SolutionOrderProfitability.
-- 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.
-- SQL view name: CSOLNORDERPROFIT

CREATE VIEW C_SolutionOrderProfitability AS
SELECT
  GLAccountHierarchy,
  Ledger,
  CompanyCode,
  AccountingDocument,
  LedgerGLLineItem,
  SourceLedger,
  SemanticTag,
  FiscalYear,
  _Hierarchy._Text[1:Language = $session.system_language].GLAccountHierarchyName AS GLAccountHierarchyName,
  _Ledger._Text[1:Language = $session.system_language].LedgerName AS LedgerName,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  CompanyCodeCurrency,
  SoldProductGroup,
  _SoldProductGroup._Text[1:Language = $session.system_language].MaterialGroupName AS SoldProductGroupName,
  CustomerGroup,
  _CustomerGroup._Text[1:Language = $session.system_language].CustomerGroupName AS CustomerGroupName,
  BusinessSolutionOrder,
  BusinessSolutionOrderItem,
  ProfitCenter,
  _ProfitCenter._Text[1:Language = $session.system_language].ProfitCenterName AS ProfitCenterName,
  FiscalYearPeriod,
  FiscalPeriod,
  ProjectExternalID,
  _ProjectExternalID.ProjectDescription AS ProjectName,
  SoldProduct,
  _SoldProduct._Text[1:Language = $session.system_language].ProductName AS SoldProductName,
  Customer,
  _BusinessPartner.BPCustMultiAddrIsActive AS BPCustMultiAddrIsActive,
  _Customer.CustomerName AS CustomerName,
  AccountAssignmentType,
  _ObjectType._Text[1:Language = $session.system_language].MarginAnalysisObjectTypeDesc AS AccountAssignmentTypeName,
  Plant,
  _Plant.PlantName AS PlantName,
  LedgerFiscalYear,
  ControllingArea,
  SalesOrganization,
  _SalesOrganization._Text[1:Language = $session.system_language].SalesOrganizationName AS SalesOrganizationName,
  DistributionChannel,
  _DistributionChannel._Text[1:Language = $session.system_language].DistributionChannelName AS DistributionChannelName,
  OrganizationDivision,
  SalesDistrict,
  _SalesDistrict._Text[1:Language = $session.system_language].SalesDistrictName AS SalesDistrictName,
  GLAccount,
  ChartOfAccounts,
  ServiceDocumentType,
  ServiceDocument,
  BilledRevenueAmtInCoCodeCrcy,
  RecognizableCostAmtInCCCrcy,
  RecognizedRevnAmtInCCCrcy,
  RecognizedCOGSAmtInCCCrcy,
  RecognizedMarginAmtInCCCrcy,
  cast ( 0 as fins_trr_margininpct ) AS MarginInPct,
  cast('%' as msehi) AS UnitOfMeasure,
  BaseUnit,
  Quantity
FROM I_SolnOrderProfitabilityCube
LEFT OUTER JOIN C_BusinessPartner AS _BusinessPartner ON Customer = _BusinessPartner.BusinessPartner  -- association [1..1]
;