FARMLVD_APAR_ACCDOC_AUTH

DDL: FARMLVD_APAR_ACCDOC_AUTH Type: view_entity Package: FINS_AR_MACHINE_LEARNING

Rec Item Auth Check Helper View

FARMLVD_APAR_ACCDOC_AUTH is a CDS View that provides data about "Rec Item Auth Check Helper View" in SAP S/4HANA. It reads from 3 data sources (I_OperationalAcctgDocItem, FARMLVD_COMPANY, I_Customer) and exposes 13 fields with key fields CompanyCode, FiscalYear, AccountingDocument, AccountingDocumentItem. Part of development package FINS_AR_MACHINE_LEARNING.

Data Sources (3)

SourceAliasJoin Type
I_OperationalAcctgDocItem AcctDocItm from
FARMLVD_COMPANY CompanyCtryKey left_outer
I_Customer cust left_outer

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Rec Item Auth Check Helper View view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_OperationalAcctgDocItem CompanyCode
KEY FiscalYear I_OperationalAcctgDocItem FiscalYear
KEY AccountingDocument I_OperationalAcctgDocItem AccountingDocument
KEY AccountingDocumentItem I_OperationalAcctgDocItem AccountingDocumentItem
FinancialAccountType I_OperationalAcctgDocItem FinancialAccountType
PostingDate I_OperationalAcctgDocItem PostingDate
SpecialGLCode I_OperationalAcctgDocItem SpecialGLCode
BusinessArea I_OperationalAcctgDocItem BusinessArea
FunctionalArea I_OperationalAcctgDocItem FunctionalArea
CountryKey FARMLVD_COMPANY CountryKey
CustomerAccountGroup I_Customer CustomerAccountGroup
CustomerendasAccount
ClearingAccountingDocument I_OperationalAcctgDocItem ClearingAccountingDocument
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass:  #MIXED
@ObjectModel.usageType.serviceQuality: #D
@Metadata.ignorePropagatedAnnotations: true
//@AbapCatalog.preserveKey:true

@EndUserText.label: 'Rec Item Auth Check Helper View'
define view entity FARMLVD_APAR_ACCDOC_AUTH
  as select from I_OperationalAcctgDocItem as AcctDocItm
    left outer join I_Customer as cust
        on AcctDocItm.Customer = cust.Customer
    left outer join FARMLVD_COMPANY as CompanyCtryKey
        on AcctDocItm.CompanyCode = CompanyCtryKey.CompanyCode {
    key AcctDocItm.CompanyCode,
    key AcctDocItm.FiscalYear,
    key AcctDocItm.AccountingDocument,
    key AcctDocItm.AccountingDocumentItem,
    AcctDocItm.FinancialAccountType,
    AcctDocItm.PostingDate,
    AcctDocItm.SpecialGLCode,
    AcctDocItm.BusinessArea,
    AcctDocItm.FunctionalArea,
    CompanyCtryKey.CountryKey,
    cust.CustomerAccountGroup,
    case when AcctDocItm.FinancialAccountType='K' 
        then AcctDocItm.Supplier 
        else AcctDocItm.Customer end as Account,
    AcctDocItm.ClearingAccountingDocument
    
}
where AcctDocItm.ClearingAccountingDocument is not null