P_CoCodeLedgerValnCrcyRole

DDL: P_COCODELEDGERVALNCRCYROLE SQL: PCMLDCURTPS Type: view BASIC

P_CoCodeLedgerValnCrcyRole is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (finsc_ld_cmp, I_Ledger) and exposes 12 fields with key fields Ledger, CompanyCode.

Data Sources (2)

SourceAliasJoin Type
finsc_ld_cmp f from
I_Ledger l inner

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName PCMLDCURTPS view
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY Ledger finsc_ld_cmp rldnr
KEY CompanyCode finsc_ld_cmp bukrs
CompanyCodeCurrencyRole finsc_ld_cmp curtph
GlobalCurrencyRole finsc_ld_cmp curtpk
FreeDefinedCurrency1Role finsc_ld_cmp curtpo
FreeDefinedCurrency2Role finsc_ld_cmp curtpv
FreeDefinedCurrency3Role finsc_ld_cmp curtpb
FreeDefinedCurrency4Role finsc_ld_cmp curtpc
FreeDefinedCurrency5Role finsc_ld_cmp curtpd
FreeDefinedCurrency6Role finsc_ld_cmp curtpe
FreeDefinedCurrency7Role finsc_ld_cmp curtpf
FreeDefinedCurrency8Role finsc_ld_cmp curtpg
@AbapCatalog.sqlViewName: 'PCMLDCURTPS'
@VDM.viewType: #BASIC
@VDM.private:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
//@EndUserText.label: 'Company code ledger valuation currencyrole'


define view P_CoCodeLedgerValnCrcyRole as select from finsc_ld_cmp as f

    // Join to FINSC_LEDGER (Take only Standard Ledger )

    inner join I_Ledger as l on  f.mandt      = l.mandt
                             and f.rldnr      = l.Ledger
                             and l.LedgerType = ' '                     

{

  key f.rldnr                as Ledger,
  key f.bukrs                as CompanyCode,
      @UI.hidden: true
      f.curtph               as CompanyCodeCurrencyRole,
      f.curtpk               as GlobalCurrencyRole,
      f.curtpo               as FreeDefinedCurrency1Role,
      f.curtpv               as FreeDefinedCurrency2Role,
      f.curtpb               as FreeDefinedCurrency3Role,
      f.curtpc               as FreeDefinedCurrency4Role,
      f.curtpd               as FreeDefinedCurrency5Role,
      f.curtpe               as FreeDefinedCurrency6Role,
      f.curtpf               as FreeDefinedCurrency7Role,
      f.curtpg               as FreeDefinedCurrency8Role

}