/SAPAPO/CDPS_CURTORUL_SEL

DDL: /SAPAPO/CDPS_CURTORUL_SEL SQL: /SAPAPO/CURLSELH Type: view

Selection of Resource Usage

/SAPAPO/CDPS_CURTORUL_SEL is a CDS View that provides data about "Selection of Resource Usage" in SAP S/4HANA. It reads from 8 data sources and exposes 19 fields with key fields cluster_guid, resuid, matid, locid, trpid.

Data Sources (8)

SourceAliasJoin Type
/sapapo/cullhdr cullhdr inner
/sapapo/curtoppe curtoppe left_outer
/sapapo/curtorul curtorul from
/sapapo/locmap locmap inner
mara mara inner
nsdm_e_marc marc inner
/sapapo/res_head res_head inner
/sapapo/trprod trprod left_outer

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName /SAPAPO/CURLSELH view
EndUserText.label Selection of Resource Usage view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY cluster_guid /sapapo/curtorul cluster_guid Cluster ID
KEY resuid /sapapo/curtorul resuid Internal Resrce
KEY matid /sapapo/curtorul matid Product ID
KEY locid /sapapo/curtorul locid Single-Character Flag
KEY trpid /sapapo/curtorul trpid Shipment ID (TRPID)
KEY timestamp /sapapo/cullhdr timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
KEY ppekind /sapapo/cullhdr ppekind Plan Explosion
sos_name /sapapo/trprod name Zone name
locno /sapapo/locmap locno Location
matnr
planner_pps
beskz
mstae mara mstae X-Plant Status
mstde mara mstde Valid from
mmsta nsdm_e_marc mmsta Primary Status
mmstd nsdm_e_marc mmstd Valid From
val_fr
val_to
sprio /sapapo/curtoppe sprio Sel.Priority

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 /SAPAPO/CDPS_CURTORUL_SEL.
-- 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: /SAPAPO/CURLSELH

CREATE VIEW /SAPAPO/CDPS_CURTORUL_SEL AS
SELECT
  curtorul.cluster_guid AS cluster_guid,
  curtorul.resuid AS resuid,
  curtorul.matid AS matid,
  curtorul.locid AS locid,
  curtorul.trpid AS trpid,
  cullhdr.timestamp AS timestamp,
  cullhdr.ppekind AS ppekind,
  trprod.name AS sos_name,
  locmap.locno AS locno,
  cast(mara.matnr as /sapapo/matnr preserving type) AS matnr,
  cast(marc.dispo as /sapapo/planner_pps preserving type) AS planner_pps,
  cast(marc.beskz as /sapapo/beskz preserving type) AS beskz,
  mara.mstae AS mstae,
  mara.mstde AS mstde,
  marc.mmsta AS mmsta,
  marc.mmstd AS mmstd,
  tstmp_to_dats(curtoppe.val_fr, res_head.tzone, $session.client, 'NULL') AS val_fr,
  tstmp_to_dats(curtoppe.val_to, res_head.tzone, $session.client, 'NULL') AS val_to,
  curtoppe.sprio AS sprio
FROM /sapapo/curtorul AS curtorul
INNER JOIN /sapapo/locmap AS locmap ON /* join condition not captured in parsed metadata */
INNER JOIN /sapapo/res_head AS res_head ON /* join condition not captured in parsed metadata */
INNER JOIN mara ON /* join condition not captured in parsed metadata */
INNER JOIN nsdm_e_marc AS marc ON /* join condition not captured in parsed metadata */
INNER JOIN /sapapo/cullhdr AS cullhdr ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN /sapapo/trprod AS trprod ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN /sapapo/curtoppe AS curtoppe ON /* join condition not captured in parsed metadata */
;