P_GB_ClrdPaytPracticePerf2
GB PPPR AP paid invoices Layer 2
P_GB_ClrdPaytPracticePerf2 is a Composite CDS View that provides data about "GB PPPR AP paid invoices Layer 2" in SAP S/4HANA. It reads from 1 data source (P_GB_ClrdPaytPracticePerf1) and exposes 60 fields with key fields SourceLedger, Ledger, CompanyCode, FiscalYear, AccountingDocument. Part of development package GLO_FIN_IS_GB_AP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_GB_ClrdPaytPracticePerf1 | P_GB_ClrdPaytPracticePerf1 | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_FromReportingDate | figen_rep_date_from | |
| P_ToReportingDate | figen_rep_date_to |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| EndUserText.label | GB PPPR AP paid invoices Layer 2 | view |
Fields (60)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | SourceLedger | Source Ledger | |
| KEY | Ledger | Ledger | Ledger | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | LedgerGLLineItem | LedgerGLLineItem | Journal Entry Item | |
| AccountingDocumentItem | AccountingDocumentItem | Posting View Item | ||
| AccountingDocumentCategory | AccountingDocumentCategory | Journal Entry Category | ||
| AccountingDocumentType | AccountingDocumentType | Journal Entry Type | ||
| InvoiceReference | InvoiceReference | Invoice Reference | ||
| InvoiceItemReference | InvoiceItemReference | Item | ||
| InvoiceReferenceFiscalYear | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | ||
| ClearingDate | ClearingDate | Clearing Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| InvoiceReceiptDate | InvoiceReceiptDate | Invoice Receipt Date | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| Supplier | Supplier | Supplier | ||
| FollowOnDocumentType | FollowOnDocumentType | Follow-On Document Type | ||
| SpecialGLCode | SpecialGLCode | Special G/L Ind | ||
| GLAccount | GLAccount | General Ledger | ||
| CostCenter | CostCenter | Cost Center | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| BusinessArea | BusinessArea | Business Area | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| Segment | Segment | Segment number | ||
| PurchasingDocument | PurchasingDocument | Purchasing Document | ||
| AssignmentReference | AssignmentReference | Assignment Reference | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | Local Crcy Amt | ||
| NetDueDate | NetDueDate | Net Due Date | ||
| TaxBaseAmountInCoCodeCrcy | TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | ||
| TaxAmountInCoCodeCrcy | TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | ||
| TaxCode | TaxCode | Tax Code | ||
| TransactionTypeDetermination | TransactionTypeDetermination | Transaction Key | ||
| ConditionType | ConditionType | Condition type | ||
| TaxRateValidityStartDate | TaxRateValidityStartDate | Tax Rate Validity Start Date | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| AmountInTransactionCurrency | AmountInTransactionCurrency | Pt Crcy Amt | ||
| TaxBaseAmountInTransCrcy | TaxBaseAmountInTransCrcy | Value-Added Tax | ||
| TaxAmountInTransCrcy | TaxAmountInTransCrcy | TaxAmt in Tran. Crcy | ||
| SupplierFullName | SupplierFullName | |||
| CityName | CityName | Name | ||
| PostalCode | PostalCode | Postal Code | ||
| StreetName | StreetName | Text | ||
| ClearingDays | ClearingDays | |||
| NetDueInterval1Days | ||||
| NetDueInterval2Days | ||||
| NetDueInterval3Days | ||||
| Segment1DueAmountInCoCodeCrcy | ||||
| Segment2DueAmountInCoCodeCrcy | ||||
| Segment3DueAmountInCoCodeCrcy | ||||
| IsOverdue | IsOverdue | |||
| OverdueAmount | OverdueAmount | |||
| OverdueDays | OverdueDays | |||
| PaymentDifferenceReason | PaymentDifferenceReason | Reason Code | ||
| _Supplier | _Supplier | |||
| _OperationalAcctgDocItem | _OperationalAcctgDocItem | |||
| _PaymentDifferenceReason | _PaymentDifferenceReason |
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_GB_ClrdPaytPracticePerf2.
-- 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.
-- Parameters: P_FromReportingDate : figen_rep_date_from, P_ToReportingDate : figen_rep_date_to
CREATE VIEW P_GB_ClrdPaytPracticePerf2 AS
SELECT
SourceLedger,
Ledger,
CompanyCode,
FiscalYear,
AccountingDocument,
LedgerGLLineItem,
AccountingDocumentItem,
AccountingDocumentCategory,
AccountingDocumentType,
InvoiceReference,
InvoiceItemReference,
InvoiceReferenceFiscalYear,
ClearingDate,
PostingDate,
DocumentDate,
InvoiceReceiptDate,
FinancialAccountType,
Supplier,
FollowOnDocumentType,
SpecialGLCode,
GLAccount,
CostCenter,
ProfitCenter,
FunctionalArea,
BusinessArea,
ControllingArea,
Segment,
PurchasingDocument,
AssignmentReference,
CompanyCodeCurrency,
AmountInCompanyCodeCurrency,
NetDueDate,
TaxBaseAmountInCoCodeCrcy,
TaxAmountInCoCodeCrcy,
TaxCode,
TransactionTypeDetermination,
ConditionType,
TaxRateValidityStartDate,
TransactionCurrency,
AmountInTransactionCurrency,
TaxBaseAmountInTransCrcy,
TaxAmountInTransCrcy,
SupplierFullName,
CityName,
PostalCode,
StreetName,
ClearingDays,
cast( ( case when ClearingDays >= 0 and ClearingDays <= 30 then 1 end ) as gb_pppr_payment1 ) AS NetDueInterval1Days,
cast( ( case when ClearingDays > 30 and ClearingDays <= 60 then 1 end ) as gb_pppr_payment2 ) AS NetDueInterval2Days,
cast( ( case when ClearingDays > 60 then 1 end ) as gb_pppr_payment3 ) AS NetDueInterval3Days,
cast ( ( case when ClearingDays >= 0 and ClearingDays <= 30 then AmountInCompanyCodeCurrency end ) as gb_pppr_amount1 ) AS Segment1DueAmountInCoCodeCrcy,
cast ( ( case when ClearingDays > 30 and ClearingDays <= 60 then AmountInCompanyCodeCurrency end ) as gb_pppr_amount2 ) AS Segment2DueAmountInCoCodeCrcy,
cast ( ( case when ClearingDays > 60 then AmountInCompanyCodeCurrency end ) as gb_pppr_amount3 ) AS Segment3DueAmountInCoCodeCrcy,
IsOverdue,
OverdueAmount,
OverdueDays,
PaymentDifferenceReason
FROM P_GB_ClrdPaytPracticePerf1
;
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