I_CmmdtyHdgTargetQuotaPosition
Commodity Hedge Target Quota Positions
I_CmmdtyHdgTargetQuotaPosition is a Basic CDS View that provides data about "Commodity Hedge Target Quota Positions" in SAP S/4HANA. It reads from 1 data source (cmmt_tq_position) and exposes 16 fields with key field CmmdtyHdgTgtQuotaPositionUUID.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| cmmt_tq_position | cmmt_tq_position | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICMMHDGTGTQTAPOS | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Commodity Hedge Target Quota Positions | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CmmdtyHdgTgtQuotaPositionUUID | tq_pos_uuid | UUID | |
| CmmdtyHedgeTargetQuotaUUID | targetquota_uuid | UUID | ||
| CmmdtyHdgTgtQuotaPositionYear | position_year | Position Year | ||
| CmmdtyHdgTgtQtaPosValdDateTime | position_valid_from | Valid-From Date of Target Quota Position | ||
| clientNULLasCmmdtyHdgTgtQtaPosValdDate | ||||
| CmmdtyHdgTgtQuotaPeriodNumber | period_number | Period Number | ||
| CmmdtyHdgTgtQtaUprLmtInPercent | Target Hdg Quota(%) | |||
| CmmdtyHdgAcctgUprLmtInPercent | Target Hdg Quota(%) | |||
| CommodityHedgeRemarkNote | remark | Status Description | ||
| IsActive | is_active | Truth Value | ||
| CmmdtyHdgTgtQuotaPeriodClass | period_class | Period Class | ||
| CmmdtyHdgTgtQtaPosCrtedByUser | Version Created By | |||
| CmmdtyHdgTgtQtaPosCrtnDateTime | created_at | Uploaded On | ||
| CmmdtyHdgTgtQtaPosChgdByUser | User Name | |||
| CmmdtyHdgTgtQtaPosChgDateTime | changed_at | Timestamp | ||
| CommodityHedgePercentageUnit | % |
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_CmmdtyHdgTargetQuotaPosition.
-- 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: ICMMHDGTGTQTAPOS
CREATE VIEW I_CmmdtyHdgTargetQuotaPosition AS
SELECT
tq_pos_uuid AS CmmdtyHdgTgtQuotaPositionUUID,
targetquota_uuid AS CmmdtyHedgeTargetQuotaUUID,
position_year AS CmmdtyHdgTgtQuotaPositionYear,
position_valid_from AS CmmdtyHdgTgtQtaPosValdDateTime,
tstmp_to_dats( position_valid_from, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as CmmdtyHdgTgtQtaPosValdDate AS clientNULLasCmmdtyHdgTgtQtaPosValdDate,
period_number AS CmmdtyHdgTgtQuotaPeriodNumber,
cast(hedge_management_quota as abap.fltp) AS CmmdtyHdgTgtQtaUprLmtInPercent,
cast(hedge_accounting_quota as abap.fltp) AS CmmdtyHdgAcctgUprLmtInPercent,
remark AS CommodityHedgeRemarkNote,
is_active AS IsActive,
period_class AS CmmdtyHdgTgtQuotaPeriodClass,
cast( created_by as cmm_hdg_crtd_by ) AS CmmdtyHdgTgtQtaPosCrtedByUser,
created_at AS CmmdtyHdgTgtQtaPosCrtnDateTime,
cast( changed_by as cmm_hdg_crtd_by ) AS CmmdtyHdgTgtQtaPosChgdByUser,
changed_at AS CmmdtyHdgTgtQtaPosChgDateTime,
cast( '%' as meins ) AS CommodityHedgePercentageUnit
FROM cmmt_tq_position
;
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