/SAPAPO/CDPS_CURTORUL_SEL
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)
| Source | Alias | Join 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA