I_ResourceBasic

DDL: I_RESOURCEBASIC SQL: IRESOURCEBASIC Type: view BASIC

APO Resource

I_ResourceBasic is a Basic CDS View that provides data about "APO Resource" in SAP S/4HANA. It reads from 1 data source (/sapapo/res_head) and exposes 16 fields with key fields ResourceUUID, ResourceSimulationSessionUUID, ResourceSimulationVersionUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
/sapapo/res_head ResourceBasic from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_ResourceTextBasic _ResourceTextBasic $projection.ResourceUUID = _ResourceTextBasic.ResourceUUID and $projection.ResourceSimulationSessionUUID = _ResourceTextBasic.ResourceSimulationSessionUUID and $projection.ResourceSimulationVersionUUID = _ResourceTextBasic.ResourceSimulationVersionUUID
[0..1] I_LocationBasic _LocationBasic $projection.ResourceHomeLocationUUID = _LocationBasic.LocationUUID

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IRESOURCEBASIC 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
ObjectModel.representativeKey ResourceUUID view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #NONE view
EndUserText.label APO Resource view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY ResourceUUID /sapapo/res_head resuid Internal Resrce
KEY ResourceSimulationSessionUUID /sapapo/res_head simsessid Sim. Session
KEY ResourceSimulationVersionUUID /sapapo/res_head simversid GUID
ResourceID /sapapo/res_head name Zone name
ResourceType /sapapo/res_head type Worklist Type
ResourceTimeZone /sapapo/res_head tzone Time Zone Difference
ResourceFactoryCalendar /sapapo/res_head calendar Workdays only
TransportMeansType /sapapo/res_head traty Packag.Mat.Type
ResourceHomeLocationUUID /sapapo/res_head locid Single-Character Flag
LastChangedByUser /sapapo/res_head changeuser User Name
ChangedDateTime /sapapo/res_head changedate Time Stamp
ResourceHomeLocation _LocationBasic Location Text
IsBusinessPurposeCompleted _LocationBasic IsBusinessPurposeCompleted Purpose Completed
AuthorizationGroup _LocationBasic AuthorizationGroup AuthorizGroup
_ResourceTextBasic _ResourceTextBasic
_LocationBasic _LocationBasic

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 I_ResourceBasic.
-- 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: IRESOURCEBASIC

CREATE VIEW I_ResourceBasic AS
SELECT
  ResourceBasic.resuid AS ResourceUUID,
  ResourceBasic.simsessid AS ResourceSimulationSessionUUID,
  ResourceBasic.simversid AS ResourceSimulationVersionUUID,
  ResourceBasic.name AS ResourceID,
  ResourceBasic.type AS ResourceType,
  ResourceBasic.tzone AS ResourceTimeZone,
  ResourceBasic.calendar AS ResourceFactoryCalendar,
  ResourceBasic.traty AS TransportMeansType,
  ResourceBasic.locid AS ResourceHomeLocationUUID,
  ResourceBasic.changeuser AS LastChangedByUser,
  ResourceBasic.changedate AS ChangedDateTime,
  _LocationBasic.Location AS ResourceHomeLocation,
  _LocationBasic.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
  _LocationBasic.AuthorizationGroup AS AuthorizationGroup
FROM /sapapo/res_head AS ResourceBasic
LEFT OUTER JOIN I_ResourceTextBasic AS _ResourceTextBasic ON ResourceUUID = _ResourceTextBasic.ResourceUUID AND ResourceSimulationSessionUUID = _ResourceTextBasic.ResourceSimulationSessionUUID AND ResourceSimulationVersionUUID = _ResourceTextBasic.ResourceSimulationVersionUUID  -- association [0..*]
LEFT OUTER JOIN I_LocationBasic AS _LocationBasic ON ResourceHomeLocationUUID = _LocationBasic.LocationUUID  -- association [0..1]
;