I_CmmdtySubAcctMappedExternal
Join Subacct with mapping table depending on derivation mode
I_CmmdtySubAcctMappedExternal is a Basic CDS View that provides data about "Join Subacct with mapping table depending on derivation mode" in SAP S/4HANA. It reads from 2 data sources (cmmfsa_d_sa_map, I_CommoditySubAccount) and exposes 19 fields with key field CommoditySubAccountUUID. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| cmmfsa_d_sa_map | cmmfsa_d_sa_map | inner |
| I_CommoditySubAccount | I_CommoditySubAccount | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | E_CommoditySubAccount | _Extension | $projection.CommoditySubAccountUUID = _Extension.CommoditySubAccountUUID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICMMSAMPGEXT | 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 | Join Subacct with mapping table depending on derivation mode | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CommoditySubAccountUUID | I_CommoditySubAccount | CommoditySubAccountUUID | |
| CommoditySubAccount | I_CommoditySubAccount | CommoditySubAccount | ||
| CommoditySubAccountName | I_CommoditySubAccount | CommoditySubAccountName | ||
| CmmdtySubAccountStatus | I_CommoditySubAccount | CmmdtySubAccountStatus | ||
| CmmdtySubAccountStatusReason | I_CommoditySubAccount | CmmdtySubAccountStatusReason | ||
| CompanyCode | cmmfsa_d_sa_map | companycode | ||
| FuturesAccount | I_CommoditySubAccount | FuturesAccount | ||
| Commodity | cmmfsa_d_sa_map | commodity | ||
| MarketIdentifierCode | I_CommoditySubAccount | MarketIdentifierCode | ||
| DerivativeContrSpecification | I_CommoditySubAccount | DerivativeContrSpecification | ||
| ReferenceBrokerAccount | I_CommoditySubAccount | ReferenceBrokerAccount | ||
| Portfolio | I_CommoditySubAccount | Portfolio | ||
| ProfitCenter | I_CommoditySubAccount | ProfitCenter | ||
| CommodityDerivativeBroker | I_CommoditySubAccount | CommodityDerivativeBroker | ||
| CreatedByUser | I_CommoditySubAccount | CreatedByUser | ||
| CreationDateTime | I_CommoditySubAccount | CreationDateTime | ||
| LastChangedByUser | I_CommoditySubAccount | LastChangedByUser | ||
| LastChangeDateTime | I_CommoditySubAccount | LastChangeDateTime | ||
| Plant | cmmfsa_d_sa_map | plant |
@AbapCatalog.sqlViewName: 'ICMMSAMPGEXT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #BASIC
@EndUserText.label: 'Join Subacct with mapping table depending on derivation mode'
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.dataClass: #MASTER
define view I_CmmdtySubAcctMappedExternal
as select from I_CommoditySubAccount
inner join cmmfsa_d_sa_map on I_CommoditySubAccount.CommoditySubAccount = cmmfsa_d_sa_map.commoditysubaccount
and I_CommoditySubAccount.mandt = cmmfsa_d_sa_map.mandt
-- Extension View for Free Characteristics
association [1..1] to E_CommoditySubAccount as _Extension on $projection.CommoditySubAccountUUID = _Extension.CommoditySubAccountUUID
{
key I_CommoditySubAccount.CommoditySubAccountUUID as CommoditySubAccountUUID,
I_CommoditySubAccount.CommoditySubAccount as CommoditySubAccount,
I_CommoditySubAccount.CommoditySubAccountName as CommoditySubAccountName,
I_CommoditySubAccount.CmmdtySubAccountStatus as CmmdtySubAccountStatus,
I_CommoditySubAccount.CmmdtySubAccountStatusReason as CmmdtySubAccountStatusReason,
cmmfsa_d_sa_map.companycode as CompanyCode,
I_CommoditySubAccount.FuturesAccount as FuturesAccount,
cmmfsa_d_sa_map.commodity as Commodity,
I_CommoditySubAccount.MarketIdentifierCode as MarketIdentifierCode,
I_CommoditySubAccount.DerivativeContrSpecification as DerivativeContrSpecification,
I_CommoditySubAccount.ReferenceBrokerAccount as ReferenceBrokerAccount,
I_CommoditySubAccount.Portfolio as Portfolio,
I_CommoditySubAccount.ProfitCenter as ProfitCenter,
I_CommoditySubAccount.CommodityDerivativeBroker as CommodityDerivativeBroker,
I_CommoditySubAccount.CreatedByUser as CreatedByUser,
I_CommoditySubAccount.CreationDateTime as CreationDateTime,
I_CommoditySubAccount.LastChangedByUser as LastChangedByUser,
I_CommoditySubAccount.LastChangeDateTime as LastChangeDateTime,
cmmfsa_d_sa_map.plant as Plant
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COMMODITYSUBACCOUNT",
"CMMFSA_D_SA_MAP"
],
"ASSOCIATED":
[
"E_COMMODITYSUBACCOUNT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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