C_CntrlPurContrHierExchRateTP

DDL: C_CNTRLPURCONTRHIEREXCHRATETP Type: view CONSUMPTION Package: LOG_CMM_PRC_PUR_HUB_CCTR

HCTR Cmmdty Exchange Rate - Cons View

C_CntrlPurContrHierExchRateTP is a Consumption CDS View that provides data about "HCTR Cmmdty Exchange Rate - Cons View" in SAP S/4HANA. It reads from 1 data source (I_CntrlPurConCmmdtyExchRateTP) and exposes 29 fields with key fields CentralPurchaseContract, CentralPurchaseContractItem, ConditionRecord, ConditionValidityEndDate, ConditionSequentialNumber. It has 2 associations to related views. Part of development package LOG_CMM_PRC_PUR_HUB_CCTR.

Data Sources (1)

SourceAliasJoin Type
I_CntrlPurConCmmdtyExchRateTP I_CntrlPurConCmmdtyExchRateTP from

Associations (2)

CardinalityTargetAliasCondition
[1..1] C_CntrlPurContrHierHdrTP _CentralPurchaseContractTP $projection.CentralPurchaseContract = _CentralPurchaseContractTP.CentralPurchaseContract
[1..1] C_CntrlPurConHierCmmdtyTermTP _CntrlPurContrCmmdtyTermTP $projection.ConditionRecord = _CntrlPurContrCmmdtyTermTP.ConditionRecord and $projection.ConditionSequentialNumber = _CntrlPurContrCmmdtyTermTP.ConditionSequentialNumber and $projection.CentralPurchaseContract = _CntrlPurContrCmmdtyTermTP.CentralPurchaseContract and $projection.CentralPurchaseContractItem = _CntrlPurContrCmmdtyTermTP.CentralPurchaseContractItem and $projection.ConditionValidityEndDate = _CntrlPurContrCmmdtyTermTP.ConditionValidityEndDate and $projection.PricingConditionTerm = _CntrlPurContrCmmdtyTermTP.PricingConditionTerm

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName CHCTREXCHRATETP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.createEnabled false view
ObjectModel.deleteEnabled false view
ObjectModel.updateEnabled false view
ObjectModel.transactionalProcessingDelegated true view
VDM.viewType #CONSUMPTION view
EndUserText.label HCTR Cmmdty Exchange Rate - Cons View view
Metadata.allowExtensions true view
ClientHandling.algorithm #SESSION_VARIABLE view
feature SW:LOG_CMM_PRC_SFWS_CCTR_CPE_DTLS view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY CentralPurchaseContract CentralPurchaseContract Purchasing Doc.
KEY CentralPurchaseContractItem CentralPurchaseContractItem Item in Central Purchase Contract
KEY ConditionRecord ConditionRecord Cond.Record No.
KEY ConditionValidityEndDate ConditionValidityEndDate Valid To
KEY ConditionSequentialNumber ConditionSequentialNumber SequNo of Cond.
KEY PricingConditionTerm PricingConditionTerm Term Number
KEY PrcgCndnTrmExchRateDateTime PrcgCndnTrmExchRateDateTime Exch Rate Time Stamp
CndnExchRatePerdDetnResultUUID CndnExchRatePerdDetnResultUUID PerDet.Out.GUID
PrcgConditionExchangeRateType PrcgConditionExchangeRateType Exch. Rate Type
PricingConditionSourceCurrency PricingConditionSourceCurrency Curr:Conv. from
PricingConditionTargetCurrency PricingConditionTargetCurrency Curr.: Conv. to
NumberOfSourceCurrencyUnits NumberOfSourceCurrencyUnits Ratio (from)
NumberOfTargetCurrencyUnits NumberOfTargetCurrencyUnits Ratio (to)
CndnTrmExchRateSubstnDateTime CndnTrmExchRateSubstnDateTime Subst Time Stamp
CndnTrmExchRateIsNonTradingDay CndnTrmExchRateIsNonTradingDay Non-Trading Day
PrcgCndnTrmExchRateIsMissing PrcgCndnTrmExchRateIsMissing ExchangeRate Missing
CndnTrmExchRateIsSubstituted CndnTrmExchRateIsSubstituted Substitute Exr
PrcgCndnTrmExchRateIsIgnored PrcgCndnTrmExchRateIsIgnored Exchg. Rate Ignored
PrcgCndnTrmExchRateFcstStatus PrcgCndnTrmExchRateFcstStatus Forecast Status
PricingConditionExchangeRate PricingConditionExchangeRate Conv.:Ex.Rate
PrcgCndnCalcdDrctExchRate
PrcgConditionSwapExchangeRate PrcgConditionSwapExchangeRate Swap Exchange Rate
PrcgConditionSpotExchangeRate PrcgConditionSpotExchangeRate Spot Exchange Rate
ConditionType ConditionType Condition type
PrcgCndnExchangeRateStatus
_CentralPurchaseContractTP _CentralPurchaseContractTP
_CntrlPurContrCmmdtyTermTP _CntrlPurContrCmmdtyTermTP
_ExchRateSourceCurrency _ExchRateSourceCurrency
_ExchRateTargetCurrency _ExchRateTargetCurrency

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 C_CntrlPurContrHierExchRateTP.
-- 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 C_CntrlPurContrHierExchRateTP AS
SELECT
  CentralPurchaseContract,
  CentralPurchaseContractItem,
  ConditionRecord,
  ConditionValidityEndDate,
  ConditionSequentialNumber,
  PricingConditionTerm,
  PrcgCndnTrmExchRateDateTime,
  CndnExchRatePerdDetnResultUUID,
  PrcgConditionExchangeRateType,
  PricingConditionSourceCurrency,
  PricingConditionTargetCurrency,
  NumberOfSourceCurrencyUnits,
  NumberOfTargetCurrencyUnits,
  CndnTrmExchRateSubstnDateTime,
  CndnTrmExchRateIsNonTradingDay,
  PrcgCndnTrmExchRateIsMissing,
  CndnTrmExchRateIsSubstituted,
  PrcgCndnTrmExchRateIsIgnored,
  PrcgCndnTrmExchRateFcstStatus,
  PricingConditionExchangeRate,
  cast(0 as cpet_calc_direct_exchange_rate) AS PrcgCndnCalcdDrctExchRate,
  PrcgConditionSwapExchangeRate,
  PrcgConditionSpotExchangeRate,
  ConditionType,
  cast( 0 as cmm_exchrate_status preserving type) AS PrcgCndnExchangeRateStatus
FROM I_CntrlPurConCmmdtyExchRateTP
LEFT OUTER JOIN C_CntrlPurContrHierHdrTP AS _CentralPurchaseContractTP ON CentralPurchaseContract = _CentralPurchaseContractTP.CentralPurchaseContract  -- association [1..1]
LEFT OUTER JOIN C_CntrlPurConHierCmmdtyTermTP AS _CntrlPurContrCmmdtyTermTP ON ConditionRecord = _CntrlPurContrCmmdtyTermTP.ConditionRecord AND ConditionSequentialNumber = _CntrlPurContrCmmdtyTermTP.ConditionSequentialNumber AND CentralPurchaseContract = _CntrlPurContrCmmdtyTermTP.CentralPurchaseContract AND CentralPurchaseContractItem = _CntrlPurContrCmmdtyTermTP.CentralPurchaseContractItem AND ConditionValidityEndDate = _CntrlPurContrCmmdtyTermTP.ConditionValidityEndDate AND PricingConditionTerm = _CntrlPurContrCmmdtyTermTP.PricingConditionTerm  -- association [1..1]
;