P_ARAgingIntervalAssignment
P_ARAgingIntervalAssignment is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_ARJrnlEntrItmOpenRec2_CC) and exposes 59 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_ARJrnlEntrItmOpenRec2_CC | P_ARJrnlEntrItmOpenRec2_CC | from |
Parameters (11)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | vdm_v_key_date | |
| P_OverdueInterval1Days | far_overdue_interval1 | |
| P_OverdueInterval2Days | far_overdue_interval2 | |
| P_OverdueInterval3Days | far_overdue_interval3 | |
| P_OverdueInterval4Days | far_overdue_interval4 | |
| P_OverdueInterval5Days | far_overdue_interval5 | |
| P_OverdueInterval6Days | far_overdue_interval6 | |
| P_FutureDueInterval1Days | far_future_due_interval1 | |
| P_FutureDueInterval2Days | far_future_due_interval2 | |
| P_FutureDueInterval3Days | far_future_due_interval3 | |
| P_LeadingLedger | fins_ledger |
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (59)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | ||
| Customer | Customer | Sold-to Party | ||
| GLAccount | GLAccount | General Ledger | ||
| SpecialGLCode | SpecialGLCode | Special G/L Ind | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| BusinessArea | BusinessArea | Business Area | ||
| Segment | Segment | Segment number | ||
| BillingDocument | BillingDocument | SD Document | ||
| AssignmentReference | AssignmentReference | Assignment Reference | ||
| FinancialAccountType | FinancialAccountType | Fin. Account Type | ||
| Reference1IDByBusinessPartner | Reference1IDByBusinessPartner | Reference Key 1 | ||
| Reference2IDByBusinessPartner | Reference2IDByBusinessPartner | Reference Key 2 | ||
| Reference3IDByBusinessPartner | Reference3IDByBusinessPartner | Reference Key 3 | ||
| PaymentMethod | PaymentMethod | Pymt Meth. | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| P_KeyDateelseNetDueDateendasNetDueDate | ||||
| NetDueArrearsDays | ||||
| DaysInArrearsBoundaryInFuture | ||||
| DaysInArrearsBoundaryInPast | ||||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| AmountInCompanyCodeCurrency | AmountInCompanyCodeCurrency | Local Crcy Amt | ||
| CustomerCountry | CustomerCountry | |||
| CustomerRegion | CustomerRegion | |||
| CustomerAccountGroup | CustomerAccountGroup | Account group | ||
| CompanyCodeCountry | CompanyCodeCountry | Reporting Ctry/Reg. | ||
| CustomerBasicAuthorizationGrp | CustomerBasicAuthorizationGrp | |||
| CustomerClassification | CustomerClassification | Customer Class. | ||
| CustomerCorporateGroup | CustomerCorporateGroup | Group | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| WBSElementExternalID | WBSElementExternalID | WBS Element External ID | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| ProjectExternalID | ProjectExternalID | Project def. | ||
| ProjectInternalID | ProjectInternalID | Project Def. | ||
| _Customer | _Customer | |||
| _CompanyCode | _CompanyCode | |||
| _JournalEntry | _JournalEntry | |||
| _SpecialGLCode | _SpecialGLCode | |||
| _FinancialAccountType | _FinancialAccountType | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| _ProfitCenter | _ProfitCenter | |||
| _CurrentProfitCenter | _CurrentProfitCenter | |||
| _CompanyCodeCountry | _CompanyCodeCountry | |||
| _ControllingArea | _ControllingArea | |||
| _CustomerClassification | _CustomerClassification | |||
| _FunctionalArea | _FunctionalArea | |||
| _BusinessArea | _BusinessArea | |||
| _Segment | _Segment | |||
| _WBSElementBasicData | _WBSElementBasicData | |||
| _ProjectBasicData | _ProjectBasicData | |||
| _WBSElementExternalID | _WBSElementExternalID | |||
| _ProjectExternalID | _ProjectExternalID |
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_ARAgingIntervalAssignment.
-- 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_KeyDate : vdm_v_key_date, P_OverdueInterval1Days : far_overdue_interval1, P_OverdueInterval2Days : far_overdue_interval2, P_OverdueInterval3Days : far_overdue_interval3, P_OverdueInterval4Days : far_overdue_interval4, P_OverdueInterval5Days : far_overdue_interval5, P_OverdueInterval6Days : far_overdue_interval6, P_FutureDueInterval1Days : far_future_due_interval1, P_FutureDueInterval2Days : far_future_due_interval2, P_FutureDueInterval3Days : far_future_due_interval3, P_LeadingLedger : fins_ledger
CREATE VIEW P_ARAgingIntervalAssignment AS
SELECT
CompanyCode,
FiscalYear,
AccountingDocument,
LedgerGLLineItem,
AccountingDocumentItem,
Customer,
GLAccount,
SpecialGLCode,
ProfitCenter,
FunctionalArea,
BusinessArea,
Segment,
BillingDocument,
AssignmentReference,
FinancialAccountType,
Reference1IDByBusinessPartner,
Reference2IDByBusinessPartner,
Reference3IDByBusinessPartner,
PaymentMethod,
ChartOfAccounts,
ControllingArea,
case when SpecialGLTransactionType = 'A' and SpecialGLCode != 'F' then $parameters.P_KeyDate else NetDueDate end as NetDueDate AS P_KeyDateelseNetDueDateendasNetDueDate,
dats_days_between(NetDueDate, $parameters.P_KeyDate) AS NetDueArrearsDays,
abap.int4'-4000000' AS DaysInArrearsBoundaryInFuture,
abap.int4'4000000' AS DaysInArrearsBoundaryInPast,
CompanyCodeCurrency,
AmountInCompanyCodeCurrency,
CustomerCountry,
CustomerRegion,
CustomerAccountGroup,
CompanyCodeCountry,
CustomerBasicAuthorizationGrp,
CustomerClassification,
CustomerCorporateGroup,
DocumentDate,
PostingDate,
WBSElementExternalID,
WBSElementInternalID,
ProjectExternalID,
ProjectInternalID
FROM P_ARJrnlEntrItmOpenRec2_CC
;
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