C_APParkedInvoice

DDL: C_APPARKEDINVOICE SQL: CPARKEDINV Type: view CONSUMPTION Package: ODATA_APOVERVIEWPAGE

Parked Invoices

C_APParkedInvoice is a Consumption CDS View that provides data about "Parked Invoices" in SAP S/4HANA. It reads from 1 data source (R_AccountsPayablesItem) and exposes 21 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem. It is exposed through 1 OData service (ASQL_F2917). Part of development package ODATA_APOVERVIEWPAGE.

Data Sources (1)

SourceAliasJoin Type
R_AccountsPayablesItem R_AccountsPayablesItem from

Parameters (4)

NameTypeDefault
P_KeyDate vdm_v_key_date
P_TodayDate sydate
P_Language sylangu
P_DisplayCurrency vdm_v_display_currency

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CPARKEDINV view
Metadata.ignorePropogatedAnnotations true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Parked Invoices view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F2917 ASQL_F2917 C2 NOT_RELEASED

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocumentItem AccountingDocumentItem Posting View Item
Supplier Supplier Supplier
AccountingDocumentCreationDate AccountingDocumentCreationDate Journal Entry Date
PostingDate PostingDate Posting Date for GR
TotalNoOfDays
DueItemCategory DueItemType
P_TodayDateasAmountInDisplayCurrency
DisplayCurrency
TransactionCurrency TransactionCurrency Transaction Currency
AmountInTransactionCurrency AmountInTransactionCurrency Pt Crcy Amt
FinancialAccountType FinancialAccountType Fin. Account Type
SupplierFinsAuthorizationGrp SupplierFinsAuthorizationGrp
SupplierBasicAuthorizationGrp SupplierBasicAuthorizationGrp
AccountingClerk AccountingClerk Clerk Abbrev.
SupplierCountry SupplierCountry
ReconciliationAccount ReconciliationAccount Recon. account
BusinessArea BusinessArea Business Area
AccountingDocumentType AccountingDocumentType Journal Entry Type

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 C_APParkedInvoice.
-- 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: CPARKEDINV
-- Parameters: P_KeyDate : vdm_v_key_date, P_TodayDate : sydate, P_Language : sylangu, P_DisplayCurrency : vdm_v_display_currency

CREATE VIEW C_APParkedInvoice AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  AccountingDocumentItem,
  Supplier,
  AccountingDocumentCreationDate,
  PostingDate,
  cast( DATS_DAYS_BETWEEN(AccountingDocumentCreationDate, :P_KeyDate) as abap.dec(7,0) ) AS TotalNoOfDays,
  DueItemType AS DueItemCategory,
  currency_conversion( amount => AmountInCompanyCodeCurrency, source_currency => CompanyCodeCurrency, target_currency => $parameters.P_DisplayCurrency, exchange_rate_date => $parameters.P_TodayDate ) as AmountInDisplayCurrency AS P_TodayDateasAmountInDisplayCurrency,
  $parameters.P_DisplayCurrency AS DisplayCurrency,
  TransactionCurrency,
  AmountInTransactionCurrency,
  FinancialAccountType,
  SupplierFinsAuthorizationGrp,
  SupplierBasicAuthorizationGrp,
  AccountingClerk,
  SupplierCountry,
  ReconciliationAccount,
  BusinessArea,
  AccountingDocumentType
FROM R_AccountsPayablesItem
;