P_IL_CARecTypeBestMtchBPItmKey

DDL: P_IL_CARECTYPEBESTMTCHBPITMKEY Type: view_entity COMPOSITE

P_IL_CARecTypeBestMtchBPItmKey is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_IL_CATrnsfdDocBPItmRecdType) and exposes 7 fields with key fields CADocumentNumber, CARepetitionItemNumber, CABPItemNumber, CASubItemNumber.

Data Sources (1)

SourceAliasJoin Type
P_IL_CATrnsfdDocBPItmRecdType P_IL_CATrnsfdDocBPItmRecdType from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY CADocumentNumber CADocumentNumber Document Number
KEY CARepetitionItemNumber CARepetitionItemNumber Repetition Item
KEY CABPItemNumber CABPItemNumber Item
KEY CASubItemNumber CASubItemNumber Subitem
CompanyCode CompanyCode Receiver Company Code
TaxReportingDate TaxReportingDate Tax Reporting Date
CountOfNonInitial

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_IL_CARecTypeBestMtchBPItmKey.
-- 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.

CREATE VIEW P_IL_CARecTypeBestMtchBPItmKey AS
SELECT
  CADocumentNumber,
  CARepetitionItemNumber,
  CABPItemNumber,
  CASubItemNumber,
  CompanyCode,
  TaxReportingDate,
  max(CountOfNonInitial) AS CountOfNonInitial
FROM P_IL_CATrnsfdDocBPItmRecdType
;