I_CommoditySubAccount
Commodity Subaccount
I_CommoditySubAccount is a Basic CDS View that provides data about "Commodity Subaccount" in SAP S/4HANA. It reads from 1 data source (cmmfsa_d_subacct) and exposes 22 fields with key field CommoditySubAccountUUID. It has 1 association to related views. Part of development package FS_CMM_COMMODITY_SUBACCOUNT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| cmmfsa_d_subacct | CommoditySubAccount | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | E_CommoditySubAccount | _Extension | $projection.CommoditySubAccountUUID = _Extension.CommoditySubAccountUUID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICMMDTYSUBACCT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Commodity Subaccount | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CommoditySubAccountUUID | cmmfsa_d_subacct | commoditysubaccountuuid | Key |
| CommoditySubAccount | cmmfsa_d_subacct | commoditysubaccount | Subaccount ID | |
| CommoditySubAccountName | cmmfsa_d_subacct | commoditysubaccountname | Subaccount Name | |
| CmmdtySubAccountStatus | cmmfsa_d_subacct | cmmdtysubaccountstatus | Status | |
| CmmdtySubAccountStatusReason | cmmfsa_d_subacct | cmmdtysubaccountstatusreason | Invalidation Reason | |
| CompanyCode | cmmfsa_d_subacct | companycode | Receiver Company Code | |
| FuturesAccount | cmmfsa_d_subacct | futuresaccount | Futures Account | |
| Commodity | cmmfsa_d_subacct | commodity | Commodity Code | |
| MarketIdentifierCode | cmmfsa_d_subacct | marketidentifiercode | MIC | |
| DerivativeContrSpecification | cmmfsa_d_subacct | derivativecontrspecification | DCS ID | |
| ReferenceBrokerAccount | cmmfsa_d_subacct | referencebrokeraccount | Reference Account | |
| Portfolio | cmmfsa_d_subacct | portfolio | Portfolio | |
| ProfitCenter | cmmfsa_d_subacct | profitcenter | Profit Center | |
| Counterparty | cmmfsa_d_subacct | counterparty | Supplier | |
| CommodityDerivativeBroker | cmmfsa_d_subacct | commodityderivativebroker | Broker ID | |
| CmmdtySubAcctClearingAccount | cmmfsa_d_subacct | cmmdtysubacctclearingaccount | Clearing Account | |
| CommoditySubAccountClearingKey | cmmfsa_d_subacct | commoditysubaccountclearingkey | Clearing Key | |
| CreatedByUser | cmmfsa_d_subacct | createdbyuser | User Name | |
| CreationDateTime | cmmfsa_d_subacct | creationdatetime | Timestamp | |
| LastChangedByUser | cmmfsa_d_subacct | lastchangedbyuser | User Name | |
| LastChangeDateTime | cmmfsa_d_subacct | lastchangedatetime | Timestamp | |
| CmmdtySubAccountIsBlocked | cmmfsa_d_subacct | cmmdtysubaccountisblocked | Order Create Blocked |
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_CommoditySubAccount.
-- 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: ICMMDTYSUBACCT
CREATE VIEW I_CommoditySubAccount AS
SELECT
CommoditySubAccount.commoditysubaccountuuid AS CommoditySubAccountUUID,
CommoditySubAccount.commoditysubaccount AS CommoditySubAccount,
CommoditySubAccount.commoditysubaccountname AS CommoditySubAccountName,
CommoditySubAccount.cmmdtysubaccountstatus AS CmmdtySubAccountStatus,
CommoditySubAccount.cmmdtysubaccountstatusreason AS CmmdtySubAccountStatusReason,
CommoditySubAccount.companycode AS CompanyCode,
CommoditySubAccount.futuresaccount AS FuturesAccount,
CommoditySubAccount.commodity AS Commodity,
CommoditySubAccount.marketidentifiercode AS MarketIdentifierCode,
CommoditySubAccount.derivativecontrspecification AS DerivativeContrSpecification,
CommoditySubAccount.referencebrokeraccount AS ReferenceBrokerAccount,
CommoditySubAccount.portfolio AS Portfolio,
CommoditySubAccount.profitcenter AS ProfitCenter,
CommoditySubAccount.counterparty AS Counterparty,
CommoditySubAccount.commodityderivativebroker AS CommodityDerivativeBroker,
CommoditySubAccount.cmmdtysubacctclearingaccount AS CmmdtySubAcctClearingAccount,
CommoditySubAccount.commoditysubaccountclearingkey AS CommoditySubAccountClearingKey,
CommoditySubAccount.createdbyuser AS CreatedByUser,
CommoditySubAccount.creationdatetime AS CreationDateTime,
CommoditySubAccount.lastchangedbyuser AS LastChangedByUser,
CommoditySubAccount.lastchangedatetime AS LastChangeDateTime,
CommoditySubAccount.cmmdtysubaccountisblocked AS CmmdtySubAccountIsBlocked
FROM cmmfsa_d_subacct AS CommoditySubAccount
LEFT OUTER JOIN E_CommoditySubAccount AS _Extension ON CommoditySubAccountUUID = _Extension.CommoditySubAccountUUID -- 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