P_CmmdtyPrcFixationOptionPurg

DDL: P_CMMDTYPRCFIXATIONOPTIONPURG SQL: PPRCFIXOPTPUR Type: view BASIC

Cmmdty Price Fixation Option Purchasing

P_CmmdtyPrcFixationOptionPurg is a Basic CDS View that provides data about "Cmmdty Price Fixation Option Purchasing" in SAP S/4HANA. It reads from 14 data sources and exposes 39 fields with key fields PurchasingDocument, PurchasingDocumentItem, ConditionType, PricingConditionTerm. It has 1 association to related views.

Data Sources (14)

SourceAliasJoin Type
ekko ekko inner
ekpo ekpo inner
cped_formdoc formdoc from
cped_knumvtoguid knumvtoguid inner
P_PrcFixationOptionBsHndlgPurg mm_basis left_outer
P_PrcFixationOptionCnvrsnPurg mm_fxrel left_outer
cped_prcfix_def prcfix_def inner
cpec_quotrule quotrule left_outer
cpec_term term left_outer
cped_extension termextension inner
cpec_termgrp termgrp left_outer
cped_termgrpout termgrpout left_outer
cped_terminput terminput left_outer
cped_termout termout left_outer

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_Supplier _Supplier $projection.ActiveSupplier = _Supplier.Supplier

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPRCFIXOPTPUR view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Cmmdty Price Fixation Option Purchasing view
VDM.viewType #BASIC view
VDM.private true view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #MIXED view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument ekko ebeln Source PurchDoc
KEY PurchasingDocumentItem ekpo ebelp Item pur. doc.
KEY ConditionType cped_formdoc cond_type Demurrage rate
KEY PricingConditionTerm cped_extension termno Term Number
termrateendasConditionTermRate
termcurrendasConditionTermRateCurrency
termprunendasConditionTermRateQuantity
PrcgCndnTermFixationOptnStatus cped_prcfix_def prc_fixation_status Price Fix. Status
PrcgCndnTermCnvrsnSourceCrcy PrcgCndnTermCnvrsnSourceCrcy Curr:Conv. from
PrcgCndnTermCnvrsnTargetCrcy PrcgCndnTermCnvrsnTargetCrcy Curr.: Conv. to
CndnTrmFixationOptnNonFixedQty cped_prcfix_def non_fixed_quantity Qty for Price Fix.
TrmFixationOptnNonFixedQtyUnit cped_prcfix_def non_fixed_qty_uom Quantity UoM
PurchasingDocumentCategory ekko bstyp Source doc.cat.
ActiveSupplier lifnr Vendor no.
CompanyCode ekko bukrs Value
PurchasingOrganization ekorg Purchasing Org.
PurchasingGroup ekgrp Sub. purchasing grp
Plant werks Receiving Plant
Material matnr Vehicle Model
PrcgConditionFormulaInputUUID cped_formdoc forminput_guid Doc. Form. GUID
LastChangeDateTime ekko lastchangedatetime Timestamp
CreatedByUser ernam User Name
DocumentDate bedat Start date
dcsid_term cpec_term dcsid DCSID
BusinessPartner
BusinessPartnerName
DataControllerSet
DataController1
DataController2
DataController3
DataController4
DataController5
DataController6
DataController7
DataController8
DataController9
DataController10
AuthorizationGroup
IsBusinessPurposeCompleted

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_CmmdtyPrcFixationOptionPurg.
-- 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: PPRCFIXOPTPUR

CREATE VIEW P_CmmdtyPrcFixationOptionPurg AS
SELECT
  ekko.ebeln AS PurchasingDocument,
  ekpo.ebelp AS PurchasingDocumentItem,
  formdoc.cond_type AS ConditionType,
  termextension.termno AS PricingConditionTerm,
  case when termgrpout.termrate > 0 then termgrpout.termrate else termout.termrate end as ConditionTermRate AS termrateendasConditionTermRate,
  case when termgrpout.termcurr <> '' then termgrpout.termcurr else termout.termcurr end as ConditionTermRateCurrency AS termcurrendasConditionTermRateCurrency,
  case when termgrpout.termprun > 0 then termgrpout.termprun else termout.termprun end as ConditionTermRateQuantity AS termprunendasConditionTermRateQuantity,
  prcfix_def.prc_fixation_status AS PrcgCndnTermFixationOptnStatus,
  PrcgCndnTermCnvrsnSourceCrcy,
  PrcgCndnTermCnvrsnTargetCrcy,
  prcfix_def.non_fixed_quantity AS CndnTrmFixationOptnNonFixedQty,
  prcfix_def.non_fixed_qty_uom AS TrmFixationOptnNonFixedQtyUnit,
  ekko.bstyp AS PurchasingDocumentCategory,
  lifnr AS ActiveSupplier,
  ekko.bukrs AS CompanyCode,
  ekorg AS PurchasingOrganization,
  ekgrp AS PurchasingGroup,
  werks AS Plant,
  matnr AS Material,
  formdoc.forminput_guid AS PrcgConditionFormulaInputUUID,
  ekko.lastchangedatetime AS LastChangeDateTime,
  ernam AS CreatedByUser,
  bedat AS DocumentDate,
  term.dcsid AS dcsid_term,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.BusinessPartner AS BusinessPartner,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.BusinessPartnerName AS BusinessPartnerName,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.DataControllerSet AS DataControllerSet,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.DataController1 AS DataController1,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.DataController2 AS DataController2,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.DataController3 AS DataController3,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.DataController4 AS DataController4,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.DataController5 AS DataController5,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.DataController6 AS DataController6,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.DataController7 AS DataController7,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.DataController8 AS DataController8,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.DataController9 AS DataController9,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.DataController10 AS DataController10,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.AuthorizationGroup AS AuthorizationGroup,
  _Supplier._SupplierToBusinessPartner._BusinessPartner.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted
FROM cped_formdoc AS formdoc
INNER JOIN cped_extension AS termextension ON /* join condition not captured in parsed metadata */
INNER JOIN cped_prcfix_def AS prcfix_def ON /* join condition not captured in parsed metadata */
INNER JOIN cped_knumvtoguid AS knumvtoguid ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN cped_termgrpout AS termgrpout ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN cped_termout AS termout ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN cpec_termgrp AS termgrp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN cpec_term AS term ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN cped_terminput AS terminput ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN cpec_quotrule AS quotrule ON /* join condition not captured in parsed metadata */
INNER JOIN ekko ON /* join condition not captured in parsed metadata */
INNER JOIN ekpo ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_PrcFixationOptionBsHndlgPurg AS mm_basis ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_PrcFixationOptionCnvrsnPurg AS mm_fxrel ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Supplier AS _Supplier ON ActiveSupplier = _Supplier.Supplier  -- association [1..1]
;