P_CnsldtnCustomer

DDL: P_CNSLDTNCUSTOMER SQL: PCSCUSTOMER Type: view COMPOSITE

P_CnsldtnCustomer is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_CnsldtnAddlMD, I_Customer) and exposes 4 fields with key field Customer.

Data Sources (2)

SourceAliasJoin Type
I_CnsldtnAddlMD I_CnsldtnAddlMD union_all
I_Customer I_Customer from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PCSCUSTOMER view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY Customer Customer
AdditionalMasterDataSource
AdditionalMasterDataSource
CnsldtnIsAdditionalMasterData
@AbapCatalog.sqlViewName: 'PCSCUSTOMER'

@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true

@ObjectModel.usageType: {
  dataClass: #MASTER,
  serviceQuality: #B,
  sizeCategory: #L
}
@VDM:{
  viewType: #COMPOSITE,
  private:true
  }

define view P_CnsldtnCustomer
  as select from I_Customer
{

  key Customer,

      cast ( 'ACCTG' as fincs_masterdatasource )                   as AdditionalMasterDataSource,

      cast ( ' ' as fincs_isadditionalmasterdata preserving type ) as CnsldtnIsAdditionalMasterData
}

union all select from I_CnsldtnAddlMD
{

  key AdditionalMasterDataCode                                     as Customer,

      cast ( 'CNSLDTN' as fincs_masterdatasource )                 as AdditionalMasterDataSource,

      cast ( 'X' as fincs_isadditionalmasterdata preserving type ) as CnsldtnIsAdditionalMasterData
}
where
      AdditionalCharcFieldName =  'KUNNR'
  and AdditionalMasterDataCode <> ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CNSLDTNADDLMD",
"I_CUSTOMER"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/