P_PH_IsPaymentIndicator

DDL: P_PH_ISPAYMENTINDICATOR SQL: PPHPAYNENTTYPE Type: view COMPOSITE

P_PH_IsPaymentIndicator is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_AccountingDocument, I_OperationalAcctgDocItem) and exposes 5 fields with key fields CompanyCode, AccountingDocument, FiscalYear.

Data Sources (2)

SourceAliasJoin Type
I_AccountingDocument AccountingDocument inner
I_OperationalAcctgDocItem OperationalAcctgDocItem from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PPHPAYNENTTYPE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.private true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_OperationalAcctgDocItem CompanyCode
KEY AccountingDocument I_OperationalAcctgDocItem AccountingDocument
KEY FiscalYear I_OperationalAcctgDocItem FiscalYear
IsUsedInPaymentTransaction
DocumentReferenceID
@AbapCatalog.sqlViewName: 'PPHPAYNENTTYPE'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@VDM.private: true
define view P_PH_IsPaymentIndicator as select from I_OperationalAcctgDocItem as OperationalAcctgDocItem
inner join I_AccountingDocument as AccountingDocument  on OperationalAcctgDocItem.CompanyCode = AccountingDocument.CompanyCode
                                                       and OperationalAcctgDocItem.FiscalYear = AccountingDocument.FiscalYear
                                                       and OperationalAcctgDocItem.AccountingDocument = AccountingDocument.AccountingDocument
{
key OperationalAcctgDocItem.CompanyCode,
key OperationalAcctgDocItem.AccountingDocument,
key OperationalAcctgDocItem.FiscalYear,
max(OperationalAcctgDocItem.IsUsedInPaymentTransaction) as IsUsedInPaymentTransaction,
max(AccountingDocument.DocumentReferenceID) as DocumentReferenceID

}group by
OperationalAcctgDocItem.CompanyCode,
OperationalAcctgDocItem.AccountingDocument,
OperationalAcctgDocItem.FiscalYear


/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ACCOUNTINGDOCUMENT",
"I_OPERATIONALACCTGDOCITEM"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/