P_EBOrderPlanCost2

DDL: P_EBORDERPLANCOST2 SQL: PEBORDPLNCST2 Type: view COMPOSITE

P_EBOrderPlanCost2 is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_LedgerCompanyCodeCrcyRoles, I_MfgOrdPlngCat, P_EBOrderPlanCost1) and exposes 6 fields with key fields CompanyCode, OrderID, OrderItem.

Data Sources (3)

SourceAliasJoin Type
I_LedgerCompanyCodeCrcyRoles _LedgerCompanyCodeCrcyRole inner
I_MfgOrdPlngCat _PlngCat inner
P_EBOrderPlanCost1 P_EBOrderPlanCost1 from

Parameters (4)

NameTypeDefault
P_Ledger fins_ledger
P_FromFiscalYearPeriod fins_fyearperiod
P_ToFiscalYearPeriod fins_fyearperiod
P_CurrencyRole fis_curtp

Annotations (7)

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

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode PlnStdCost CompanyCode Receiver Company Code
KEY OrderID OrderID Order ID
KEY OrderItem OrderItem
IsLotSizeIndependent IsLotSizeIndependent
ControllingDebitCreditCode ControllingDebitCreditCode Dr/Cr ind. CO
dec148asCostRateFixedAmount

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_EBOrderPlanCost2.
-- 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: PEBORDPLNCST2
-- Parameters: P_Ledger : fins_ledger, P_FromFiscalYearPeriod : fins_fyearperiod, P_ToFiscalYearPeriod : fins_fyearperiod, P_CurrencyRole : fis_curtp

CREATE VIEW P_EBOrderPlanCost2 AS
SELECT
  PlnStdCost.CompanyCode AS CompanyCode,
  OrderID,
  OrderItem,
  IsLotSizeIndependent,
  ControllingDebitCreditCode,
  cast( case when AmountInGlobalCurrency <> 0 then division(FixedAmountInGlobalCrcy, AmountInGlobalCurrency, 8) else 0 end as abap.dec(14, 8) ) as CostRateFixedAmount AS dec148asCostRateFixedAmount
FROM P_EBOrderPlanCost1
INNER JOIN I_MfgOrdPlngCat AS _PlngCat ON /* join condition not captured in parsed metadata */
INNER JOIN I_LedgerCompanyCodeCrcyRoles AS _LedgerCompanyCodeCrcyRole ON /* join condition not captured in parsed metadata */
;