P_AU_STRPPAYTTMESRPTGPartPay
View for exposing the credit memos
P_AU_STRPPAYTTMESRPTGPartPay is a Composite CDS View that provides data about "View for exposing the credit memos" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 6 fields. Part of development package GLO_FIN_IS_AU.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | doc | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_AU_InvoiceIssueDateType | fiau_invoice_issue_date_type | |
| P_FromReportingDate | figen_rep_date_from | |
| P_ToReportingDate | figen_rep_date_to |
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | CompanyCode | |||
| InvoiceReference | InvoiceReference | |||
| InvoiceReferenceFiscalYear | InvoiceReferenceFiscalYear | |||
| CompanyCodeCurrency | CompanyCodeCurrency | |||
| AmountInCompanyCodeCurrency | ||||
| CashDiscountAmtInCoCodeCrcy |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view entity P_AU_STRPPAYTTMESRPTGPartPay
with parameters
P_AU_InvoiceIssueDateType : fiau_invoice_issue_date_type,
//P_OffsetDays : fiau_offset_days,
P_FromReportingDate : figen_rep_date_from,
P_ToReportingDate : figen_rep_date_to
as select from I_OperationalAcctgDocItem as doc
{
CompanyCode,
InvoiceReference,
InvoiceReferenceFiscalYear,
CompanyCodeCurrency,
@Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
sum(AmountInCompanyCodeCurrency) * -1 as AmountInCompanyCodeCurrency,
@Semantics: { amount : {currencyCode: 'CompanyCodeCurrency'} }
sum(CashDiscountAmtInCoCodeCrcy) * -1 as CashDiscountAmtInCoCodeCrcy
}
where
(
doc.PostingDate not between $parameters.P_FromReportingDate and $parameters.P_ToReportingDate and
doc.SpecialGLTransactionType = '' and // Clear Partial Payments
doc.SpecialGLCode = '' and
doc.InvoiceReference <> '' and
doc.InvoiceReferenceFiscalYear <> '0000' and
doc.InvoiceItemReference <> '000' and
doc.ClearingAccountingDocument <> '' and
(doc.FollowOnDocumentType = 'Z' or doc.FollowOnDocumentType = 'P'))
group by
CompanyCode,
InvoiceReference,
InvoiceReferenceFiscalYear,
CompanyCodeCurrency
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