I_ActlPlnSrvcMargItemCube

DDL: I_ACTLPLNSRVCMARGITEMCUBE Type: view_entity COMPOSITE Package: FINS_COPA_REPORTING

Actual and Plan Service Marg Item - Cube

I_ActlPlnSrvcMargItemCube (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Public Edition with built-in and side-by-side extension capabilities.

Accounting and Financial Close

I_ActlPlnSrvcMargItemCube is a Composite CDS View (Cube) that provides data about "Actual and Plan Service Marg Item - Cube" in SAP S/4HANA. It reads from 1 data source (I_ActualPlanJournalEntryItem) and exposes 139 fields with key fields Ledger, SourceLedger, CompanyCode, FiscalYear, AccountingDocument. It has 13 associations to related views. Part of development package FINS_COPA_REPORTING.

SAP Help Documentation

CategoryCDS Views for Sales Accounting
StatusReleased
Purpose
This CDS view provides a comprehensive analytical cube for analyzing actual and planned service margin items. It integrates various data sources and associations to offer a detailed view of financial and service-related data, enabling in-depth analysis of service margins. This CDS view provides the data to answer the following business questions: What are the actual and planned service margins for specific service documents and contracts? How do service margins vary across different fiscal periods and years? What is the impact of different account assignment types on service margins? How do service margins correlate with specific business solution orders and items? What are the financial implications of service margins in different currencies, such as global and company code currencies? How do service margins relate to specific customers, suppliers, and industries? What is the distribution of service margins across various sales organizations, distribution channels, and sales districts? How do service margins align with specific products, equipment, and projects? What are the quantities and valuation quantities associated with service margins, and how do they relate to specific units of measure? How do service margins interact with different financial account types, cost centres, and profit centres? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Structure
Measures and Attributes Some important measures and attributes are: Amount in Company Code Currency Amount in Global Currency Quantity Valuation Quantity

View on SAP Help Portal →

SAP API Hub

CategoryComposite
StateC1
Line of BusinessAccounting and Financial Close
Application ComponentCO-FIO-PA-2CL
CapabilitiesData Provider for Analytical Queries,Data Source in SQL Select,Data Source for Defining CDS Entities
Extensible (Key User)Yes
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageAccounting and Financial Close for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides a comprehensive analytical cube for analyzing actual and planned service margin items. It integrates various data sources and associations to offer a detailed view of financial and service-related data, enabling in-depth analysis of service margins.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>What are the actual and planned service margins for specific service documents and contracts?</p></li> <li><p>How do service margins vary across different fiscal periods and years?</p></li> <li><p>What is the impact of different account assignment types on service margins?</p></li> <li><p>How do service margins correlate with specific business solution orders and items?</p></li> <li><p>What are the financial implications of service margins in different currencies, such as global and company code currencies?</p></li> <li><p>How do service margins relate to specific customers, suppliers, and industries?</p></li> <li><p>What is the distribution of service margins across various sales organizations, distribution channels, and sales districts?</p></li> <li><p>How do service margins align with specific products, equipment, and projects?</p></li> <li><p>What are the quantities and valuation quantities associated with service margins, and how do they relate to specific units of measure?</p></li> <li><p>How do service margins interact with different financial account types, cost centres, and profit centres?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_ActualPlanJournalEntryItem I_ActualPlanJournalEntryItem from

Associations (13)

CardinalityTargetAliasCondition
[0..1] I_MargAnlysProdAndSrvcObjType _ObjectType $projection.AccountAssignmentType = _ObjectType.MarginAnalysisObjectType
[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 association[0..1] to I_GLAccountInChartOfAccounts as _OldGLAccountInChartOfAccounts on $projection.ChartOfAccounts = _OldGLAccountInChartOfAccounts.ChartOfAccounts and $projection.OldGLAccount = _OldGLAccountInChartOfAccounts.GLAccount
[0..1] I_AcctgServiceDocumentItem _AcctgServiceDocumentItem $projection.ServiceDocumentType = _AcctgServiceDocumentItem.ServiceDocumentType and $projection.ServiceDocument = _AcctgServiceDocumentItem.ServiceDocument and $projection.ServiceDocumentItem = _AcctgServiceDocumentItem.ServiceDocumentItem
[0..1] I_CustomerSupplierIndustry _CustomerSupplierIndustry $projection.CustomerSupplierIndustry = _CustomerSupplierIndustry.Industry
[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
[1..1] E_FinancialPlanningEntryItem _Extension_acdocp $projection.FinancialPlanningReqTransSqnc = _Extension_acdocp.FinancialPlanningReqTransSqnc and $projection.FinancialPlanningDataPacket = _Extension_acdocp.FinancialPlanningDataPacket and $projection.FinancialPlanningEntryItem = _Extension_acdocp.FinancialPlanningEntryItem
[0..1] I_FiscalYearForLedger _LedgerFiscalYearForLedger $projection.LedgerFiscalYear = _LedgerFiscalYearForLedger.FiscalYear and $projection.CompanyCode = _LedgerFiscalYearForLedger.CompanyCode and $projection.Ledger = _LedgerFiscalYearForLedger.Ledger

Annotations (13)

NameValueLevelField
Analytics.technicalName IACTLPLNSRVCMITM view
Analytics.internalName #LOCAL view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #CHECK 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 Actual and Plan Service Marg Item - Cube view

Fields (139)

KeyFieldSource TableSource FieldDescription
KEY Ledger Ledger Ledger in General Ledger Accounting
KEY SourceLedger SourceLedger Source Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY FinancialPlanningReqTransSqnc FinancialPlanningReqTransSqnc Financial Planning Request Transaction Sequence Number
KEY FinancialPlanningDataPacket FinancialPlanningDataPacket Financial Planning Data Packet Number
KEY ActualPlanJournalEntryItem ActualPlanJournalEntryItem Actual Plan Journal Entry Item
PostingDate Posting Date in the Document
FiscalYearQuarter _FiscalCalendarDate FiscalYearQuarter Fiscal Year + Fiscal Quarter
LedgerGLLineItem LedgerGLLineItem General Ledger Journal Entry Line Item
FinancialPlanningEntryItem FinancialPlanningEntryItem Financial Planning Entry Item
BusinessSolutionOrder BusinessSolutionOrder Solution Order
BusinessSolutionOrderItem BusinessSolutionOrderItem Solution Order Item
ProviderContract ProviderContract Provider Contract
ProviderContractItem ProviderContractItem Provider Contract Item
ActualPlanCode ActualPlanCode Actual Plan Code
FiscalYearVariant FiscalYearVariant Fiscal Year Variant
FiscalPeriod FiscalPeriod Fiscal Period
FiscalYearPeriod FiscalYearPeriod Fiscal Year Period
ServiceContract ServiceContract Service Contract ID
ServiceContractItem ServiceContractItem Service Contract Item ID
ServiceContractType ServiceContractType Service Contract Type
AccountAssignmentType AccountAssignmentType Account Assignment Type
ProjectExternalID Project Number (External) Edited
ProfitCenter ProfitCenter Profit Center
ServiceDocumentType ServiceDocumentType Service Document Type
ServiceDocument ServiceDocument Service Document ID
ServiceDocumentItem ServiceDocumentItem Service Document Item ID
BillToParty BillToParty Inv. Recipient
BusinessTransactionType BusinessTransactionType Business Transaction Type
Customer Customer Customer Number
CustomerGroup CustomerGroup Customer Group
GLAccount GLAccount General Ledger
OldGLAccount General Ledger
CustomerSupplierIndustry CustomerSupplierIndustry Customer Supplier Industry
SoldProductGroup SoldProductGroup Product Sold Group
SoldProduct SoldProduct Product Sold
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
SalesDocument SalesDocument Sales Document
SalesDocumentItem SalesDocumentItem Sales Document Item
SalesOrganization SalesOrganization Sales Organization
ShipToParty ShipToParty Ship-To Party (obsolete)
ChartOfAccounts ChartOfAccounts Chart of Accounts
ControllingArea ControllingArea Controlling Area
CostSourceUnit Unit of Measure for Valuation Quantity
ValuationQuantity ValuationQuantity Valuation Quantity
BaseUnit BaseUnit Base Unit of Measure
Quantity Quantity Quantity
BillableControl BillableControl Billable Control
DistributionChannel DistributionChannel Distribution Channel
OrganizationDivision OrganizationDivision Organization Division
FunctionalArea FunctionalArea Sendr Fctl Area
PartnerCostCtrActivityType PartnerCostCtrActivityType Partner Cost Center Activity Type
PersonnelNumber PersonnelNumber Personnel Number
Plant Plant Valuation Area
CustomerSupplierCountry CustomerSupplierCountry Customer or Supplier Country/Region
WBSElement WBS Internal ID
WBSElementExternalID WBSElementExternalID WBS Element External ID
ResultAnalysisInternalID Revenue Recognition Key
Product Product Product Sold
Equipment Equipment Equipment Number
ServicesRenderedDate ServicesRenderedDate Date on which services are rendered
TimeSheetOvertimeCategory TimeSheetOvertimeCategory Overtime Category
SalesDistrict SalesDistrict Sales District
Segment Segment Segment for Segmental Reporting
PlanningCategory PlanningCategory Plan Category
ControllingObjectClass ControllingObjectClass Controlling Object Class
GlobalCurrency GlobalCurrency GM Billing Element: Global Currency
AmountInGlobalCurrency AmountInGlobalCurrency Amount in Global Currency
CompanyCodeCurrency CompanyCodeCurrency Company Code Currency
AmountInCompanyCodeCurrency AmountInCompanyCodeCurrency Amount in Company Code Currency
LedgerFiscalYear LedgerFiscalYear Fiscal Year of Ledger
Supplier Supplier Supplier
CostCenter CostCenter Cost Center
FinancialAccountType FinancialAccountType Fin. Account Type
OrderID OrderID Order ID
AccountingDocumentType AccountingDocumentType Journal Entry Type
ValuationArea ValuationArea Valuation Area
AssetClass AssetClass Asset Class
_FiscalCalendarDate _FiscalCalendarDate
_SolutionOrder _SolutionOrder
_ProjectExternalID _ProjectExternalID
_SourceLedger _SourceLedger
_JournalEntry _JournalEntry
_CompanyCodeCurrency _CompanyCodeCurrency
_BaseUnit _BaseUnit
_CostSourceUnit _CostSourceUnit
_CurrentProfitCenter _CurrentProfitCenter
_CustomerSupplierCountry _CustomerSupplierCountry
_GLAccountInCompanyCode _GLAccountInCompanyCode
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_Ledger _Ledger
_SalesOrder _SalesOrder
_SalesOrderItem _SalesOrderItem
_SalesDocument _SalesDocument
_SalesDocumentItem _SalesDocumentItem
_ServiceContractTypeNew _ServiceContractTypeNew
_ServiceContractNew _ServiceContractNew
_ServiceContractItemNew _ServiceContractItemNew
_ServiceDocumentTypeNew _ServiceDocumentTypeNew
_ServiceDocumentNew _ServiceDocumentNew
_ServiceDocumentItemNew _ServiceDocumentItemNew
_ObjectType _ObjectType
_Customer _Customer
_CustomerGroup _CustomerGroup
_ShipToParty _ShipToParty
_SoldProduct _SoldProduct
_SoldProductGroup _SoldProductGroup
_ProfitCenter _ProfitCenter
_SalesOrganization _SalesOrganization
_BillToParty _BillToParty
_BusinessTransactionType _BusinessTransactionType
_ChartOfAccounts _ChartOfAccounts
_ControllingArea _ControllingArea
_DistributionChannel _DistributionChannel
_FunctionalArea _FunctionalArea
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_OldGLAccountInChartOfAccounts _OldGLAccountInChartOfAccounts
_FiscalYearVariant _FiscalYearVariant
_PartnerCostCtrActivityType _PartnerCostCtrActivityType
_Plant _Plant
_SalesDistrict _SalesDistrict
_AcctgServiceDocumentItem _AcctgServiceDocumentItem
_Equipment _Equipment
_Product _Product
_WBSElementExternalID _WBSElementExternalID
_FinancialAccountType _FinancialAccountType
_CostCenter _CostCenter
_CurrentCostCenter _CurrentCostCenter
_ServiceDocument _ServiceDocument
_Order _Order
_AccountingDocumentType _AccountingDocumentType
_CustomerSupplierIndustry _CustomerSupplierIndustry
_Supplier _Supplier
_LedgerFiscalYearForVariant _LedgerFiscalYearForVariant
_LedgerFiscalYearForLedger _LedgerFiscalYearForLedger

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_ActlPlnSrvcMargItemCube.
-- 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.

CREATE VIEW I_ActlPlnSrvcMargItemCube AS
SELECT
  Ledger,
  SourceLedger,
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  FinancialPlanningReqTransSqnc,
  FinancialPlanningDataPacket,
  ActualPlanJournalEntryItem,
  cast(PostingDate as budat preserving type ) AS PostingDate,
  _FiscalCalendarDate.FiscalYearQuarter AS FiscalYearQuarter,
  LedgerGLLineItem,
  FinancialPlanningEntryItem,
  BusinessSolutionOrder,
  BusinessSolutionOrderItem,
  ProviderContract,
  ProviderContractItem,
  ActualPlanCode,
  FiscalYearVariant,
  FiscalPeriod,
  FiscalYearPeriod,
  ServiceContract,
  ServiceContractItem,
  ServiceContractType,
  AccountAssignmentType,
  cast( ProjectExternalID as ps_pspid_edit preserving type ) AS ProjectExternalID,
  ProfitCenter,
  ServiceDocumentType,
  ServiceDocument,
  ServiceDocumentItem,
  BillToParty,
  BusinessTransactionType,
  Customer,
  CustomerGroup,
  GLAccount,
  cast( GLAccount as fis_racct preserving type ) AS OldGLAccount,
  CustomerSupplierIndustry,
  SoldProductGroup,
  SoldProduct,
  SalesOrder,
  SalesOrderItem,
  SalesDocument,
  SalesDocumentItem,
  SalesOrganization,
  ShipToParty,
  ChartOfAccounts,
  ControllingArea,
  cast( CostSourceUnit as rvunit preserving type ) AS CostSourceUnit,
  ValuationQuantity,
  BaseUnit,
  Quantity,
  BillableControl,
  DistributionChannel,
  OrganizationDivision,
  FunctionalArea,
  PartnerCostCtrActivityType,
  PersonnelNumber,
  Plant,
  CustomerSupplierCountry,
  cast( WBSElement as fis_wbs_no_conv preserving type ) AS WBSElement,
  WBSElementExternalID,
  cast( _AcctgServiceDocumentItem.ResultAnalysisInternalID as fins_ma_rev_rec_key preserving type ) AS ResultAnalysisInternalID,
  Product,
  Equipment,
  ServicesRenderedDate,
  TimeSheetOvertimeCategory,
  SalesDistrict,
  Segment,
  PlanningCategory,
  ControllingObjectClass,
  GlobalCurrency,
  AmountInGlobalCurrency,
  CompanyCodeCurrency,
  AmountInCompanyCodeCurrency,
  LedgerFiscalYear,
  Supplier,
  CostCenter,
  FinancialAccountType,
  OrderID,
  AccountingDocumentType,
  ValuationArea,
  AssetClass
FROM I_ActualPlanJournalEntryItem
LEFT OUTER JOIN I_MargAnlysProdAndSrvcObjType AS _ObjectType ON AccountAssignmentType = _ObjectType.MarginAnalysisObjectType  -- 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] to I_GLAccountInChartOfAccounts as _OldGLAccountInChartOfAccounts on ChartOfAccounts = _OldGLAccountInChartOfAccounts.ChartOfAccounts AND OldGLAccount = _OldGLAccountInChartOfAccounts.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_AcctgServiceDocumentItem AS _AcctgServiceDocumentItem ON ServiceDocumentType = _AcctgServiceDocumentItem.ServiceDocumentType AND ServiceDocument = _AcctgServiceDocumentItem.ServiceDocument AND ServiceDocumentItem = _AcctgServiceDocumentItem.ServiceDocumentItem  -- association [0..1]
LEFT OUTER JOIN I_CustomerSupplierIndustry AS _CustomerSupplierIndustry ON CustomerSupplierIndustry = _CustomerSupplierIndustry.Industry  -- 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]
LEFT OUTER JOIN E_FinancialPlanningEntryItem AS _Extension_acdocp ON FinancialPlanningReqTransSqnc = _Extension_acdocp.FinancialPlanningReqTransSqnc AND FinancialPlanningDataPacket = _Extension_acdocp.FinancialPlanningDataPacket AND FinancialPlanningEntryItem = _Extension_acdocp.FinancialPlanningEntryItem  -- association [1..1]
LEFT OUTER JOIN I_FiscalYearForLedger AS _LedgerFiscalYearForLedger ON LedgerFiscalYear = _LedgerFiscalYearForLedger.FiscalYear AND CompanyCode = _LedgerFiscalYearForLedger.CompanyCode AND Ledger = _LedgerFiscalYearForLedger.Ledger  -- association [0..1]
;