P_AccountingDocumentCustomer

DDL: P_ACCOUNTINGDOCUMENTCUSTOMER SQL: PACCDOCCUST Type: view COMPOSITE

P_AccountingDocumentCustomer is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 6 fields with key fields CompanyCode, AccountingDocument, FiscalYear.

Data Sources (1)

SourceAliasJoin Type
I_OperationalAcctgDocItem I_OperationalAcctgDocItem from

Annotations (9)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #MIXED view
AbapCatalog.sqlViewName PACCDOCCUST view
ObjectModel.representativeKey AccountingDocument view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_OperationalAcctgDocItem CompanyCode
KEY AccountingDocument I_OperationalAcctgDocItem AccountingDocument
KEY FiscalYear I_OperationalAcctgDocItem FiscalYear
Customer
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
//@EndUserText.label: 'Customer Information in Accounting Doc.' 

@VDM.private: true
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #NOT_REQUIRED 
@ClientHandling.algorithm: #SESSION_VARIABLE 
@ObjectModel.usageType.sizeCategory: #XXL 
@ObjectModel.usageType.serviceQuality: #X 
@ObjectModel.usageType.dataClass: #MIXED
@AbapCatalog.sqlViewName: 'PACCDOCCUST'
@ObjectModel.representativeKey: 'AccountingDocument'

define view P_AccountingDocumentCustomer 
   as select from I_OperationalAcctgDocItem 
{
    key I_OperationalAcctgDocItem.CompanyCode,
    key I_OperationalAcctgDocItem.AccountingDocument,   
    key I_OperationalAcctgDocItem.FiscalYear,        
    min(I_OperationalAcctgDocItem.Customer) as Customer,
    
    _CompanyCode,
    _FiscalYear
//    _JournalEntry

       
} where Customer <> ''
  group by CompanyCode,
         AccountingDocument,
         FiscalYear
                      
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_OPERATIONALACCTGDOCITEM"
],
"ASSOCIATED":
[
"I_COMPANYCODE",
"I_FISCALYEARFORCOMPANYCODE"
],
"BASE":
[
"I_OPERATIONALACCTGDOCITEM"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/