I_CACompanyCodeAddlCurrency

DDL: I_CACOMPANYCODEADDLCURRENCY Type: view_entity COMPOSITE Package: FKKB

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)

SourceAliasJoin Type
I_CompanyCode CompanyCode from

Associations (6)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
}