I_CACompanyCodeAddlCurrency
Additional Currencies for Company Code
I_CACompanyCodeAddlCurrency is a Composite CDS View that provides data about "Additional Currencies for Company Code" in SAP S/4HANA. It reads from 1 data source (I_CompanyCode) and exposes 3 fields with key field CompanyCode. It has 6 associations to related views. Part of development package FKKB.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CompanyCode | CompanyCode | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | FINS_T001A | _CompanyCurrencyControl | $projection.CompanyCode = _CompanyCurrencyControl.bukrs |
| [0..1] | I_SAPClient | _SAPClient | _SAPClient.SAPClientName is not initial |
| [0..1] | t005 | _Country | CompanyCode.Country = _Country.land1 |
| [0..1] | t880 | _GlobalCompanyData | CompanyCode.Company = _GlobalCompanyData.rcomp |
| [0..1] | I_Currency | _AdditionalCurrency1 | $projection.AdditionalCurrency1 = _AdditionalCurrency1.Currency |
| [0..1] | I_Currency | _AdditionalCurrency2 | $projection.AdditionalCurrency2 = _AdditionalCurrency2.Currency |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Additional Currencies for Company Code | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | ||
| _AdditionalCurrency1 | _AdditionalCurrency1 | |||
| _AdditionalCurrency2 | _AdditionalCurrency2 |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Additional Currencies for Company Code'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{ serviceQuality: #C,
sizeCategory: #S,
dataClass: #CUSTOMIZING }
@VDM.viewType: #COMPOSITE
// DO NOT USE!!
// Please use I_AdditionalCurrencyRoles instead
define view entity I_CACompanyCodeAddlCurrency
as select from I_CompanyCode as CompanyCode
association [0..1] to FINS_T001A as _CompanyCurrencyControl on $projection.CompanyCode = _CompanyCurrencyControl.bukrs
association [0..1] to I_SAPClient as _SAPClient on _SAPClient.SAPClientName is not initial
association [0..1] to t005 as _Country on CompanyCode.Country = _Country.land1
association [0..1] to t880 as _GlobalCompanyData on CompanyCode.Company = _GlobalCompanyData.rcomp
association [0..1] to I_Currency as _AdditionalCurrency1 on $projection.AdditionalCurrency1 = _AdditionalCurrency1.Currency
association [0..1] to I_Currency as _AdditionalCurrency2 on $projection.AdditionalCurrency2 = _AdditionalCurrency2.Currency
{
key CompanyCode,
@ObjectModel.foreignKey.association: '_AdditionalCurrency1'
cast( case _CompanyCurrencyControl.curtp
when '11' then CompanyCode.Currency
when '12' then CompanyCode.Currency
when '30' then _SAPClient.GroupCurrency
when '31' then _SAPClient.GroupCurrency
when '32' then _SAPClient.GroupCurrency
when '40' then _Country.curha
when '50' then _Country.curin
when '60' then _GlobalCompanyData.curr
else ''
end as fis_hwae2 ) as AdditionalCurrency1,
@ObjectModel.foreignKey.association: '_AdditionalCurrency2'
cast( case _CompanyCurrencyControl.curtp2
when '11' then CompanyCode.Currency
when '12' then CompanyCode.Currency
when '30' then _SAPClient.GroupCurrency
when '31' then _SAPClient.GroupCurrency
when '32' then _SAPClient.GroupCurrency
when '40' then _Country.curha
when '50' then _Country.curin
when '60' then _GlobalCompanyData.curr
else ''
end as fis_hwae3 ) as AdditionalCurrency2,
/* associations */
_AdditionalCurrency1,
_AdditionalCurrency2
}
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