P_ONRKL

DDL: P_ONRKL SQL: PFIONRKL Type: view BASIC

P_ONRKL is a Basic CDS View in SAP S/4HANA. It reads from 3 data sources (csks, csla, onrkl) and exposes 6 fields with key field objnr.

Data Sources (3)

SourceAliasJoin Type
csks csks left_outer
csla csla left_outer
onrkl onrkl from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PFIONRKL 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 (6)

KeyFieldSource TableSource FieldDescription
KEY objnr onrkl objnr Val. Obj. No.
kokrs onrkl kokrs Org. Value
kostl onrkl kostl Substitute CC
lstar onrkl lstar Activity Type
bukrs csks bukrs Value
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_ONRKL.
-- 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: PFIONRKL

CREATE VIEW P_ONRKL AS
SELECT
  onrkl.objnr AS objnr,
  onrkl.kokrs AS kokrs,
  onrkl.kostl AS kostl,
  onrkl.lstar AS lstar,
  csks.bukrs AS bukrs,
  cast ( SUBSTRING( onrkl.objnr, 1, 2) as j_obart) AS OBART
FROM onrkl
LEFT OUTER JOIN csla ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN csks ON /* join condition not captured in parsed metadata */
;