I_CmmdtyHedgeTargetQuotaHeader
Commodity Hedge Target Quota
I_CmmdtyHedgeTargetQuotaHeader is a Basic CDS View that provides data about "Commodity Hedge Target Quota" in SAP S/4HANA. It reads from 1 data source (cmmt_targetquota) and exposes 18 fields with key field CmmdtyHedgeTargetQuotaUUID. Part of development package FIN_CMM_CMDTY_HEDGE_TQ.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| cmmt_targetquota | tq | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICMMHDGTQHEADER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Commodity Hedge Target Quota | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CmmdtyHedgeTargetQuotaUUID | cmmt_targetquota | targetquota_uuid | UUID |
| CmmdtyHedgeTargetQuotaVersion | cmmt_targetquota | version | XML Vers. | |
| CompanyCode | cmmt_targetquota | company_code | Company Code | |
| DerivativeContrSpecification | cmmt_targetquota | dcs_id | DCS ID | |
| CmmdtyHdgTargetQuotaDirection | cmmt_targetquota | direction | Long/Short Position | |
| CmmdtyHdgTgtQtaValdFrmDateTime | cmmt_targetquota | valid_from | Validity Start Time | |
| CmmdtyHdgTgtQuotaPeriodClass | cmmt_targetquota | period_class | Period Class | |
| CmmdtyHdgTgtQuotaHedgeBookID | cmmt_targetquota | hedge_book | Hedge Book | |
| CommodityHedgeRemarkNote | cmmt_targetquota | remark | Status Description | |
| IsActive | cmmt_targetquota | is_active | Truth Value | |
| CmmdtyHedgeTargetQuotaStatusID | cmmt_targetquota | status_id | Trans Doc Status | |
| CmmdtyHdgTargetQuotaLogHandle | cmmt_targetquota | log_handle | Migration Log Handle | |
| CmmdtyHdgTgtQuotaIsFullyHedged | cmmt_targetquota | is_hedged_fully | To Be Fully Hedged | |
| CmmdtyHdgTgtQuotaCreatedByUser | ||||
| CmmdtyHdgTgtQtaCrtnDateTime | cmmt_targetquota | created_at | Uploaded On | |
| CmmdtyHdgTargetQuotaIsObsolete | cmmt_targetquota | is_obsolete | TQ Obslt | |
| CmmdtyHdgTgtQuotaChangedByUser | ||||
| CmmdtyHdgTgtQtaChangeDateTime | cmmt_targetquota | changed_at | Timestamp |
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_CmmdtyHedgeTargetQuotaHeader.
-- 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: ICMMHDGTQHEADER
CREATE VIEW I_CmmdtyHedgeTargetQuotaHeader AS
SELECT
tq.targetquota_uuid AS CmmdtyHedgeTargetQuotaUUID,
tq.version AS CmmdtyHedgeTargetQuotaVersion,
tq.company_code AS CompanyCode,
tq.dcs_id AS DerivativeContrSpecification,
tq.direction AS CmmdtyHdgTargetQuotaDirection,
tq.valid_from AS CmmdtyHdgTgtQtaValdFrmDateTime,
tq.period_class AS CmmdtyHdgTgtQuotaPeriodClass,
tq.hedge_book AS CmmdtyHdgTgtQuotaHedgeBookID,
tq.remark AS CommodityHedgeRemarkNote,
tq.is_active AS IsActive,
tq.status_id AS CmmdtyHedgeTargetQuotaStatusID,
tq.log_handle AS CmmdtyHdgTargetQuotaLogHandle,
tq.is_hedged_fully AS CmmdtyHdgTgtQuotaIsFullyHedged,
cast( tq.created_by as cmm_hdg_crtd_by ) AS CmmdtyHdgTgtQuotaCreatedByUser,
tq.created_at AS CmmdtyHdgTgtQtaCrtnDateTime,
tq.is_obsolete AS CmmdtyHdgTargetQuotaIsObsolete,
cast( tq.changed_by as cmm_hdg_crtd_by ) AS CmmdtyHdgTgtQuotaChangedByUser,
tq.changed_at AS CmmdtyHdgTgtQtaChangeDateTime
FROM cmmt_targetquota AS tq
;
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