P_RU_AdvancePaymentDocument
Advance Payment Document
P_RU_AdvancePaymentDocument is a Consumption CDS View that provides data about "Advance Payment Document" in SAP S/4HANA. It reads from 2 data sources (I_OperationalAcctgDocItem, I_OperationalAcctgDocItem) and exposes 4 fields. Part of development package GLO_FIN_IS_VAT_RU.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | I_OperationalAcctgDocItem | from |
| I_OperationalAcctgDocItem | I_OperationalAcctgDocItem | union_all |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | PRUADVPAYMENTDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | CompanyCode | |||
| AccountingDocument | AccountingDocument | |||
| AccountingDocument | InvoiceReference | |||
| FiscalYear | InvoiceReferenceFiscalYear |
@VDM.private: true
@VDM.viewType: #CONSUMPTION
@AbapCatalog.sqlViewName: 'PRUADVPAYMENTDOC'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view P_RU_AdvancePaymentDocument
as select from I_OperationalAcctgDocItem
{
CompanyCode,
AccountingDocument,
FiscalYear
}
where
SpecialGLTransactionType = 'A'
and ClearingAccountingDocument <> ''
and FollowOnDocumentType = ''
and(
ClearingAccountingDocument <> AccountingDocument
or ClearingDocFiscalYear <> FiscalYear
)
union all select from I_OperationalAcctgDocItem
{
CompanyCode,
InvoiceReference as AccountingDocument,
InvoiceReferenceFiscalYear as FiscalYear
}
where
SpecialGLTransactionType = 'A'
and ClearingAccountingDocument = ''
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