P_AU_StRpPTRPaidInvcDocCalc
AU PTR Paid Invoice Document Calculation
P_AU_StRpPTRPaidInvcDocCalc is a Composite CDS View that provides data about "AU PTR Paid Invoice Document Calculation" in SAP S/4HANA. It reads from 1 data source (P_AU_StRpPaytTmesRptgPaidInvc) and exposes 17 fields with key fields CompanyCode, AccountingDocument, FiscalYear. Part of development package GLO_FIN_IS_AU.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_AU_StRpPaytTmesRptgPaidInvc | P_AU_StRpPaytTmesRptgPaidInvc | from |
Parameters (6)
| Name | Type | Default |
|---|---|---|
| P_FromReportingDate | figen_rep_date_from | |
| P_ToReportingDate | figen_rep_date_to | |
| P_AU_InvoiceIssueDateType | fiau_invoice_issue_date_type | |
| P_OffsetDays | fiau_offset_days | |
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PAUSRPTRPAIDC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | PTRInvoices | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | PTRInvoices | AccountingDocument | Journal Entry |
| KEY | FiscalYear | PTRInvoices | FiscalYear | G/L Fiscal Year |
| Supplier | ||||
| FromReportingDate | ||||
| InvoiceIssueDate | PTRInvoices | InvoiceIssueDate | ||
| DiffNumberOfDays | PTRInvoices | NumberOfDays | Number of Days | |
| PaymentTerms | PTRInvoices | PaymentTerms | Pyt Terms | |
| PTR_AccountingDocumentType | PTRInvoices | AccountingDocumentType | Journal Entry Type | |
| PTR_SupplierAccountGroup | PTRInvoices | SupplierAccountGroup | Account group | |
| PTR_InterCompanyIndicator | PTRInvoices | InterCompanyIndicator | ||
| AccountingDocumentType | DocTyp | AccountingDocumentType | Journal Entry Type | |
| SupplierAccountGroup | Suplr_Acct_Grp | SupplierAccountGroup | Account group | |
| InterCompanyExclIndicator | InterCompany | InterCompanyExclIndicator | ||
| CompanyCodeCurrency | PTRInvoices | CompanyCodeCurrency | Local Currency | |
| AmountInCompanyCodeCurrency | PTRInvoices | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| CashDiscountAmtInCoCodeCrcy | PTRInvoices | CashDiscountAmtInCoCodeCrcy | Discount Amt |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_AU_StRpPTRPaidInvcDocCalc.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PAUSRPTRPAIDC
-- Parameters: P_FromReportingDate : figen_rep_date_from, P_ToReportingDate : figen_rep_date_to, P_AU_InvoiceIssueDateType : fiau_invoice_issue_date_type, P_OffsetDays : fiau_offset_days, P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id
CREATE VIEW P_AU_StRpPTRPaidInvcDocCalc AS
SELECT
PTRInvoices.CompanyCode AS CompanyCode,
PTRInvoices.AccountingDocument AS AccountingDocument,
PTRInvoices.FiscalYear AS FiscalYear,
PTRInvoices._PTRSmallBusiness[inner].Supplier AS Supplier,
PTRInvoices._PTRSmallBusiness[inner].FromReportingDate AS FromReportingDate,
PTRInvoices.InvoiceIssueDate AS InvoiceIssueDate,
PTRInvoices.NumberOfDays AS DiffNumberOfDays,
PTRInvoices.PaymentTerms AS PaymentTerms,
PTRInvoices.AccountingDocumentType AS PTR_AccountingDocumentType,
PTRInvoices.SupplierAccountGroup AS PTR_SupplierAccountGroup,
PTRInvoices.InterCompanyIndicator AS PTR_InterCompanyIndicator,
DocTyp.AccountingDocumentType AS AccountingDocumentType,
Suplr_Acct_Grp.SupplierAccountGroup AS SupplierAccountGroup,
InterCompany.InterCompanyExclIndicator AS InterCompanyExclIndicator,
PTRInvoices.CompanyCodeCurrency AS CompanyCodeCurrency,
PTRInvoices.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
PTRInvoices.CashDiscountAmtInCoCodeCrcy AS CashDiscountAmtInCoCodeCrcy
FROM P_AU_StRpPaytTmesRptgPaidInvc
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA