@AbapCatalog.sqlViewName: 'PBRNCHPRNTREF'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@VDM.private: true
//@EndUserText.label: 'Private View for fetching the RefDoc of specific length'
define view P_AR_BranchPrintCharOfRefDoc as select from P_AR_DocumentReferenceIDSplit
{
key P_AR_DocumentReferenceIDSplit.CompanyCode,
key P_AR_DocumentReferenceIDSplit.AccountingDocument,
key P_AR_DocumentReferenceIDSplit.FiscalYear,
key P_AR_DocumentReferenceIDSplit.AccountingDocumentType,
key P_AR_DocumentReferenceIDSplit.DocumentReferenceID,
P_AR_DocumentReferenceIDSplit.ReportingDate,
P_AR_DocumentReferenceIDSplit.DocumentClass,
P_AR_DocumentReferenceIDSplit.BranchPrefix,
P_AR_DocumentReferenceIDSplit.Branch,
P_AR_DocumentReferenceIDSplit.AR_PrintCharacter,
cast( P_AR_DocumentReferenceIDSplit.AR_OfficialDocumentNumber as abap.numc( 8 ) ) as AR_OfficialDocumentNumber
}
where
( P_AR_DocumentReferenceIDSplit.refdoc = 13 or P_AR_DocumentReferenceIDSplit.refdoc = 14 )
and ( P_AR_DocumentReferenceIDSplit.DocumentClass is not null or ( CompanyCode is null or CompanyCode = '' ) )
// this filter is added in order to do not select the non-int official document numbers
and ( P_AR_DocumentReferenceIDSplit.AR_OfficialDocumentNumber >= '00000000' and P_AR_DocumentReferenceIDSplit.AR_OfficialDocumentNumber <= '99999999' )
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_AR_DOCUMENTREFERENCEIDSPLIT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/