P_RblsItmForKeyDteDuePerd1b
P_RblsItmForKeyDteDuePerd1b is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItemRawData) and exposes 29 fields with key fields CompanyCode, AccountingDocument, AccountingDocumentItem, PostingFiscalYear. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItemRawData | Receivables | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sydate | |
| P_PeriodType | fis_period_type | |
| P_CompanyCode | fis_bukrs |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CalendarDate | _CalendarDate | _CalendarDate.CalendarDate = $parameters.P_KeyDate |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRBLSKDATDUE1B | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_GLAccountLineItemRawData | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | I_GLAccountLineItemRawData | AccountingDocument | Journal Entry |
| KEY | AccountingDocumentItem | I_GLAccountLineItemRawData | AccountingDocumentItem | Posting View Item |
| KEY | PostingFiscalYear | I_GLAccountLineItemRawData | FiscalYear | G/L Fiscal Year |
| InvoiceReference | I_GLAccountLineItemRawData | InvoiceReference | Invoice Reference | |
| InvoiceItemReference | I_GLAccountLineItemRawData | InvoiceItemReference | Item | |
| InvoiceReferenceFiscalYear | I_GLAccountLineItemRawData | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | |
| ClearingDate | I_GLAccountLineItemRawData | ClearingDate | Clearing Date | |
| PostingDate | I_GLAccountLineItemRawData | PostingDate | Posting Date for GR | |
| DocumentDate | I_GLAccountLineItemRawData | DocumentDate | Journal Entry Date | |
| FinancialAccountType | I_GLAccountLineItemRawData | FinancialAccountType | Fin. Account Type | |
| DebitCreditCode | I_GLAccountLineItemRawData | DebitCreditCode | Single-Character Flag | |
| Customer | I_GLAccountLineItemRawData | Customer | Sold-to Party | |
| FollowOnDocumentType | I_GLAccountLineItemRawData | FollowOnDocumentType | Follow-On Document Type | |
| NetDueDate | I_GLAccountLineItemRawData | NetDueDate | Net Due Date | |
| SpecialGLCode | I_GLAccountLineItemRawData | SpecialGLCode | Special G/L Ind | |
| GLAccount | I_GLAccountLineItemRawData | GLAccount | General Ledger | |
| CompanyCodeCurrency | I_GLAccountLineItemRawData | CompanyCodeCurrency | Local Currency | |
| FunctionalCurrency | I_GLAccountLineItemRawData | FunctionalCurrency | Functional Currency | |
| GlobalCurrency | I_GLAccountLineItemRawData | GlobalCurrency | GM Billing Element: Global Currency | |
| AmountInCompanyCodeCurrency | I_GLAccountLineItemRawData | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| AmountInFunctionalCurrency | I_GLAccountLineItemRawData | AmountInFunctionalCurrency | Amount in Functional Currency | |
| AmountInGlobalCurrency | I_GLAccountLineItemRawData | AmountInGlobalCurrency | Amount in Global Currency | |
| PostingKey | I_GLAccountLineItemRawData | PostingKey | Posting Key | |
| AccountingDocumentCategory | I_GLAccountLineItemRawData | AccountingDocumentCategory | Journal Entry Category | |
| BusinessArea | I_GLAccountLineItemRawData | BusinessArea | Business Area | |
| FiscalPeriod | I_GLAccountLineItemRawData | FiscalPeriod | Tax period | |
| CalendarYearendasReportingYear | ||||
| CalendarWeekendasReportingPeriod |
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_RblsItmForKeyDteDuePerd1b.
-- 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: PRBLSKDATDUE1B
-- Parameters: P_KeyDate : sydate, P_PeriodType : fis_period_type, P_CompanyCode : fis_bukrs
CREATE VIEW P_RblsItmForKeyDteDuePerd1b AS
SELECT
Receivables.CompanyCode AS CompanyCode,
Receivables.AccountingDocument AS AccountingDocument,
Receivables.AccountingDocumentItem AS AccountingDocumentItem,
Receivables.FiscalYear AS PostingFiscalYear,
Receivables.InvoiceReference AS InvoiceReference,
Receivables.InvoiceItemReference AS InvoiceItemReference,
Receivables.InvoiceReferenceFiscalYear AS InvoiceReferenceFiscalYear,
Receivables.ClearingDate AS ClearingDate,
Receivables.PostingDate AS PostingDate,
Receivables.DocumentDate AS DocumentDate,
Receivables.FinancialAccountType AS FinancialAccountType,
Receivables.DebitCreditCode AS DebitCreditCode,
Receivables.Customer AS Customer,
Receivables.FollowOnDocumentType AS FollowOnDocumentType,
Receivables.NetDueDate AS NetDueDate,
Receivables.SpecialGLCode AS SpecialGLCode,
Receivables.GLAccount AS GLAccount,
Receivables.CompanyCodeCurrency AS CompanyCodeCurrency,
Receivables.FunctionalCurrency AS FunctionalCurrency,
Receivables.GlobalCurrency AS GlobalCurrency,
Receivables.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
Receivables.AmountInFunctionalCurrency AS AmountInFunctionalCurrency,
Receivables.AmountInGlobalCurrency AS AmountInGlobalCurrency,
Receivables.PostingKey AS PostingKey,
Receivables.AccountingDocumentCategory AS AccountingDocumentCategory,
Receivables.BusinessArea AS BusinessArea,
Receivables.FiscalPeriod AS FiscalPeriod,
case $parameters.P_PeriodType when 'F' then _FiscalPeriod.FiscalYear when 'M' then _CalendarDate.CalendarYear when 'W' then _CalendarDate.CalendarYear end as ReportingYear AS CalendarYearendasReportingYear,
case $parameters.P_PeriodType when 'F' then _FiscalPeriod.FiscalPeriod when 'M' then cast(_CalendarDate.CalendarMonth as char3) when 'W' then _CalendarDate.CalendarWeek end as ReportingPeriod AS CalendarWeekendasReportingPeriod
FROM I_GLAccountLineItemRawData AS Receivables
LEFT OUTER JOIN I_CalendarDate AS _CalendarDate ON _CalendarDate.CalendarDate = $parameters.P_KeyDate -- association [0..1]
;
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