P_CmmdtyHdgSpecTargetQuotaMap
Commodity Hedge Target Details Mapping
P_CmmdtyHdgSpecTargetQuotaMap is a Composite CDS View that provides data about "Commodity Hedge Target Details Mapping" in SAP S/4HANA. It reads from 3 data sources (I_CmmdtyHdgTargetQuotaPosition, I_CmmdtyHdgTargetQuotaDetail, P_CmmdtyHdgTgtQtaMaxChangedAt) and exposes 15 fields with key fields CmmdtyHedgeSpecificationUUID, CmmdtyHdgSpecQuotaOrderUUID. Part of development package FIN_CMM_CMDTY_HEDGE_TQ.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_CmmdtyHdgTargetQuotaPosition | _TgtQta | inner |
| I_CmmdtyHdgTargetQuotaDetail | _TgtQtaHdr | from |
| P_CmmdtyHdgTgtQtaMaxChangedAt | _TgtQtaVer | inner |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCMMDTYTQDTLSMAP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| EndUserText.label | Commodity Hedge Target Details Mapping | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CmmdtyHedgeSpecificationUUID | P_CmmdtyHdgTgtQtaMaxChangedAt | CmmdtyHedgeSpecificationUUID | |
| KEY | CmmdtyHdgSpecQuotaOrderUUID | P_CmmdtyHdgTgtQtaMaxChangedAt | CmmdtyHdgSpecQuotaOrderUUID | |
| CmmdtyHdgSpecificationID | P_CmmdtyHdgTgtQtaMaxChangedAt | CmmdtyHdgSpecificationID | ||
| CmmdtyHdgSpecQuotaOrderID | P_CmmdtyHdgTgtQtaMaxChangedAt | CmmdtyHdgSpecQuotaOrderID | ||
| CompanyCode | P_CmmdtyHdgTgtQtaMaxChangedAt | CompanyCode | Receiver Company Code | |
| DerivativeContrSpecification | P_CmmdtyHdgTgtQtaMaxChangedAt | DerivativeContrSpecification | DCS ID | |
| CmmdtyHdgSpecDirection | P_CmmdtyHdgTgtQtaMaxChangedAt | CmmdtyHdgSpecDirection | ||
| CmmdtyHedgeTargetQuotaUUID | I_CmmdtyHdgTargetQuotaDetail | CmmdtyHedgeTargetQuotaUUID | UUID | |
| CmmdtyHdgTgtQuotaHedgeBookID | I_CmmdtyHdgTargetQuotaDetail | CmmdtyHdgTgtQuotaHedgeBookID | Hedge Book | |
| CmmdtyHdgTgtQuotaPositionUUID | I_CmmdtyHdgTargetQuotaPosition | CmmdtyHdgTgtQuotaPositionUUID | UUID | |
| CmmdtyHdgTgtQuotaPositionYear | I_CmmdtyHdgTargetQuotaPosition | CmmdtyHdgTgtQuotaPositionYear | Position Year | |
| CmmdtyHdgTgtQuotaPeriodNumber | I_CmmdtyHdgTargetQuotaPosition | CmmdtyHdgTgtQuotaPeriodNumber | Period Number | |
| CommodityHedgePercentageUnit | % | |||
| CmmdtyHdgAcctgUprLmtInPercent | I_CmmdtyHdgTargetQuotaPosition | CmmdtyHdgAcctgUprLmtInPercent | ||
| CmmdtyHdgTgtQtaUprLmtInPercent | I_CmmdtyHdgTargetQuotaPosition | CmmdtyHdgTgtQtaUprLmtInPercent |
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_CmmdtyHdgSpecTargetQuotaMap.
-- 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: PCMMDTYTQDTLSMAP
CREATE VIEW P_CmmdtyHdgSpecTargetQuotaMap AS
SELECT
_TgtQtaVer.CmmdtyHedgeSpecificationUUID AS CmmdtyHedgeSpecificationUUID,
_TgtQtaVer.CmmdtyHdgSpecQuotaOrderUUID AS CmmdtyHdgSpecQuotaOrderUUID,
_TgtQtaVer.CmmdtyHdgSpecificationID AS CmmdtyHdgSpecificationID,
_TgtQtaVer.CmmdtyHdgSpecQuotaOrderID AS CmmdtyHdgSpecQuotaOrderID,
_TgtQtaVer.CompanyCode AS CompanyCode,
_TgtQtaVer.DerivativeContrSpecification AS DerivativeContrSpecification,
_TgtQtaVer.CmmdtyHdgSpecDirection AS CmmdtyHdgSpecDirection,
_TgtQtaHdr.CmmdtyHedgeTargetQuotaUUID AS CmmdtyHedgeTargetQuotaUUID,
_TgtQtaHdr.CmmdtyHdgTgtQuotaHedgeBookID AS CmmdtyHdgTgtQuotaHedgeBookID,
_TgtQta.CmmdtyHdgTgtQuotaPositionUUID AS CmmdtyHdgTgtQuotaPositionUUID,
_TgtQta.CmmdtyHdgTgtQuotaPositionYear AS CmmdtyHdgTgtQuotaPositionYear,
_TgtQta.CmmdtyHdgTgtQuotaPeriodNumber AS CmmdtyHdgTgtQuotaPeriodNumber,
cast( '%' as meins ) AS CommodityHedgePercentageUnit,
_TgtQta.CmmdtyHdgAcctgUprLmtInPercent AS CmmdtyHdgAcctgUprLmtInPercent,
_TgtQta.CmmdtyHdgTgtQtaUprLmtInPercent AS CmmdtyHdgTgtQtaUprLmtInPercent
FROM I_CmmdtyHdgTargetQuotaDetail AS _TgtQtaHdr
INNER JOIN P_CmmdtyHdgTgtQtaMaxChangedAt AS _TgtQtaVer ON /* join condition not captured in parsed metadata */
INNER JOIN I_CmmdtyHdgTargetQuotaPosition AS _TgtQta ON /* join condition not captured in parsed metadata */
;
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