I_CmmdtyPricingConditionTerm

DDL: I_CMMDTYPRICINGCONDITIONTERM Type: view_entity BASIC Package: LOG_CMM_PRC_FORMULA_VDM

CPE Condition Term

I_CmmdtyPricingConditionTerm is a Basic CDS View that provides data about "CPE Condition Term" in SAP S/4HANA. It reads from 1 data source (cpe_term) and exposes 235 fields with key fields DocItmCmmdtyPrcgCndnUUID, PricingConditionTerm. It has 1 association to related views. Part of development package LOG_CMM_PRC_FORMULA_VDM.

Data Sources (1)

SourceAliasJoin Type
cpe_term cpe_term from

Associations (1)

CardinalityTargetAliasCondition
[0..1] E_CmmdtyPricingConditionTerm _ConditionTermExtension $projection.DocItmCmmdtyPrcgCndnUUID = _ConditionTermExtension.DocItmCmmdtyPrcgCndnUUID and $projection.PricingConditionTerm = _ConditionTermExtension.PricingConditionTerm

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label CPE Condition Term view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.representativeKey DocItmCmmdtyPrcgCndnUUID view
ObjectModel.sapObjectNodeType.name CmmdtyPricingConditionRootTerm view

Fields (235)

KeyFieldSource TableSource FieldDescription
KEY DocItmCmmdtyPrcgCndnUUID docitemcond_guid Doc. Cond. Item GUID
KEY PricingConditionTerm termno Term Number
DocItemCommodityPricingUUID docitem_guid GUID
ConditionType cond_type Demurrage rate
PrcgConditionFormulaInputUUID forminput_guid Doc. Form. GUID
PricingConditionTermInputUUID terminput_guid Term Input GUID
PrcgCndnTrmConversionInputUUID termconvin_guid ConvInputGUID
PrcgCndnTermRoundingInputUUID termroundin_guid Rnd Input GUID
CndnTrmQtnPerdDetnInputUUID perdtin_guid_q PerDet.InpGUIDQuot
PrcgCndnTrmQtnPerdDetnRoutine perioddetrout_q Period Det.Rtne.Quot
PrcgCndnTrmQtnSrceRoutine sourcerout_q Source Routine Quot
TrmQtnPerdDetnRefDateRoutine refdaterout_q Ref.DateRoutineQuot.
TrmQtnPerdDetnDteOffsetRoutine dateoffsetrout_q DateOffsetRtne.Quot
TrmQtnNrOfTmeUnitsForDteOffset offsetunits_q No. Time Units Quot.
TrmQtnPerdDetnTimeUnitRoutine timeuomrout_q TimeUoMRoutineQuot.
TrmQtnNrOfBfrBaseDateTmeUnits timeunitsbef_q Time Units Before Q
TrmQtnNrOfAftBaseDateTmeUnits timeunitsaft_q TimeUnitsAfterQuot.
CndnTrmQtnBaseDateIsExcluded excl_basedate_q ExcludeBaseDateQuot.
PrcgCndnTrmQtnFxdPeriodStrtDte datefrom_q Quot. Fx. Start Date
PrcgCndnTrmQtnFxdPeriodStrtTme timefrom_q FixedStartTimeQuot.
PrcgCndnTrmQtnFxdPeriodEndDate dateto_q Quot. Fx. End Date
PrcgCndnTrmQtnFxdPeriodEndTime timeto_q Fixed End Time Quot.
TrmQtnPerdDetnDateListRoutine datelistrout_q Date List Routine Q
PrcgCndnTrmQtnPerdDetnCalender perdetcalid_q QPrd. Det. Calendar
TrmQtnPerdDetnMisgEntrRoutine missentryrout_q Miss. Entry QRtn.
TrmQtnClosedMarketDaysRoutine closeddaysrout_q Closed Days Rtine. Q
TrmQtnMaxElementWeightingValue maxweighting_q Max. Weighting Quot
CndnTrmCrcyPerdDetnInputUUID perdtin_guid_c PerDet.InpGUIDCurr
PrcgCndnTrmCrcyPerdDetnRoutine perioddetrout_c Period Det.Rtne.Curr
PrcgCndnTrmExchRateSrceRoutine sourcerout_c Source Routine Curr.
TrmCrcyPerdDetnRefDateRoutine refdaterout_c Ref.DateRoutineCurr.
TrmCrcyPerdDetnDteOffstRoutine dateoffsetrout_c DateOffsetRtne.Curr
TrmExchRatesNrOfUnitsDteOffst offsetunits_c No. Time Units Curr.
TrmCrcyPerdDetnTimeUnitRoutine timeuomrout_c TimeUoMRoutineCurr.
ExchRateNrOfBfrBaseDteTmeUnits timeunitsbef_c Time Units Before C
ExchRateNrOfAftBaseDteTmeUnits timeunitsaft_c TimeUnitsAfterCurr.
CndnTrmExchRatesBaseDteIsExcld excl_basedate_c ExcludeBaseDateCurr.
CndnTrmExchRatesFxdPerdStrtDte datefrom_c Exch. Fx. Start Date
CndnTrmExchRatesFxdPerdStrtTme timefrom_c FixedStartTimeCurr.
CndnTrmExchRatesFxdPerdEndDate dateto_c Exch. Fx. End Date
CndnTrmExchRatesFxdPerdEndTime timeto_c Fixed End Time Curr.
TrmCrcyPerdDetnDateListRoutine datelistrout_c Date List Routine C
PrcgCndnTrmCrcyPerdDetnCal perdetcalid_c CPrd. Det. Calendar
TrmCrcyPerdDetnMisgEntrRoutine missentryrout_c Miss. Entry CRtn.
TrmExchRatesClsdMktDaysRoutine closeddaysrout_c Closed Days Rtine. C
TrmExchRatesMaxElmntWgtngValue maxweighting_c Max. Weighting Curr
PrcgCndnTermConversionRsltUUID termconvout_guid ConvResultGUID
CndnTrmQtanPerdDetnResultUUID perdtout_guid_q PerDet.Out.GUIDQuot
CndnTrmQtnPerdDetnIsIncomplete incomplete_q Incomplete Quotation
PrcgCndnTrmQtnPerdDetnStatus periodstatus_q Status QuoPerDeterm.
CndnTrmQtnPerdDetnStartDteTime Begin of QuotPeriod.
CndnTrmQtnPerdDetnEndDateTime End of QuotPeriod.
TrmQtnFoundLastEntryDateTme Last QuotEntryFound.
TrmQtnPerdDetnCalcdRefDate refdate_q Quot. Reference Date
TrmQtnPerdDetnCalcdBaseDteTme Calcltd QBase. Date
TrmQtnPerdDetnCalcdRefDateTime Ref. Quot. Date Time
CndnTrmCrcyPerdDetnResultUUID perdtout_guid_c PerDet.Out.GUIDCurr
CndnTrmCrcyPerdDetnIsIncmplt incomplete_c Incomplete Currency
PrcgCndnTrmCrcyPerdDetnStatus periodstatus_c Status CurPerDeterm.
CndnTrmCrcyPerdDetnStartDteTme Begin of CurrPeriod.
CndnTrmCrcyPerdDetnEndDateTime End of CurrPeriod.
TrmExchRatesFndnLastEntrDteTme Last CurrEntryFound.
TrmCrcyPerdDetnCalcdRefDate refdate_c Curr. Reference Date
TrmCrcyPerdDetnCalcdBaseDteTme Calcltd CBase. Date
TrmCrcyPerdDetnCalcdRefDteTime Ref. Curr. Date Time
PrcgCndnTrmPrFixationOptnUUID ref_guid_prcfix Prc Fixation GUID
PricingConditionTermTierUUID ref_guid_tier Tier GUID
CalcdPrcgConditionTermQuantity usedquan Commodity Quantity
CalcdPrcgCndnTermQuantityUnit useduom Calc. Comm. UoM
ConditionTermStatus termstatus Term Status
BillingBlockingReason billing_block Blocking Reason
ConditionTermRateCurrency termcurr Term Currency
ConditionTermRateQuantity termprun Term Price Unit
ConditionTermRateQuantityUnit termuom Term UoM
PrcgCndnUsedEvalKeyDateTime Eval. Key Date
PrcgCndnCommodityCurveDate curve_date Curve Date
ConditionTermRate termrate_df34 CPE - Used for internal calculation (rounding, conversion)
ConditionTermValue termval_df34 Term Value
PrcgConditionTermQuotationRate quotation_df34 Price Quotation
PrcgCndnTrmQtanRateCurrency quotcurr QtnGrpCurr
PrcgCndnTrmQtanRateQuantity quotprun Quotation PU
PrcgCndnTrmQtanRateQtyUnit quotuom QuotGroup UoM
PrcgCndnQtanGroupQuotationKey quotkey_grp Quotation Key
PrcgCndnTrmUsedLimitOfCalcRule calc_limitused CalcRule: Limit
PrcgCndnQtnHasQtyUoMSubstn quot_uomsubst UoM Subst. Quot
PrcgConditionTermSurchargeRate surchargerate_df34 Total Surcharge
PrcgCndnTrmSurchargeRteCrcy surchratecurr AbsSurchCurr
PrcgCndnTrmSurchargeRteQty surchrateprun AbsSurch PU
PrcgCndnTrmSurchargeRteQtyUnit surchrateuom AbsSurchUoM
PrcgCndnSurchrgHasQtyUoMSubstn surch_uomsubst UoM Subst. Sur
PricingCndnTermExtensionGroup extension_group Extension Group
ConditionTermExtensionUsage extension_usage Extension Usage
PrcgCndnBsIdnIsMnllySelected is_basis_id_manual Manual Basis ID
BasisID basis_id Strategy
CmmdtyPrcgFutureConditionType fut_kschl Condition Type
CmmdtyPrcgFutureTerm fut_termno Term Number
CmmdtyPricingFlatGroupDateTime flat_grp_timestamp Time Stamp
PrcgCndnTermRelForFormulaRslt formres_rel Rel.for FormRes.
DerivativeContractSpecCategory Derivative Category
MaturityKeyDate keydate Maturity Key Date
PricingConditionTermKey termid Term Key
PricingConditionTermGroup termgroup Term Group
PrcgCndnTermIsUsedForPrvsnPrcg provis ProvPricing only
PrcgConditionProvisionalTerm provtermno Prov.Term No.
PrcgConditionTermFirstFactor factor1 Factor 1
PrcgConditionTermSecondFactor factor2 Factor 2
PrcgCndnTermPercentageFactor percentage Well Contribution Percentage
PricingConditionTermQuantity termcommquan Commodity Qty
PricingConditionTrmQtyUnit termcommuom Comm. Qty UoM
PrcgCndnTermCalculationType termtype Term Type
PricingConditionTermRule termrule Term Rule
PrcgCndnTrmOrignDocCategory refdoccat Ref. Doc. Category
PrcgCndnTermOriginDocument refdoc Reference Doc
PrcgCndnTermOriginDocumentItem refitem Single-Character Flag
PrcgCndnTrmOrignDocItemUUID refguid Reference GUID
PrcgCndnTrmOriginConditionType refcond Ref. Condition Type
PrcgConditionTermFixedRateCrcy fixtermcurr Currency Fixed Rate
PrcgConditionTermFixedRateQty fixtermprun PrcUnit Fixed Value
PrcgCndnTermFixedRateQtyUnit fixtermuom UoM for Fixed Value
PrcgCndnTermFreeDefinedValue userval1 Free Field
PrcgCndnTermFreeDefinedQtyUoM useruom1 Free UoM
PricingConditionQuotationKey quotkey Quotation Key
DerivativeContrSpecification dcsid DCSID
MarketIdentifierCode mic MIC
TimeToMaturity tenor Time to Maturity
PriceQuotationType pricetype Price Type
CommodityCurveType curve_type Cty Curve Type
AltvDrvtvContractSpecification curve_dcsid DCS ID
AltvMarketIdentifierCode curve_mic MIC
MaturitySelectionType dcs_selection_type Maturity Sel. Type
CmmdtyForwardIndexTiming timing Timing
TrmMaturitySelRefDateRoutine keydate_refdate_rout Maturity Ref.Date
PrcgCndnTrmMaturitySelRoutine keydate_selection_rout Maturity Sel. Rt.
CndnTrmPerdDetnDteOffstRoutine keydate_offset_rout Date Offset Routine
DteOffsetRoutineTimeUnitAmount keydate_offset_units No. Time Units
DCSPeriodType dcs_period_type Period Type
BasisType basis_type Basis Type
PricingCndnTermQuotationGroup quotgroup Quotation Group
PrcgCndnTermQuotationRule quotationrule Quotation Rule
PrcgCndnTermCalculationRule calcrule Calculation Rule
PrcgConditionTermSurchargeRule surchargerule Surcharge Rule
PrcgCndnTrmQtnPerdDetnRule perdetrule_q Period Det.Rule
PrcgCndnTrmCrcyPerdDetnRule perdetrule_c PerDetRule Curr
PrcgCndnTrmPrFixationOptnRule pricefixrule Price Fixation Rule
PrcgCndnTermCalculationRoutine calcrout Calculation Routine
PrcgCndnTrmCalcLmtRateCurrency calcmmcurr Curr. of Limits
PrcgCndnTrmCalcLmtRateQuantity calcmmprun PUnit of Limits
PrcgCndnTrmCalcLmtRateQtyUnit calcmmuom UoM:Rate Limits
PrcgCndnTermSurchargeRoutine surchargerout Surcharge Routine
PrcgCndnTrmAbsltSurchrgAmount surchargeabs_df34 Absolute Surcharge
PrcgCndnTermAbsltSurchrgCrcy surchargecurr CurrAbsSurch
PrcgCndnTrmAbsltSurchrgPrQty surchargeprun PU AbsSurch
PrcgCndnTrmAbsltSurchrgQtyUnit surchargeuom UoM AbsSurch.
PrcgCndnTrmSurchrgFirstFactor surchargefactor1 Factor 1: Surch
PrcgCndnTrmSurchrgSecondFactor surchargefactor2 Factor 2: Surch
PrcgConditionTermDescription termtext Text
PrcgCndnLtstEvalKeyDateRoutine forecast_date_routine Latest Eval. Date R.
PrcgCndnTermMinCmmdtyCalcRate calcmin_df34 Minimum Rate
PrcgCndnTermMaxCmmdtyCalcRate calcmax_df34 Maximum Rate
PricingConditionTermFixedRate fixtermrate_df34 Fixed Rate
PrcgCndnTrmRateCrtnDateTime Created at
PrcgCndnTermRateCreatedByUser rate_created_by Created by
PrcgCndnTrmRateChangeDateTime Changed At
PrcgCndnTermRateChangedByUser rate_changed_by Changed By
PrcgCndnTrmPrSettingMethodUUID psmguid PSM GUID
PrcgCndnTermPriceSettingMethod psmethod Price Setting Method
PrcgCndnTrmPrSttgMethodStatus psmstatus PSM Status
PrcgCndnTermCmmdtySubAccount commoditysubaccount Subaccount ID
PrcgConditionTermNumberOfLots number_of_lots Lots
PrcgCndnDrvtvOrdFillPacketUUID fillpacketuuid Key
PrcgCndnTrmPrSttgMethHasError psm_simulation_error Prcg Setting Error
PrcgCndnDrvtvOrdReqExpryInstrn exprtninstruction Expiry Instruction
PrcgCndnOrdReqPrcgExecInstrn prcgexecinstrn Prc/Exec Instruction
PrcgCndnDrvtvOrdReqLimitPrice lmtprc Limit Price
PrcgCndnDrvtvOrdReqLmtPrcCrcy lmtprccurrency Limit Price Crcy
PrcgCndnDrvtvOrdReqStopPrice stopprice Stop Price
PrcgCndnDrvtvOrdReqStopPrcCrcy stoppricecrcy Stop Price Crcy
CndnDrvtvOrdReqStopLimitPrice stoplmtprc Stop Limit Price
CndnDrvtvOrdReqStopLmtPrcCrcy stoplmtprccurrency Stop Limit Prc Crcy
CndnDrvtvOrdReqReqdFxdPrice fxdprc Requested Price
CndnDrvtvOrdReqReqdFxdPrcCrcy fxdprccrcy Requested Price Crcy
DrvtvOrdReqReqdLeewayPrice leewayprc Requested Price
DrvtvOrdReqReqdLeewayPriceCrcy leewayprccrcy Requested Price Crcy
CndnDrvtvOrdReqLeewayPrice leewayrngeprc Leeway Price
CndnDrvtvOrdReqLeewayPrcCrcy leewayrngeprccrcy Leeway Prc Crcy
PrcgCndnDrvtvOrdReqExprtnDate expirationdate Expiratn Date
CndnDrvtvOrdReqLmtSpreadVal lmtspreadprc Limit Spread Value
CndnDrvtvOrdReqLmtSpreadPrCrcy lmtspreadprccrcy Lim Spread Prc Crcy
DrvtvOrdReqReqdFxdSpreadPrice fxdspreadprc Requested Spread Prc
DrvtvOrdReqReqdFxdSpreadPrCrcy fxdspreadprccrcy Rqstd Spr Prc Crcy
CndnNrOfDrvtvOrderRequestTicks ticks Order Request Ticks
PrcgCndnTrmCtptyBrokerName cmmdtyordreqcntrptybroker Counterparty Broker
PrcgCndnTrmRefBrokerAccount cmmdtyordreqcntrptyrefacct Reference Account
PrcgCndnTermSavedFixedRate savetermrate_df34 Fixed Rate
PrcgCndnTermSavedFixedRateCrcy savetermcurr Currency Fixed Rate
TrmOptnErlstExerDateRoutine exer_date_early_rout Earl. Exc. Date Rtn
TrmFixationOptnErlstExerDate exer_date_earliest Earliest Exc. Date
TrmOptnErlstExerRefDteRoutine exer_date_earliest_ref_date_rt Ref. Date Routine
TrmOptnLtstExerciseDateRoutine exer_date_latest_rout Latest Exc. Date Rtn
TrmFixationOptnLtstExerDate exer_date_latest Latest Exercise Date
TrmOptnLtstExerRefDteRoutine exer_date_latest_ref_date_rt Ref. Date Routine
PrcgCndnTermQtyDistrRoutine quantity_distr_rout Qty. Distr. Routine
TermFixationOptionFixationQty quantity_ref Qty for Price Fix.
TrmFixationOptnFixationQtyUnit quantity_ref_uom Quantity UoM
CndnTrmFixationOptnLmtRoutine limit_rout Limit Routine
CndnTermFixationOptionLimitQty limit_quantity Limit Quantity
TrmFixationOptionLimitQtyUnit limit_quantity_uom Limit Qty UoM
TrmFixationOptnLmtFirstFactor limit_factor_1 Limit Factor 1
TrmFixationOptnLmtSecondFactor limit_factor_2 Limit Factor 2
CndnTrmNonFixedQtyRefPrRoutine price_ref_rout Ref. Price Routine
CndnTrmTierDefRefDteRoutine tier_ref_date_rout Ref. Date Routine
PrcgCndnTermFixationOptnStatus prc_fixation_status Price Fix. Status
CndnTrmFixationOptnNonFixedQty non_fixed_quantity Qty for Price Fix.
TrmFixationOptnNonFixedQtyUnit non_fixed_qty_uom Quantity UoM
CndnTrmFixationOptnRsltLmtQty limit_quantity_out Limit Quantity
TrmFixationOptnRsltLmtQtyUnit limit_quantity_uom_out Limit Qty UoM
CndnTrmFixationOptnComment option_comment_short Comment
PricingConditionTermTier tierno Tier Number
PrcgConditionTermTierStartDate date_from Validity Start Date
PrcgConditionTermTierEndDate date_to Validity End Date
PrcgConditionTermTierUpperQty qty_to Quantity Up To
PrcgConditionTermTierQtyUnit uom UoM: Conv. to
PrcgCndnTermHasPriceFixation pricefixationexists PrcFix Option Exists
CmmdtyPrcgCndnTrmMttyRefDate maturity_reference_date Maturity Ref Date
PrcgCndnTrmMttyCalcdBaseDate maturity_calculated_base_date Mtrty Calc Base Date
BasisInputHashIdentifier basis_id_input_hash BasisID Input Hash
PrcgCndnTrmQtnCurrencyRate termrate_in_quotcurr Trm Rate in Quot cur
CmPrcgPrcFixationSetCompUUID prcfixsetcomp_guid Prc Fix Set Comp ID
PrcgCndnTrmActualQtanCurrency term_actual_quot_curr Actual Quot Curr
CmmdtyPrcFixedRateIsMaintained prcfixratemaintained Truth Value
PrcgCndnTrmQtanGroupCurrency quotation_group_currency QtnGrpCurr
PrcgCndnTrmQtanGrpRateQuantity quotation_group_price_unit PrUnit QuotGrp
PrcgCndnTrmQtanGrpRateQtyUnit quotation_group_uom QuotGroup UoM
PricingConditionTermHasSpread spreadrequest Flag
PrcgCndnTermOriglMttyKeyDate originalmaturitykeydate Maturity Key Date

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_CmmdtyPricingConditionTerm.
-- 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_CmmdtyPricingConditionTerm AS
SELECT
  docitemcond_guid AS DocItmCmmdtyPrcgCndnUUID,
  termno AS PricingConditionTerm,
  docitem_guid AS DocItemCommodityPricingUUID,
  cond_type AS ConditionType,
  forminput_guid AS PrcgConditionFormulaInputUUID,
  terminput_guid AS PricingConditionTermInputUUID,
  termconvin_guid AS PrcgCndnTrmConversionInputUUID,
  termroundin_guid AS PrcgCndnTermRoundingInputUUID,
  perdtin_guid_q AS CndnTrmQtnPerdDetnInputUUID,
  perioddetrout_q AS PrcgCndnTrmQtnPerdDetnRoutine,
  sourcerout_q AS PrcgCndnTrmQtnSrceRoutine,
  refdaterout_q AS TrmQtnPerdDetnRefDateRoutine,
  dateoffsetrout_q AS TrmQtnPerdDetnDteOffsetRoutine,
  offsetunits_q AS TrmQtnNrOfTmeUnitsForDteOffset,
  timeuomrout_q AS TrmQtnPerdDetnTimeUnitRoutine,
  timeunitsbef_q AS TrmQtnNrOfBfrBaseDateTmeUnits,
  timeunitsaft_q AS TrmQtnNrOfAftBaseDateTmeUnits,
  excl_basedate_q AS CndnTrmQtnBaseDateIsExcluded,
  datefrom_q AS PrcgCndnTrmQtnFxdPeriodStrtDte,
  timefrom_q AS PrcgCndnTrmQtnFxdPeriodStrtTme,
  dateto_q AS PrcgCndnTrmQtnFxdPeriodEndDate,
  timeto_q AS PrcgCndnTrmQtnFxdPeriodEndTime,
  datelistrout_q AS TrmQtnPerdDetnDateListRoutine,
  perdetcalid_q AS PrcgCndnTrmQtnPerdDetnCalender,
  missentryrout_q AS TrmQtnPerdDetnMisgEntrRoutine,
  closeddaysrout_q AS TrmQtnClosedMarketDaysRoutine,
  maxweighting_q AS TrmQtnMaxElementWeightingValue,
  perdtin_guid_c AS CndnTrmCrcyPerdDetnInputUUID,
  perioddetrout_c AS PrcgCndnTrmCrcyPerdDetnRoutine,
  sourcerout_c AS PrcgCndnTrmExchRateSrceRoutine,
  refdaterout_c AS TrmCrcyPerdDetnRefDateRoutine,
  dateoffsetrout_c AS TrmCrcyPerdDetnDteOffstRoutine,
  offsetunits_c AS TrmExchRatesNrOfUnitsDteOffst,
  timeuomrout_c AS TrmCrcyPerdDetnTimeUnitRoutine,
  timeunitsbef_c AS ExchRateNrOfBfrBaseDteTmeUnits,
  timeunitsaft_c AS ExchRateNrOfAftBaseDteTmeUnits,
  excl_basedate_c AS CndnTrmExchRatesBaseDteIsExcld,
  datefrom_c AS CndnTrmExchRatesFxdPerdStrtDte,
  timefrom_c AS CndnTrmExchRatesFxdPerdStrtTme,
  dateto_c AS CndnTrmExchRatesFxdPerdEndDate,
  timeto_c AS CndnTrmExchRatesFxdPerdEndTime,
  datelistrout_c AS TrmCrcyPerdDetnDateListRoutine,
  perdetcalid_c AS PrcgCndnTrmCrcyPerdDetnCal,
  missentryrout_c AS TrmCrcyPerdDetnMisgEntrRoutine,
  closeddaysrout_c AS TrmExchRatesClsdMktDaysRoutine,
  maxweighting_c AS TrmExchRatesMaxElmntWgtngValue,
  termconvout_guid AS PrcgCndnTermConversionRsltUUID,
  perdtout_guid_q AS CndnTrmQtanPerdDetnResultUUID,
  incomplete_q AS CndnTrmQtnPerdDetnIsIncomplete,
  periodstatus_q AS PrcgCndnTrmQtnPerdDetnStatus,
  cast( firsttimestamp_q as cpet_firsttimestamp_cds preserving type ) AS CndnTrmQtnPerdDetnStartDteTime,
  cast( lasttimestamp_q as cpet_lasttimestamp_cds preserving type ) AS CndnTrmQtnPerdDetnEndDateTime,
  cast( lastfounddate_q as cpet_lastfoundtimestamp_cds preserving type ) AS TrmQtnFoundLastEntryDateTme,
  refdate_q AS TrmQtnPerdDetnCalcdRefDate,
  cast( basedate_q as cpet_basetimestamp_cds preserving type ) AS TrmQtnPerdDetnCalcdBaseDteTme,
  cast( reftimestamp_q as cpet_reftimestamp_cds preserving type ) AS TrmQtnPerdDetnCalcdRefDateTime,
  perdtout_guid_c AS CndnTrmCrcyPerdDetnResultUUID,
  incomplete_c AS CndnTrmCrcyPerdDetnIsIncmplt,
  periodstatus_c AS PrcgCndnTrmCrcyPerdDetnStatus,
  cast( firsttimestamp_c as cpet_firsttimestamp_cds preserving type ) AS CndnTrmCrcyPerdDetnStartDteTme,
  cast( lasttimestamp_c as cpet_lasttimestamp_cds preserving type ) AS CndnTrmCrcyPerdDetnEndDateTime,
  cast( lastfounddate_c as cpet_lastfoundtimestamp_cds preserving type ) AS TrmExchRatesFndnLastEntrDteTme,
  refdate_c AS TrmCrcyPerdDetnCalcdRefDate,
  cast( basedate_c as cpet_basetimestamp_cds preserving type ) AS TrmCrcyPerdDetnCalcdBaseDteTme,
  cast( reftimestamp_c as cpet_reftimestamp_cds preserving type ) AS TrmCrcyPerdDetnCalcdRefDteTime,
  ref_guid_prcfix AS PrcgCndnTrmPrFixationOptnUUID,
  ref_guid_tier AS PricingConditionTermTierUUID,
  usedquan AS CalcdPrcgConditionTermQuantity,
  useduom AS CalcdPrcgCndnTermQuantityUnit,
  termstatus AS ConditionTermStatus,
  billing_block AS BillingBlockingReason,
  termcurr AS ConditionTermRateCurrency,
  termprun AS ConditionTermRateQuantity,
  termuom AS ConditionTermRateQuantityUnit,
  cast( forecast_datetime as cpet_used_eval_key_date_cds preserving type ) AS PrcgCndnUsedEvalKeyDateTime,
  curve_date AS PrcgCndnCommodityCurveDate,
  termrate_df34 AS ConditionTermRate,
  termval_df34 AS ConditionTermValue,
  quotation_df34 AS PrcgConditionTermQuotationRate,
  quotcurr AS PrcgCndnTrmQtanRateCurrency,
  quotprun AS PrcgCndnTrmQtanRateQuantity,
  quotuom AS PrcgCndnTrmQtanRateQtyUnit,
  quotkey_grp AS PrcgCndnQtanGroupQuotationKey,
  calc_limitused AS PrcgCndnTrmUsedLimitOfCalcRule,
  quot_uomsubst AS PrcgCndnQtnHasQtyUoMSubstn,
  surchargerate_df34 AS PrcgConditionTermSurchargeRate,
  surchratecurr AS PrcgCndnTrmSurchargeRteCrcy,
  surchrateprun AS PrcgCndnTrmSurchargeRteQty,
  surchrateuom AS PrcgCndnTrmSurchargeRteQtyUnit,
  surch_uomsubst AS PrcgCndnSurchrgHasQtyUoMSubstn,
  extension_group AS PricingCndnTermExtensionGroup,
  extension_usage AS ConditionTermExtensionUsage,
  is_basis_id_manual AS PrcgCndnBsIdnIsMnllySelected,
  basis_id AS BasisID,
  fut_kschl AS CmmdtyPrcgFutureConditionType,
  fut_termno AS CmmdtyPrcgFutureTerm,
  flat_grp_timestamp AS CmmdtyPricingFlatGroupDateTime,
  formres_rel AS PrcgCndnTermRelForFormulaRslt,
  cast (dcs_type as cds_dcs_category) AS DerivativeContractSpecCategory,
  keydate AS MaturityKeyDate,
  termid AS PricingConditionTermKey,
  termgroup AS PricingConditionTermGroup,
  provis AS PrcgCndnTermIsUsedForPrvsnPrcg,
  provtermno AS PrcgConditionProvisionalTerm,
  factor1 AS PrcgConditionTermFirstFactor,
  factor2 AS PrcgConditionTermSecondFactor,
  percentage AS PrcgCndnTermPercentageFactor,
  termcommquan AS PricingConditionTermQuantity,
  termcommuom AS PricingConditionTrmQtyUnit,
  termtype AS PrcgCndnTermCalculationType,
  termrule AS PricingConditionTermRule,
  refdoccat AS PrcgCndnTrmOrignDocCategory,
  refdoc AS PrcgCndnTermOriginDocument,
  refitem AS PrcgCndnTermOriginDocumentItem,
  refguid AS PrcgCndnTrmOrignDocItemUUID,
  refcond AS PrcgCndnTrmOriginConditionType,
  fixtermcurr AS PrcgConditionTermFixedRateCrcy,
  fixtermprun AS PrcgConditionTermFixedRateQty,
  fixtermuom AS PrcgCndnTermFixedRateQtyUnit,
  userval1 AS PrcgCndnTermFreeDefinedValue,
  useruom1 AS PrcgCndnTermFreeDefinedQtyUoM,
  quotkey AS PricingConditionQuotationKey,
  dcsid AS DerivativeContrSpecification,
  mic AS MarketIdentifierCode,
  tenor AS TimeToMaturity,
  pricetype AS PriceQuotationType,
  curve_type AS CommodityCurveType,
  curve_dcsid AS AltvDrvtvContractSpecification,
  curve_mic AS AltvMarketIdentifierCode,
  dcs_selection_type AS MaturitySelectionType,
  timing AS CmmdtyForwardIndexTiming,
  keydate_refdate_rout AS TrmMaturitySelRefDateRoutine,
  keydate_selection_rout AS PrcgCndnTrmMaturitySelRoutine,
  keydate_offset_rout AS CndnTrmPerdDetnDteOffstRoutine,
  keydate_offset_units AS DteOffsetRoutineTimeUnitAmount,
  dcs_period_type AS DCSPeriodType,
  basis_type AS BasisType,
  quotgroup AS PricingCndnTermQuotationGroup,
  quotationrule AS PrcgCndnTermQuotationRule,
  calcrule AS PrcgCndnTermCalculationRule,
  surchargerule AS PrcgConditionTermSurchargeRule,
  perdetrule_q AS PrcgCndnTrmQtnPerdDetnRule,
  perdetrule_c AS PrcgCndnTrmCrcyPerdDetnRule,
  pricefixrule AS PrcgCndnTrmPrFixationOptnRule,
  calcrout AS PrcgCndnTermCalculationRoutine,
  calcmmcurr AS PrcgCndnTrmCalcLmtRateCurrency,
  calcmmprun AS PrcgCndnTrmCalcLmtRateQuantity,
  calcmmuom AS PrcgCndnTrmCalcLmtRateQtyUnit,
  surchargerout AS PrcgCndnTermSurchargeRoutine,
  surchargeabs_df34 AS PrcgCndnTrmAbsltSurchrgAmount,
  surchargecurr AS PrcgCndnTermAbsltSurchrgCrcy,
  surchargeprun AS PrcgCndnTrmAbsltSurchrgPrQty,
  surchargeuom AS PrcgCndnTrmAbsltSurchrgQtyUnit,
  surchargefactor1 AS PrcgCndnTrmSurchrgFirstFactor,
  surchargefactor2 AS PrcgCndnTrmSurchrgSecondFactor,
  termtext AS PrcgConditionTermDescription,
  forecast_date_routine AS PrcgCndnLtstEvalKeyDateRoutine,
  calcmin_df34 AS PrcgCndnTermMinCmmdtyCalcRate,
  calcmax_df34 AS PrcgCndnTermMaxCmmdtyCalcRate,
  fixtermrate_df34 AS PricingConditionTermFixedRate,
  cast( rate_created_at as cpet_created_at_cds preserving type ) AS PrcgCndnTrmRateCrtnDateTime,
  rate_created_by AS PrcgCndnTermRateCreatedByUser,
  cast( rate_changed_at as cpet_changed_at_cds preserving type ) AS PrcgCndnTrmRateChangeDateTime,
  rate_changed_by AS PrcgCndnTermRateChangedByUser,
  psmguid AS PrcgCndnTrmPrSettingMethodUUID,
  psmethod AS PrcgCndnTermPriceSettingMethod,
  psmstatus AS PrcgCndnTrmPrSttgMethodStatus,
  commoditysubaccount AS PrcgCndnTermCmmdtySubAccount,
  number_of_lots AS PrcgConditionTermNumberOfLots,
  fillpacketuuid AS PrcgCndnDrvtvOrdFillPacketUUID,
  psm_simulation_error AS PrcgCndnTrmPrSttgMethHasError,
  exprtninstruction AS PrcgCndnDrvtvOrdReqExpryInstrn,
  prcgexecinstrn AS PrcgCndnOrdReqPrcgExecInstrn,
  lmtprc AS PrcgCndnDrvtvOrdReqLimitPrice,
  lmtprccurrency AS PrcgCndnDrvtvOrdReqLmtPrcCrcy,
  stopprice AS PrcgCndnDrvtvOrdReqStopPrice,
  stoppricecrcy AS PrcgCndnDrvtvOrdReqStopPrcCrcy,
  stoplmtprc AS CndnDrvtvOrdReqStopLimitPrice,
  stoplmtprccurrency AS CndnDrvtvOrdReqStopLmtPrcCrcy,
  fxdprc AS CndnDrvtvOrdReqReqdFxdPrice,
  fxdprccrcy AS CndnDrvtvOrdReqReqdFxdPrcCrcy,
  leewayprc AS DrvtvOrdReqReqdLeewayPrice,
  leewayprccrcy AS DrvtvOrdReqReqdLeewayPriceCrcy,
  leewayrngeprc AS CndnDrvtvOrdReqLeewayPrice,
  leewayrngeprccrcy AS CndnDrvtvOrdReqLeewayPrcCrcy,
  expirationdate AS PrcgCndnDrvtvOrdReqExprtnDate,
  lmtspreadprc AS CndnDrvtvOrdReqLmtSpreadVal,
  lmtspreadprccrcy AS CndnDrvtvOrdReqLmtSpreadPrCrcy,
  fxdspreadprc AS DrvtvOrdReqReqdFxdSpreadPrice,
  fxdspreadprccrcy AS DrvtvOrdReqReqdFxdSpreadPrCrcy,
  ticks AS CndnNrOfDrvtvOrderRequestTicks,
  cmmdtyordreqcntrptybroker AS PrcgCndnTrmCtptyBrokerName,
  cmmdtyordreqcntrptyrefacct AS PrcgCndnTrmRefBrokerAccount,
  savetermrate_df34 AS PrcgCndnTermSavedFixedRate,
  savetermcurr AS PrcgCndnTermSavedFixedRateCrcy,
  exer_date_early_rout AS TrmOptnErlstExerDateRoutine,
  exer_date_earliest AS TrmFixationOptnErlstExerDate,
  exer_date_earliest_ref_date_rt AS TrmOptnErlstExerRefDteRoutine,
  exer_date_latest_rout AS TrmOptnLtstExerciseDateRoutine,
  exer_date_latest AS TrmFixationOptnLtstExerDate,
  exer_date_latest_ref_date_rt AS TrmOptnLtstExerRefDteRoutine,
  quantity_distr_rout AS PrcgCndnTermQtyDistrRoutine,
  quantity_ref AS TermFixationOptionFixationQty,
  quantity_ref_uom AS TrmFixationOptnFixationQtyUnit,
  limit_rout AS CndnTrmFixationOptnLmtRoutine,
  limit_quantity AS CndnTermFixationOptionLimitQty,
  limit_quantity_uom AS TrmFixationOptionLimitQtyUnit,
  limit_factor_1 AS TrmFixationOptnLmtFirstFactor,
  limit_factor_2 AS TrmFixationOptnLmtSecondFactor,
  price_ref_rout AS CndnTrmNonFixedQtyRefPrRoutine,
  tier_ref_date_rout AS CndnTrmTierDefRefDteRoutine,
  prc_fixation_status AS PrcgCndnTermFixationOptnStatus,
  non_fixed_quantity AS CndnTrmFixationOptnNonFixedQty,
  non_fixed_qty_uom AS TrmFixationOptnNonFixedQtyUnit,
  limit_quantity_out AS CndnTrmFixationOptnRsltLmtQty,
  limit_quantity_uom_out AS TrmFixationOptnRsltLmtQtyUnit,
  option_comment_short AS CndnTrmFixationOptnComment,
  tierno AS PricingConditionTermTier,
  date_from AS PrcgConditionTermTierStartDate,
  date_to AS PrcgConditionTermTierEndDate,
  qty_to AS PrcgConditionTermTierUpperQty,
  uom AS PrcgConditionTermTierQtyUnit,
  pricefixationexists AS PrcgCndnTermHasPriceFixation,
  maturity_reference_date AS CmmdtyPrcgCndnTrmMttyRefDate,
  maturity_calculated_base_date AS PrcgCndnTrmMttyCalcdBaseDate,
  basis_id_input_hash AS BasisInputHashIdentifier,
  termrate_in_quotcurr AS PrcgCndnTrmQtnCurrencyRate,
  prcfixsetcomp_guid AS CmPrcgPrcFixationSetCompUUID,
  term_actual_quot_curr AS PrcgCndnTrmActualQtanCurrency,
  prcfixratemaintained AS CmmdtyPrcFixedRateIsMaintained,
  quotation_group_currency AS PrcgCndnTrmQtanGroupCurrency,
  quotation_group_price_unit AS PrcgCndnTrmQtanGrpRateQuantity,
  quotation_group_uom AS PrcgCndnTrmQtanGrpRateQtyUnit,
  spreadrequest AS PricingConditionTermHasSpread,
  originalmaturitykeydate AS PrcgCndnTermOriglMttyKeyDate
FROM cpe_term
LEFT OUTER JOIN E_CmmdtyPricingConditionTerm AS _ConditionTermExtension ON DocItmCmmdtyPrcgCndnUUID = _ConditionTermExtension.DocItmCmmdtyPrcgCndnUUID AND PricingConditionTerm = _ConditionTermExtension.PricingConditionTerm  -- association [0..1]
;