P_CALastSequenceNumber

DDL: P_CALASTSEQUENCENUMBER SQL: PCALASTSQNCNMBR Type: view COMPOSITE

P_CALastSequenceNumber is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CAValueAdjustmentPosting) and exposes 6 fields with key fields CADocument, CARepetitionItemNumber, CABPItemNumber, CAPostingDate, CAValuationArea.

Data Sources (1)

SourceAliasJoin Type
I_CAValueAdjustmentPosting I_CAValueAdjustmentPosting from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PCALASTSQNCNMBR view
VDM.private true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_ALLOWED view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CADocument CADocument CA Document No.
KEY CARepetitionItemNumber CARepetitionItemNumber Repetition Item
KEY CABPItemNumber CABPItemNumber Item
KEY CAPostingDate CAPostingDate Posting Date
KEY CAValuationArea CAValuationArea Valuation Area
KEY CAValueAdjmtSequenceNumber

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_CALastSequenceNumber.
-- 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: PCALASTSQNCNMBR

CREATE VIEW P_CALastSequenceNumber AS
SELECT
  CADocument,
  CARepetitionItemNumber,
  CABPItemNumber,
  CAPostingDate,
  CAValuationArea,
  max(CAValueAdjmtSequenceNumber) AS CAValueAdjmtSequenceNumber
FROM I_CAValueAdjustmentPosting
;