I_AcctDocCustomer

DDL: I_ACCTDOCCUSTOMER SQL: IACCTDOCCUST Type: view COMPOSITE

Customer Number for Accounting Document

I_AcctDocCustomer is a Composite CDS View that provides data about "Customer Number for Accounting Document" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 9 fields with key fields CompanyCode, FiscalYear, AccountingDocument.

Data Sources (1)

SourceAliasJoin Type
I_OperationalAcctgDocItem I_OperationalAcctgDocItem from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IACCTDOCCUST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Customer Number for Accounting Document view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode
KEY FiscalYear FiscalYear
KEY AccountingDocument AccountingDocument
Customer
Supplier
BusinessPlace
BillingDocument
SpecialGLCode
IsNegativePosting
@AbapCatalog.sqlViewName: 'IACCTDOCCUST'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #COMPOSITE
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@EndUserText.label: 'Customer Number for Accounting Document'
define view I_AcctDocCustomer
  as select from I_OperationalAcctgDocItem
{
  key CompanyCode,
  key FiscalYear,
  key AccountingDocument,
      max(case when Customer is not null then Customer else '' end) as Customer,
      max(case when Supplier is not null then Supplier else '' end) as Supplier,
      max(case when BusinessPlace is not null then BusinessPlace else '' end) as BusinessPlace,
      max(case when BillingDocument is not null then BillingDocument else '' end) as BillingDocument,
      max(case when SpecialGLCode is not null then SpecialGLCode  else '' end) as SpecialGLCode,
      max(case when IsNegativePosting is not null then IsNegativePosting else '' end) as IsNegativePosting
}

group by
  CompanyCode,
  FiscalYear,
  AccountingDocument
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_OPERATIONALACCTGDOCITEM"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/