P_RU_FIRSTACCDOCITEMPARTNR

DDL: P_RU_FIRSTACCDOCITEMPARTNR SQL: PRUFRSTITEMPRT Type: view COMPOSITE

First Item with Partner

P_RU_FIRSTACCDOCITEMPARTNR is a Composite CDS View that provides data about "First Item with Partner" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 4 fields with key fields CompanyCode, AccountingDocument, FiscalYear.

Data Sources (1)

SourceAliasJoin Type
I_OperationalAcctgDocItem I_OperationalAcctgDocItem from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PRUFRSTITEMPRT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label First Item with Partner view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
AccountingDocumentItem

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_RU_FIRSTACCDOCITEMPARTNR.
-- 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: PRUFRSTITEMPRT

CREATE VIEW P_RU_FIRSTACCDOCITEMPARTNR AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  min(AccountingDocumentItem) AS AccountingDocumentItem
FROM I_OperationalAcctgDocItem
;