C_APInvcProcessingStatistics

DDL: C_APINVCPROCESSINGSTATISTICS SQL: CAPINVCPRCG Type: view CONSUMPTION Package: ODATA_APOVERVIEWPAGE

Invoice Processing Statistics

C_APInvcProcessingStatistics is a Consumption CDS View that provides data about "Invoice Processing Statistics" in SAP S/4HANA. It reads from 1 data source (I_APInvcProcessingStatistics) and exposes 30 fields with key fields AccountingDocument, FiscalYear. It is exposed through 1 OData service (ASQL_F2917). Part of development package ODATA_APOVERVIEWPAGE.

Data Sources (1)

SourceAliasJoin Type
I_APInvcProcessingStatistics I_APInvcProcessingStatistics from

Parameters (5)

NameTypeDefault
P_KeyDate vdm_v_key_date
P_TodayDate sydate
P_Language sylangu
P_IsCurrentFiscalPeriod char1
P_FiscalPeriodStartDate sydate

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CAPINVCPRCG view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Invoice Processing Statistics view
Metadata.ignorePropogatedAnnotations true view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE 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 (30)

KeyFieldSource TableSource FieldDescription
lookupEntityC_APMinFiscalPeriodStartDate
resultElementFiscalPeriodStartDate
P_KeyDate
P_TodayDate
P_Language
P_IsCurrentFiscalPeriodkeyCompanyCode
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
FiscalYearPeriod Period/Year
SupplierBasicAuthorizationGrp SupplierBasicAuthorizationGrp
FinancialAccountType FinancialAccountType Fin. Account Type
Supplier Supplier Supplier
SupplierCountry SupplierCountry
SupplierFinsAuthorizationGrp SupplierFinsAuthorizationGrp
AccountingClerk AccountingClerk Clerk Abbrev.
ReconciliationAccount Recon. account
YearMonth
FromIssuedToPostedDays Avg Number of Days
FromDueToPayDays Avg Number of Days
FromParkedToPostedDays Avg Number of Days
DataPeriodName
SAPObjectCategoryName
FromParkedToPostedDaysCatName
NumberOfInvoices Number of Documents
IsCleared IsCleared Integer
IsParked IsParked
PostingDate PostingDate Posting Date for GR
BusinessArea BusinessArea Business Area
Debtor Debtor Debtor
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_APInvcProcessingStatistics.
-- 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: CAPINVCPRCG
-- Parameters: P_KeyDate : vdm_v_key_date, P_TodayDate : sydate, P_Language : sylangu, P_IsCurrentFiscalPeriod : char1, P_FiscalPeriodStartDate : sydate

CREATE VIEW C_APInvcProcessingStatistics AS
SELECT
  lookupEntity: 'C_APMinFiscalPeriodStartDate' AS lookupEntityC_APMinFiscalPeriodStartDate,
  resultElement: 'FiscalPeriodStartDate' AS resultElementFiscalPeriodStartDate,
  binding: [{ targetParameter: 'P_TodayDate', type : #SYSTEM_FIELD, value : '#SYSTEM_DATE' AS P_KeyDate,
  P_TodayDate: $parameters.P_TodayDate AS P_TodayDate,
  P_Language: $parameters.P_Language AS P_Language,
  AccountingDocument,
  FiscalYear,
  cast(FiscalYearPeriod as fincs_fiscalyearperiod) AS FiscalYearPeriod,
  SupplierBasicAuthorizationGrp,
  FinancialAccountType,
  Supplier,
  SupplierCountry,
  SupplierFinsAuthorizationGrp,
  AccountingClerk,
  cast (ReconciliationAccount as farp_akont ) AS ReconciliationAccount,
  cast(concat( concat( right( FiscalYearPeriod, 2 ), '.'), left( FiscalYearPeriod, 4 ) ) as cacsmonthyear) AS YearMonth,
  fltp_to_dec( FromIssuedToPostedDays as abap.dec(10,2) ) AS FromIssuedToPostedDays,
  fltp_to_dec( FromDueToPayDays as abap.dec(10,2) ) AS FromDueToPayDays,
  fltp_to_dec( FromParkedToPostedDays as abap.dec(10,2) ) AS FromParkedToPostedDays,
  cast('' as char20) AS DataPeriodName,
  cast('' as char20) AS SAPObjectCategoryName,
  cast('' as char20) AS FromParkedToPostedDaysCatName,
  cast('1' as abap.int4) AS NumberOfInvoices,
  IsCleared,
  IsParked,
  PostingDate,
  BusinessArea,
  Debtor,
  AccountingDocumentType
FROM I_APInvcProcessingStatistics
;