P_ONRSV

DDL: P_ONRSV SQL: PFIONRSV Type: view BASIC

P_ONRSV is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (fco_srvdoc, onrsv) and exposes 4 fields with key field objnr.

Data Sources (2)

SourceAliasJoin Type
fco_srvdoc fco_srvdoc inner
onrsv onrsv from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PFIONRSV view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY objnr onrsv objnr Val. Obj. No.
kokrs fco_srvdoc controlling_area CO Area
bukrs fco_srvdoc company_code Company Code
OBART

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_ONRSV.
-- 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: PFIONRSV

CREATE VIEW P_ONRSV AS
SELECT
  onrsv.objnr AS objnr,
  fco_srvdoc.controlling_area AS kokrs,
  fco_srvdoc.company_code AS bukrs,
  cast ( SUBSTRING( onrsv.objnr, 1, 2) as j_obart) AS OBART
FROM onrsv
INNER JOIN fco_srvdoc ON /* join condition not captured in parsed metadata */
;