I_PrepaymentDocCmmdtyPrcgData

DDL: I_PREPAYMENTDOCCMMDTYPRCGDATA Type: view_entity BASIC

PPMT Document Commodity Pricing data

I_PrepaymentDocCmmdtyPrcgData is a Basic CDS View that provides data about "PPMT Document Commodity Pricing data" in SAP S/4HANA. It reads from 3 data sources (cped_knumvtoguid, cped_formdoc, prcd_elements) and exposes 36 fields with key fields PrepaymentRefDocCondition, PrepaymentRefDocConditionItem, ConditionType.

Data Sources (3)

SourceAliasJoin Type
cped_knumvtoguid ConditionToGUID from
cped_formdoc FormDocument inner
prcd_elements PricingElements inner

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label PPMT Document Commodity Pricing data view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (36)

KeyFieldSource TableSource FieldDescription
KEY PrepaymentRefDocCondition cped_knumvtoguid knumv Doc. Condition
KEY PrepaymentRefDocConditionItem cped_knumvtoguid kposn Number
KEY ConditionType cped_formdoc cond_type Demurrage rate
DocItemCommodityPricingUUID cped_knumvtoguid docitem_guid GUID
CommodityPricingConditionType CPExt cond_type Demurrage rate
MarketConditionType TermOut cond_type Demurrage rate
PricingCndnTermExtensionGroup TermOut extension_group Extension Group
PricingConditionFormulaKey cped_formdoc formid Modules
PricingConditionTermKey TermGrpOut termid Term Key
ConditionTermExtensionUsage TermGrpOut extension_usage Extension Usage
BasisID
keydateendasMaturityKeyDate
datsendasCalculationPeriodEndDate
PrcgCndnFmlaCommodityQuantity cped_formdoc formcommquan Comm.Qty Item
PrcgCndnFmlaCmmdtyQuantityUnit cped_formdoc formcommuom Commodity UoM
PrepaymentRefDocFixedPrice TermGrpOut termval Term Value
PrepaymentRefDocFixedPriceCrcy cped_formdoc doccurr Doc. Currency
CalcdPrcgConditionTermQuantity TermGrpOut usedquan Commodity Quantity
PrepaymentDocCmmdtyMktQtyUnit TermGrpOut useduom Calc. Comm. UoM
ConditionTermStatus TermGrpOut termstatus Term Status
ACMPrcgCndnTermInputPrice TermInput fixtermrate Fixed Rate
PrcgCndnFmlaFixedRateCurrency TermInput fixtermcurr Currency Fixed Rate
DerivativeContrSpecification TermInput dcsid DCSID
MarketIdentifierCode TermInput mic MIC
BasisType TermInput basis_type Basis Type
QuotationPriceType TermInput pricetype Price Type
ConditionTermRate TermOut termrate Term Rate
ConditionTermRateCurrency TermOut termcurr Term Currency
PrcgCndnTermCnvrsnFxdExchRate
PrcgCndnTermCnvrsnSourceCrcy TermConvOut usedcurrfrom Curr:Conv. from
PrcgCndnTermCnvrsnTargetCrcy TermConvOut usedcurrto Curr.: Conv. to
PricingConditionTermInputUUID TermGrpOut terminput_guid Term Input GUID
PrcgCndnTermFixationOptnStatus PrcFixDef prc_fixation_status Price Fix. Status
CndnTrmFixationOptnNonFixedQty PrcFixDef non_fixed_quantity Qty for Price Fix.
TrmFixationOptnNonFixedQtyUnit PrcFixDef non_fixed_qty_uom Quantity UoM
MTMCalculationGroupBBasis

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_PrepaymentDocCmmdtyPrcgData.
-- 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_PrepaymentDocCmmdtyPrcgData AS
SELECT
  ConditionToGUID.knumv AS PrepaymentRefDocCondition,
  ConditionToGUID.kposn AS PrepaymentRefDocConditionItem,
  FormDocument.cond_type AS ConditionType,
  ConditionToGUID.docitem_guid AS DocItemCommodityPricingUUID,
  CPExt.cond_type AS CommodityPricingConditionType,
  TermOut.cond_type AS MarketConditionType,
  TermOut.extension_group AS PricingCndnTermExtensionGroup,
  FormDocument.formid AS PricingConditionFormulaKey,
  TermGrpOut.termid AS PricingConditionTermKey,
  TermGrpOut.extension_usage AS ConditionTermExtensionUsage,
  coalesce( TermOut.basis_id, TermGrpOut.basis_id ) AS BasisID,
  case when TermOut.keydate is not initial then TermOut.keydate when TermGrpOut.keydate is not initial then TermGrpOut.keydate end as MaturityKeyDate AS keydateendasMaturityKeyDate,
  case when TermOut.keydate is initial then cast( left( PeriodOut.lasttimestamp, 8) as abap.dats ) else cast( '00000000' as abap.dats ) end as CalculationPeriodEndDate AS datsendasCalculationPeriodEndDate,
  FormDocument.formcommquan AS PrcgCndnFmlaCommodityQuantity,
  FormDocument.formcommuom AS PrcgCndnFmlaCmmdtyQuantityUnit,
  TermGrpOut.termval AS PrepaymentRefDocFixedPrice,
  FormDocument.doccurr AS PrepaymentRefDocFixedPriceCrcy,
  TermGrpOut.usedquan AS CalcdPrcgConditionTermQuantity,
  TermGrpOut.useduom AS PrepaymentDocCmmdtyMktQtyUnit,
  TermGrpOut.termstatus AS ConditionTermStatus,
  TermInput.fixtermrate AS ACMPrcgCndnTermInputPrice,
  TermInput.fixtermcurr AS PrcgCndnFmlaFixedRateCurrency,
  TermInput.dcsid AS DerivativeContrSpecification,
  TermInput.mic AS MarketIdentifierCode,
  TermInput.basis_type AS BasisType,
  TermInput.pricetype AS QuotationPriceType,
  TermOut.termrate AS ConditionTermRate,
  TermOut.termcurr AS ConditionTermRateCurrency,
  coalesce(TermConvOut.usedexchrate, 1) AS PrcgCndnTermCnvrsnFxdExchRate,
  TermConvOut.usedcurrfrom AS PrcgCndnTermCnvrsnSourceCrcy,
  TermConvOut.usedcurrto AS PrcgCndnTermCnvrsnTargetCrcy,
  TermGrpOut.terminput_guid AS PricingConditionTermInputUUID,
  PrcFixDef.prc_fixation_status AS PrcgCndnTermFixationOptnStatus,
  PrcFixDef.non_fixed_quantity AS CndnTrmFixationOptnNonFixedQty,
  PrcFixDef.non_fixed_qty_uom AS TrmFixationOptnNonFixedQtyUnit
FROM cped_knumvtoguid AS ConditionToGUID
INNER JOIN cped_formdoc AS FormDocument ON /* join condition not captured in parsed metadata */
INNER JOIN prcd_elements AS PricingElements ON /* join condition not captured in parsed metadata */
;