P_CmmdtyHdgTgtQtaExpsrMapPerd
TgtQta to Expsr Period mapping
P_CmmdtyHdgTgtQtaExpsrMapPerd is a Composite CDS View that provides data about "TgtQta to Expsr Period mapping" in SAP S/4HANA. It reads from 4 data sources (P_CmmdtyHdgExpsrVersionPeriod, I_CmmdtyHdgTgtQuotaPeriodicity, I_CmmdtyHdgTargetQuotaPosition, I_CmmdtyHdgTrdOrdTgtQtaRqdVers) and exposes 18 fields with key fields CmmdtyHedgeTargetQuotaUUID, CmmdtyHdgPlnExpsrCompanyCode, CmmdtyHedgePlanExposureDCSID, CmmdtyHdgPlanExposureDirection. Part of development package FIN_CMM_CMDTY_HEDGE_TQ.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| P_CmmdtyHdgExpsrVersionPeriod | _Expsr | inner |
| I_CmmdtyHdgTgtQuotaPeriodicity | _periodcity | inner |
| I_CmmdtyHdgTargetQuotaPosition | _Tqpositions | inner |
| I_CmmdtyHdgTrdOrdTgtQtaRqdVers | I_CmmdtyHdgTrdOrdTgtQtaRqdVers | inner |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_CompanyCode | bukrs | |
| P_ValidFrom | cmm_plan_valid_from |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCMDTYTQEXPSMPRD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| EndUserText.label | TgtQta to Expsr Period mapping | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CmmdtyHedgeTargetQuotaUUID | _TargetQuota | CmmdtyHedgeTargetQuotaUUID | UUID |
| KEY | CmmdtyHdgPlnExpsrCompanyCode | P_CmmdtyHdgExpsrVersionPeriod | CmmdtyHdgPlnExpsrCompanyCode | Company Code |
| KEY | CmmdtyHedgePlanExposureDCSID | P_CmmdtyHdgExpsrVersionPeriod | CmmdtyHedgePlanExposureDCSID | DCS ID |
| KEY | CmmdtyHdgPlanExposureDirection | P_CmmdtyHdgExpsrVersionPeriod | CmmdtyHdgPlanExposureDirection | Buy or Sell |
| CmmdtyHdgPlanExposureHedgeBook | P_CmmdtyHdgExpsrVersionPeriod | CmmdtyHdgPlanExposureHedgeBook | Hedge Book | |
| CmmdtyHedgeTargetQuotaVersion | _TargetQuota | CmmdtyHedgeTargetQuotaVersion | ||
| CmmdtyHdgTgtQuotaIsFullyHedged | _TargetQuota | CmmdtyHdgTgtQuotaIsFullyHedged | ||
| IsActive | _TargetQuota | IsActive | Object active? | |
| CommodityHedgePlanExposureID | P_CmmdtyHdgExpsrVersionPeriod | CommodityHedgePlanExposureID | Plan Exposure ID | |
| CmmdtyHedgePlanExposureVersion | P_CmmdtyHdgExpsrVersionPeriod | CmmdtyHedgePlanExposureVersion | Exposure Version No. | |
| CmmdtyHdgPlnExpsrDelivPerdYear | P_CmmdtyHdgExpsrVersionPeriod | CmmdtyHdgPlnExpsrDelivPerdYear | Exposure Deliv. Year | |
| CmmdtyHdgPlnExpsrDelivStrtDate | P_CmmdtyHdgExpsrVersionPeriod | CmmdtyHdgPlnExpsrDelivStrtDate | Delivery Start Date | |
| CmmdtyHdgPlnExpsrDelivEndDate | P_CmmdtyHdgExpsrVersionPeriod | CmmdtyHdgPlnExpsrDelivEndDate | Delivery End Date | |
| CmmdtyHdgPlnExpsrPeriodClass | P_CmmdtyHdgExpsrVersionPeriod | CmmdtyHdgPlnExpsrPeriodClass | Period Class | |
| CmmdtyHdgPlnExpsrDelivPerdType | P_CmmdtyHdgExpsrVersionPeriod | CmmdtyHdgTgtQuotaPeriodNumber | Period Number | |
| CmmdtyHdgTgtQuotaPeriodClass | _TargetQuota | CmmdtyHdgTgtQuotaPeriodClass | Period Class | |
| CmmdtyHdgTgtQuotaPeriodNumber | I_CmmdtyHdgTargetQuotaPosition | CmmdtyHdgTgtQuotaPeriodNumber | Period Number | |
| CmmdtyHdgTgtQtaPerdStartValue | I_CmmdtyHdgTgtQuotaPeriodicity | CmmdtyHdgTgtQtaPerdStartValue | Time Stamp |
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_CmmdtyHdgTgtQtaExpsrMapPerd.
-- 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: PCMDTYTQEXPSMPRD
-- Parameters: P_CompanyCode : bukrs, P_ValidFrom : cmm_plan_valid_from
CREATE VIEW P_CmmdtyHdgTgtQtaExpsrMapPerd AS
SELECT
_TargetQuota.CmmdtyHedgeTargetQuotaUUID AS CmmdtyHedgeTargetQuotaUUID,
_Expsr.CmmdtyHdgPlnExpsrCompanyCode AS CmmdtyHdgPlnExpsrCompanyCode,
_Expsr.CmmdtyHedgePlanExposureDCSID AS CmmdtyHedgePlanExposureDCSID,
_Expsr.CmmdtyHdgPlanExposureDirection AS CmmdtyHdgPlanExposureDirection,
_Expsr.CmmdtyHdgPlanExposureHedgeBook AS CmmdtyHdgPlanExposureHedgeBook,
_TargetQuota.CmmdtyHedgeTargetQuotaVersion AS CmmdtyHedgeTargetQuotaVersion,
_TargetQuota.CmmdtyHdgTgtQuotaIsFullyHedged AS CmmdtyHdgTgtQuotaIsFullyHedged,
_TargetQuota.IsActive AS IsActive,
_Expsr.CommodityHedgePlanExposureID AS CommodityHedgePlanExposureID,
_Expsr.CmmdtyHedgePlanExposureVersion AS CmmdtyHedgePlanExposureVersion,
_Expsr.CmmdtyHdgPlnExpsrDelivPerdYear AS CmmdtyHdgPlnExpsrDelivPerdYear,
_Expsr.CmmdtyHdgPlnExpsrDelivStrtDate AS CmmdtyHdgPlnExpsrDelivStrtDate,
_Expsr.CmmdtyHdgPlnExpsrDelivEndDate AS CmmdtyHdgPlnExpsrDelivEndDate,
_Expsr.CmmdtyHdgPlnExpsrPeriodClass AS CmmdtyHdgPlnExpsrPeriodClass,
_Expsr.CmmdtyHdgTgtQuotaPeriodNumber AS CmmdtyHdgPlnExpsrDelivPerdType,
_TargetQuota.CmmdtyHdgTgtQuotaPeriodClass AS CmmdtyHdgTgtQuotaPeriodClass,
_Tqpositions.CmmdtyHdgTgtQuotaPeriodNumber AS CmmdtyHdgTgtQuotaPeriodNumber,
_periodcity.CmmdtyHdgTgtQtaPerdStartValue AS CmmdtyHdgTgtQtaPerdStartValue
INNER JOIN I_CmmdtyHdgTrdOrdTgtQtaRqdVers ON /* join condition not captured in parsed metadata */
INNER JOIN P_CmmdtyHdgExpsrVersionPeriod AS _Expsr ON /* join condition not captured in parsed metadata */
INNER JOIN I_CmmdtyHdgTargetQuotaPosition AS _Tqpositions ON /* join condition not captured in parsed metadata */
INNER JOIN I_CmmdtyHdgTgtQuotaPeriodicity AS _periodcity 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