C_CntrlPurContrHierExchRateTP
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.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CntrlPurConCmmdtyExchRateTP | I_CntrlPurConCmmdtyExchRateTP | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA