/SCMTMS/CV_LocationRoot

DDL: /SCMTMS/CV_LOCATIONROOT SQL: /SCMTMS/CV_LOCRT Type: view

BOPF: Location Root Representation Node

/SCMTMS/CV_LocationRoot is a CDS View that provides data about "BOPF: Location Root Representation Node" in SAP S/4HANA. It reads from 1 data source (I_LocationBasic) and exposes 17 fields with key field location_id. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_LocationBasic _Location from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_LocationVersion _LocationVersion _Location.LocationUUID = _LocationVersion.LocationUUID and _LocationVersion.PlanningVersionUUID = '000'
[0..1] I_LocationMap _LocationMap _Location.LocationUUID = _LocationMap.LocationUUID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName /SCMTMS/CV_LOCRT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #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: Location Root Representation Node view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY location_id Location Text
loc_unlocode LocationUNCode UN/LOCODE
loc_iatacode LocationIATACode IATA Code
ot_indicator Temporary Location
partner_guid BusinessPartnerUUID UUID
tsdurat_max _LocationVersion MaximumDuration
tsdurat_min _LocationVersion MinimumDuration
wm_logsys _LocationMap WarehouseLogicalSystem Logical System of Warehouse
wm_wh_number _LocationMap Warehouse Warehouse No.
adrnummer AddressID Ship-to address
created_on Timestamp
created_by User Name
changed_on Time Stamp
changed_by User Name
bp_completed
AuthorizationGroup AuthorizationGroup AuthorizGroup
IsBusinessPurposeCompleted IsBusinessPurposeCompleted Purpose Completed

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_LocationRoot.
-- 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_LOCRT

CREATE VIEW /SCMTMS/CV_LocationRoot AS
SELECT
  Location AS location_id,
  LocationUNCode AS loc_unlocode,
  LocationIATACode AS loc_iatacode,
  cast( LocationIsTemporary as /scmtms/ot_location_indicator ) AS ot_indicator,
  BusinessPartnerUUID AS partner_guid,
  _LocationVersion.MaximumDuration AS tsdurat_max,
  _LocationVersion.MinimumDuration AS tsdurat_min,
  _LocationMap.WarehouseLogicalSystem AS wm_logsys,
  _LocationMap.Warehouse AS wm_wh_number,
  AddressID AS adrnummer,
  cast( CreationDateTime as tzntstmps ) AS created_on,
  cast( CreatedByUser as /bofu/user_id_created_by ) AS created_by,
  cast( ChangedDateTime as tzntstmps ) AS changed_on,
  cast( LastChangedByUser as /bofu/user_id_changed_by ) AS changed_by,
  _Location._BusinessPartner.IsBusinessPurposeCompleted AS bp_completed,
  AuthorizationGroup,
  IsBusinessPurposeCompleted
FROM I_LocationBasic AS _Location
LEFT OUTER JOIN I_LocationVersion AS _LocationVersion ON _Location.LocationUUID = _LocationVersion.LocationUUID AND _LocationVersion.PlanningVersionUUID = '000'  -- association [0..1]
LEFT OUTER JOIN I_LocationMap AS _LocationMap ON _Location.LocationUUID = _LocationMap.LocationUUID  -- association [0..1]
;