/SCMTMS/CV_ResourceBE
BOPF: Resource APO Enhanced Data (old)
/SCMTMS/CV_ResourceBE is a CDS View that provides data about "BOPF: Resource APO Enhanced Data (old)" in SAP S/4HANA. It reads from 3 data sources (/sapapo/trtype, /sapapo/cpmtr, I_ResourceBasic) and exposes 21 fields with key field ResourceUUID. It has 2 associations to related views. Part of development package /SCMTMS/CDS_FO_RESOURCE.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| /sapapo/trtype | _MeansOfTransport | left_outer |
| /sapapo/cpmtr | _MtrCompartment | left_outer |
| I_ResourceBasic | _ResourceBasic | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ResourceTextBasic | _ResourceTextBasic | $projection.ResourceUUID = _ResourceTextBasic.ResourceUUID and _ResourceTextBasic.ResourceSimulationSessionUUID = '' and _ResourceTextBasic.ResourceSimulationVersionUUID = '' and _ResourceTextBasic.Language = $session.system_language |
| [0..1] | I_LocationBasic | _LocationBasic | $projection.ResourceHomeLocationUUID = _LocationBasic.LocationUUID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | /SCMTMS/CV_RES01 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| EndUserText.label | BOPF: Resource APO Enhanced Data (old) | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ResourceUUID | I_ResourceBasic | ResourceUUID | Internal Resrce |
| ResourceID | I_ResourceBasic | ResourceID | Vehicle ID | |
| LocationUUID | _LocationBasic | LocationUUID | UUID | |
| LocationAdditionalUUID | _LocationBasic | LocationAdditionalUUID | ||
| ResourceType | I_ResourceBasic | ResourceType | Worklist Type | |
| ResourceFactoryCalendar | I_ResourceBasic | ResourceFactoryCalendar | Workdays only | |
| ResourceHomeLocationUUID | I_ResourceBasic | ResourceHomeLocationUUID | Single-Character Flag | |
| ResourceSimulationSessionUUID | I_ResourceBasic | ResourceSimulationSessionUUID | Sim. Session | |
| ResourceSimulationVersionUUID | I_ResourceBasic | ResourceSimulationVersionUUID | GUID | |
| ResourceTimeZone | I_ResourceBasic | ResourceTimeZone | Time Zone Difference | |
| TransportMeansType | I_ResourceBasic | TransportMeansType | Packag.Mat.Type | |
| LastChangedByUser | I_ResourceBasic | LastChangedByUser | User Name | |
| ChangedDateTime | I_ResourceBasic | ChangedDateTime | Time Stamp | |
| IsMultiResource | /sapapo/trtype | ext_ttype_flg | Multiresource | |
| NumberOfResources | /sapapo/trtype | ext_ttype_num | No. of Indiv. Res. | |
| IsPassiveResource | /sapapo/trtype | passive | Passive | |
| MultiResourceIsLocked | /sapapo/trtype | lock_multires | Lock Multiresource | |
| TransportationMode | /sapapo/trtype | trmodcode | Mode of Transp. | |
| ResourceCompartmentProfile | /sapapo/cpmtr | cmprofile | Comp. Profile | |
| ResourceName | _ResourceTextBasic | ResourceName | ||
| Language | _ResourceTextBasic | Language | Report Text Language |
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 /SCMTMS/CV_ResourceBE.
-- 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: /SCMTMS/CV_RES01
CREATE VIEW /SCMTMS/CV_ResourceBE AS
SELECT
_ResourceBasic.ResourceUUID AS ResourceUUID,
_ResourceBasic.ResourceID AS ResourceID,
_LocationBasic.LocationUUID AS LocationUUID,
_LocationBasic.LocationAdditionalUUID AS LocationAdditionalUUID,
_ResourceBasic.ResourceType AS ResourceType,
_ResourceBasic.ResourceFactoryCalendar AS ResourceFactoryCalendar,
_ResourceBasic.ResourceHomeLocationUUID AS ResourceHomeLocationUUID,
_ResourceBasic.ResourceSimulationSessionUUID AS ResourceSimulationSessionUUID,
_ResourceBasic.ResourceSimulationVersionUUID AS ResourceSimulationVersionUUID,
_ResourceBasic.ResourceTimeZone AS ResourceTimeZone,
_ResourceBasic.TransportMeansType AS TransportMeansType,
_ResourceBasic.LastChangedByUser AS LastChangedByUser,
_ResourceBasic.ChangedDateTime AS ChangedDateTime,
_MeansOfTransport.ext_ttype_flg AS IsMultiResource,
_MeansOfTransport.ext_ttype_num AS NumberOfResources,
_MeansOfTransport.passive AS IsPassiveResource,
_MeansOfTransport.lock_multires AS MultiResourceIsLocked,
_MeansOfTransport.trmodcode AS TransportationMode,
_MtrCompartment.cmprofile AS ResourceCompartmentProfile,
_ResourceTextBasic.ResourceName AS ResourceName,
_ResourceTextBasic.Language AS Language
FROM I_ResourceBasic AS _ResourceBasic
LEFT OUTER JOIN /sapapo/trtype AS _MeansOfTransport ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN /sapapo/cpmtr AS _MtrCompartment ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ResourceTextBasic AS _ResourceTextBasic ON ResourceUUID = _ResourceTextBasic.ResourceUUID AND _ResourceTextBasic.ResourceSimulationSessionUUID = '' AND _ResourceTextBasic.ResourceSimulationVersionUUID = '' AND _ResourceTextBasic.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_LocationBasic AS _LocationBasic ON ResourceHomeLocationUUID = _LocationBasic.LocationUUID -- association [0..1]
;
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