P_EBOC_OrderPlanCost1

DDL: P_EBOC_ORDERPLANCOST1 SQL: PEBOCPLNCST1 Type: view COMPOSITE Package: ODATA_CO_RT_ORDER_COSTS_DETAIL

Event-Based Order Cost Plan Cost layer 1

P_EBOC_OrderPlanCost1 is a Composite CDS View that provides data about "Event-Based Order Cost Plan Cost layer 1" in SAP S/4HANA. It reads from 1 data source (I_FinancialPlanningEntryItem) and exposes 31 fields with key fields CompanyCode, Plant, ControllingArea, PlanningCategory, CostElement. Part of development package ODATA_CO_RT_ORDER_COSTS_DETAIL.

Data Sources (1)

SourceAliasJoin Type
I_FinancialPlanningEntryItem I_FinancialPlanningEntryItem from

Parameters (4)

NameTypeDefault
P_OrderID fis_order_number
P_FromFiscalYearPeriod fis_jahrper
P_ToFiscalYearPeriod fis_jahrper
P_Ledger fins_ledger

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PEBOCPLNCST1 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY Plant Plant Valuation Area
KEY ControllingArea ControllingArea Controlling Area
KEY PlanningCategory PlanningCategory Plan Category
KEY CostElement General Ledger
KEY BusinessTransactionCategory BusinessTransactionCategory Business Transaction Category
KEY ControllingDebitCreditCode ControllingDebitCreditCode Dr/Cr ind. CO
KEY OrderID OrderID Order ID
KEY AccountAssignmentType AccountAssignmentType Sndr AcctAssgmt Type
KEY PartnerAccountAssignmentType PartnerAccountAssignmentType Partner Account Assignment Type
KEY PartnerCostCenter PartnerCostCenter Sender Cost Ctr
KEY PartnerCostCtrActivityType PartnerCostCtrActivityType Partner Cost Center Activity Type
KEY PartnerOrder PartnerOrder_2
KEY UnitOfMeasure CostSourceUnit Valuation UoM
KEY Material Material Vehicle Model
KEY IsLotSizeIndependent IsLotSizeIndependent LotSzIndep.Ind.
KEY CostOriginGroup CostOriginGroup Origin Group
KEY OriginCostCenter OriginCostCenter OrigCCtr
KEY OriginCostCtrActivityType OriginCostCtrActivityType OrigAct.
AmountInCompanyCodeCurrency
AmountInGlobalCurrency
FixedAmountInGlobalCrcy
AmountInFreeDefinedCurrency1
AmountInFreeDefinedCurrency2
AmountInFreeDefinedCurrency3
AmountInFreeDefinedCurrency4
AmountInFreeDefinedCurrency5
AmountInFreeDefinedCurrency6
AmountInFreeDefinedCurrency7
AmountInFreeDefinedCurrency8
Quantity

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 P_EBOC_OrderPlanCost1.
-- 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: PEBOCPLNCST1
-- Parameters: P_OrderID : fis_order_number, P_FromFiscalYearPeriod : fis_jahrper, P_ToFiscalYearPeriod : fis_jahrper, P_Ledger : fins_ledger

CREATE VIEW P_EBOC_OrderPlanCost1 AS
SELECT
  CompanyCode,
  Plant,
  ControllingArea,
  PlanningCategory,
  cast(GLAccount as fis_saknr) AS CostElement,
  BusinessTransactionCategory,
  ControllingDebitCreditCode,
  OrderID,
  AccountAssignmentType,
  PartnerAccountAssignmentType,
  PartnerCostCenter,
  PartnerCostCtrActivityType,
  PartnerOrder_2 AS PartnerOrder,
  CostSourceUnit AS UnitOfMeasure,
  Material,
  IsLotSizeIndependent,
  CostOriginGroup,
  OriginCostCenter,
  OriginCostCtrActivityType,
  sum(AmountInCompanyCodeCurrency) AS AmountInCompanyCodeCurrency,
  sum(AmountInGlobalCurrency) AS AmountInGlobalCurrency,
  sum(FixedAmountInGlobalCrcy) AS FixedAmountInGlobalCrcy,
  sum(AmountInFreeDefinedCurrency1) AS AmountInFreeDefinedCurrency1,
  sum(AmountInFreeDefinedCurrency2) AS AmountInFreeDefinedCurrency2,
  sum(AmountInFreeDefinedCurrency3) AS AmountInFreeDefinedCurrency3,
  sum(AmountInFreeDefinedCurrency4) AS AmountInFreeDefinedCurrency4,
  sum(AmountInFreeDefinedCurrency5) AS AmountInFreeDefinedCurrency5,
  sum(AmountInFreeDefinedCurrency6) AS AmountInFreeDefinedCurrency6,
  sum(AmountInFreeDefinedCurrency7) AS AmountInFreeDefinedCurrency7,
  sum(AmountInFreeDefinedCurrency8) AS AmountInFreeDefinedCurrency8,
  sum(ValuationQuantity) AS Quantity
FROM I_FinancialPlanningEntryItem
;