P_CnsldtnCustomer

DDL: P_CNSLDTNCUSTOMER SQL: PCSCUSTOMER Type: view COMPOSITE Package: FIN_CS_MD_CUSTOMER

Consolidation Combined Customer

P_CnsldtnCustomer is a Composite CDS View that provides data about "Consolidation Combined Customer" in SAP S/4HANA. It reads from 2 data sources (I_CnsldtnAddlMD, I_Customer) and exposes 6 fields with key field Customer. Part of development package FIN_CS_MD_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 (6)

KeyFieldSource TableSource FieldDescription
KEY Customer Customer
AdditionalMasterDataSource
CnsldtnIsAdditionalMasterData
AdditionalMasterDataSource
CnsldtnIsAdditionalMasterData
CreationDateTime CreationDateTime
@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,

      dats_tims_to_tstmp( CreationDate, cast( '235959' as tims ), 'UTC', $session.client, 'NULL' ) as CreationDateTime

}

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,

      CreationDateTime
}
where
      AdditionalCharcFieldName =  'KUNNR'
  and AdditionalMasterDataCode <> ''