P_EBOC_COGM_OrderAndItemCosts2

DDL: P_EBOC_COGM_ORDERANDITEMCOSTS2 SQL: PEBOCCOGMHDRITM2 Type: view COMPOSITE

P_EBOC_COGM_OrderAndItemCosts2 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_EBOC_COGM_OrderAndItemCosts1) and exposes 28 fields with key fields CompanyCode, ControllingArea, ControllingValueType, CostElement, ControllingKeySubNumber.

Data Sources (1)

SourceAliasJoin Type
P_EBOC_COGM_OrderAndItemCosts1 P_EBOC_COGM_OrderAndItemCosts1 from

Parameters (6)

NameTypeDefault
P_OrderID fis_order_number
P_OrderItem char4
P_FromFiscalYearPeriod fis_jahrper
P_ToFiscalYearPeriod fis_jahrper
P_Ledger fins_ledger
P_CurrencyRole fac_crcyrole

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PEBOCCOGMHDRITM2 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 (28)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY ControllingArea ControllingArea Controlling Area
KEY ControllingValueType ControllingValueType
KEY CostElement CostElement G/L Account
KEY ControllingKeySubNumber ControllingKeySubNumber
KEY ControllingDebitCreditCode ControllingDebitCreditCode Dr/Cr ind. CO
KEY PartnerAccountAssignment PartnerAccountAssignment Partner Account Assignment
KEY OriginSenderObject OriginSenderObject
KEY CtrlgOriginClassification CtrlgOriginClassification
KEY UnitOfMeasure UnitOfMeasure Unit Protected Qty
KEY SubLedgerAcctLineItemType SubLedgerAcctLineItemType SLALineItemType
KEY IsLotSizeIndependent IsLotSizeIndependent
Plant Valuation Area
Material Vehicle Model
CostOriginGroup Origin Group
PartnerObjectType PartnerObjectType Partner Account Assignment Type
PartnerCostCenter PartnerCostCenter Sender Cost Ctr
PartnerCostCtrActivityType PartnerCostCtrActivityType Partner Cost Center Activity Type
PartnerBusinessProcess Part. Bus. Process
PartnerOrder PartnerOrder Partner Order
OrderID OrderID Order ID
OrderItem OrderItem
OrderCategory OrderCategory Order Category
MfgOrderHasMultipleItems MfgOrderHasMultipleItems
AccountAssignmentType AccountAssignmentType Sndr AcctAssgmt Type
POrderID
POrderItem
AmountInDisplayCurrency AmountInDisplayCurrency

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_COGM_OrderAndItemCosts2.
-- 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: PEBOCCOGMHDRITM2
-- Parameters: P_OrderID : fis_order_number, P_OrderItem : char4, P_FromFiscalYearPeriod : fis_jahrper, P_ToFiscalYearPeriod : fis_jahrper, P_Ledger : fins_ledger, P_CurrencyRole : fac_crcyrole

CREATE VIEW P_EBOC_COGM_OrderAndItemCosts2 AS
SELECT
  CompanyCode,
  ControllingArea,
  ControllingValueType,
  CostElement,
  ControllingKeySubNumber,
  ControllingDebitCreditCode,
  PartnerAccountAssignment,
  OriginSenderObject,
  CtrlgOriginClassification,
  UnitOfMeasure,
  SubLedgerAcctLineItemType,
  IsLotSizeIndependent,
  cast(Plant as werks_d) AS Plant,
  cast(Material as matnr) AS Material,
  cast(CostOriginGroup as fis_hrkft) AS CostOriginGroup,
  PartnerObjectType,
  PartnerCostCenter,
  PartnerCostCtrActivityType,
  cast(PartnerBusinessProcess as par_prznr) AS PartnerBusinessProcess,
  PartnerOrder,
  OrderID,
  OrderItem,
  OrderCategory,
  MfgOrderHasMultipleItems,
  AccountAssignmentType,
  :P_OrderID AS POrderID,
  :P_OrderItem AS POrderItem,
  AmountInDisplayCurrency
FROM P_EBOC_COGM_OrderAndItemCosts1
;