P_AU_StRpPTRPaidInvcDocCalc

DDL: P_AU_STRPPTRPAIDINVCDOCCALC SQL: PAUSRPTRPAIDC Type: view COMPOSITE Package: GLO_FIN_IS_AU

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)

SourceAliasJoin Type
P_AU_StRpPaytTmesRptgPaidInvc P_AU_StRpPaytTmesRptgPaidInvc from

Parameters (6)

NameTypeDefault
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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;