P_PH_IsPaymentIndicator
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)
| Source | Alias | Join Type |
|---|---|---|
| I_AccountingDocument | AccountingDocument | inner |
| I_OperationalAcctgDocItem | OperationalAcctgDocItem | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA