I_LocationBasic
Location
I_LocationBasic is a Basic CDS View (Dimension) that provides data about "Location" in SAP S/4HANA. It reads from 1 data source (/sapapo/loc) and exposes 57 fields with key field LocationUUID. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| /sapapo/loc | /sapapo/loc | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_BusinessPartner | _CollaborationPartner | $projection.CollaborationPartner = _CollaborationPartner.BusinessPartner |
| [0..1] | I_AddressDefaultRepresentation | _AddrDfltRprstn | $projection.AddressID = _AddrDfltRprstn.AddressID |
| [0..*] | I_Address_2 | _AddrAddlRprstn | $projection.AddressID = _AddrAddlRprstn.AddressID and _AddrAddlRprstn.AddressRepresentationCode is not initial |
| [0..1] | I_AddrOrgNamePostalAddress | _PostalAddrDfltRprstn | $projection.AddressID = _PostalAddrDfltRprstn.AddressID and _PostalAddrDfltRprstn.AddressRepresentationCode is initial |
| [0..1] | I_TMBusinessPartnerByIntKey | _BusinessPartner | $projection.BusinessPartnerUUID = _BusinessPartner.BusinessPartnerUUID |
| [0..*] | I_LocationText | _Text | $projection.LocationUUID = _Text.LocationUUID |
| [0..1] | I_LocationType | _LocationType | $projection.LocationType = _LocationType.LocationType |
| [1..1] | P_LocationAuthGroupEval | _LocationAuthGroupEval | $projection.LocationUUID = _LocationAuthGroupEval.LocationUUID |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ILOCATIONBASIC | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.representativeKey | LocationUUID | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.lifecycle.contract.type | #NONE | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Location | view |
Fields (57)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LocationUUID | Single-Character Flag | ||
| Location | locno | Location | ||
| LocationType | loctype | Location Type | ||
| LocationAdditionalUUID | Location | |||
| LocationUNCode | unlocode | UN/LOCODE | ||
| LocationIATACode | iatacode | IATA Code | ||
| LocationTimeZone | tzone | Time Zone Difference | ||
| LocationIsTemporary | osta_flag | Temporary Location | ||
| AddressID | adrnummer | Address Number | ||
| LocationProcessingPriority | locprio | Priority | ||
| CollaborationPartner | With Partner | |||
| BusinessPartnerUUID | partner_guid | Partner GUID | ||
| LocationTrailerHandling | trailer_handling | Trailer Handling | ||
| LocationLoadingProfile | locloadprofile | Loc. Load. Pofile | ||
| AttachedEquipmentProfile | attequiprofile | Att. Equip. Profile | ||
| HandoverPartySecurityStatus | shipper_sec_sts | Shipper Sec. Status | ||
| HandoverParty | shipper_code | Known Shipper Code | ||
| HandoverPartyExpiryDate | shipper_validity | HO Party Expiry Date | ||
| Longitude | xpos | Longitude | ||
| Latitude | ypos | Latitude | ||
| GeoCoordsValidityEndDateTime | Validity End | |||
| GeoCoordinatesLevel | gc_level | Geocoding Level | ||
| GeoCoordinatesStrategy | strategy | Strategy | ||
| GeoCoordinatesMatchPercent | match_gc | Match (%) | ||
| GeoCoordinatesDataSource | srcid | Diag.Srce ID | ||
| GeogrlInformationSystemZone | gis_zone | GIS Zone | ||
| GeoCoordinatesPrecision | precisid | Precision | ||
| GeoCoordsAreManuallyChanged | manually_changed_gc | Manually Changed GC | ||
| GeoCoordsAreLocallyChanged | locally_changed_gc | Local Change in GC | ||
| CreationDateTime | Time Stamp | |||
| CreatedByUser | createuser | User Name | ||
| ChangedDateTime | Time Stamp | |||
| LastChangedByUser | changeuser | User Name | ||
| LocationIsMarkedForDeletion | lvorm | Stock del. flag | ||
| InboundLoadingResourceUUID | Loading Res. | |||
| OutboundLoadingResourceUUID | Loading Res. | |||
| ResourceValidity | resflag | Validity | ||
| InboundCalendarResourceUUID | GUID | |||
| OutboundCalendarResourceUUID | Internal Resrce | |||
| GlobalLocationNumber | gln | GLN | ||
| LocationDUNSNumber | duns4 | DUNS+4 | ||
| SrvcPartsPlanningCalendar | dpcal | Planning Cal. (SPP) | ||
| NumberOfSTOSendingLocation | capparm | STO Items per Day | ||
| NumberOfSTOReceivingLocation | capparm_rcv | STO Items Per Day | ||
| TargetServiceLevelRatio | lgrad | Target Service Level | ||
| LocationIsContractPackager | bntyp | Business Type | ||
| LocationDeliveryIsSpecial | distr | Spec. Distribution | ||
| IsBusinessPurposeCompleted | loc_xblck | PurposeComplete Flag | ||
| LocationAdvncdShipgRcvgRlvnce | adv_shp_recv_rlv | Adv. SR Relevance | ||
| AuthorizationGroup | _LocationAuthGroupEval | AuthorizationGroup | AuthorizGroup | |
| _AddrDfltRprstn | _AddrDfltRprstn | |||
| _AddrAddlRprstn | _AddrAddlRprstn | |||
| _PostalAddrDfltRprstn | _PostalAddrDfltRprstn | |||
| _CollaborationPartner | _CollaborationPartner | |||
| _BusinessPartner | _BusinessPartner | |||
| _LocationType | _LocationType | |||
| _Text | _Text |
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_LocationBasic.
-- 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: ILOCATIONBASIC
CREATE VIEW I_LocationBasic AS
SELECT
cast( locid as /sapapo/location_id preserving type ) AS LocationUUID,
locno AS Location,
loctype AS LocationType,
cast( loc_uuid as /sapapo/location_uuid preserving type ) AS LocationAdditionalUUID,
unlocode AS LocationUNCode,
iatacode AS LocationIATACode,
tzone AS LocationTimeZone,
osta_flag AS LocationIsTemporary,
adrnummer AS AddressID,
locprio AS LocationProcessingPriority,
cast( partner as /sapapo/collaboration_partner preserving type ) AS CollaborationPartner,
partner_guid AS BusinessPartnerUUID,
trailer_handling AS LocationTrailerHandling,
locloadprofile AS LocationLoadingProfile,
attequiprofile AS AttachedEquipmentProfile,
shipper_sec_sts AS HandoverPartySecurityStatus,
shipper_code AS HandoverParty,
shipper_validity AS HandoverPartyExpiryDate,
xpos AS Longitude,
ypos AS Latitude,
cast( geo_validity_end as tzntstmps preserving type ) AS GeoCoordsValidityEndDateTime,
gc_level AS GeoCoordinatesLevel,
strategy AS GeoCoordinatesStrategy,
match_gc AS GeoCoordinatesMatchPercent,
srcid AS GeoCoordinatesDataSource,
gis_zone AS GeogrlInformationSystemZone,
precisid AS GeoCoordinatesPrecision,
manually_changed_gc AS GeoCoordsAreManuallyChanged,
locally_changed_gc AS GeoCoordsAreLocallyChanged,
cast( createutc as tzntstmpl ) AS CreationDateTime,
createuser AS CreatedByUser,
cast( changeutc as tzntstmps ) AS ChangedDateTime,
changeuser AS LastChangedByUser,
lvorm AS LocationIsMarkedForDeletion,
cast( tpres_inb as /sapapo/tpres_inb preserving type ) AS InboundLoadingResourceUUID,
cast( tpres_out as /sapapo/tpres_out preserving type ) AS OutboundLoadingResourceUUID,
resflag AS ResourceValidity,
cast( time_res as /sapapo/time_res_inb preserving type ) AS InboundCalendarResourceUUID,
cast( time_res_out as /sapapo/time_res_out preserving type ) AS OutboundCalendarResourceUUID,
gln AS GlobalLocationNumber,
duns4 AS LocationDUNSNumber,
dpcal AS SrvcPartsPlanningCalendar,
capparm AS NumberOfSTOSendingLocation,
capparm_rcv AS NumberOfSTOReceivingLocation,
lgrad AS TargetServiceLevelRatio,
bntyp AS LocationIsContractPackager,
distr AS LocationDeliveryIsSpecial,
loc_xblck AS IsBusinessPurposeCompleted,
adv_shp_recv_rlv AS LocationAdvncdShipgRcvgRlvnce,
_LocationAuthGroupEval.AuthorizationGroup AS AuthorizationGroup
FROM /sapapo/loc
LEFT OUTER JOIN I_BusinessPartner AS _CollaborationPartner ON CollaborationPartner = _CollaborationPartner.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_AddressDefaultRepresentation AS _AddrDfltRprstn ON AddressID = _AddrDfltRprstn.AddressID -- association [0..1]
LEFT OUTER JOIN I_Address_2 AS _AddrAddlRprstn ON AddressID = _AddrAddlRprstn.AddressID AND _AddrAddlRprstn.AddressRepresentationCode is not initial -- association [0..*]
LEFT OUTER JOIN I_AddrOrgNamePostalAddress AS _PostalAddrDfltRprstn ON AddressID = _PostalAddrDfltRprstn.AddressID AND _PostalAddrDfltRprstn.AddressRepresentationCode is initial -- association [0..1]
LEFT OUTER JOIN I_TMBusinessPartnerByIntKey AS _BusinessPartner ON BusinessPartnerUUID = _BusinessPartner.BusinessPartnerUUID -- association [0..1]
LEFT OUTER JOIN I_LocationText AS _Text ON LocationUUID = _Text.LocationUUID -- association [0..*]
LEFT OUTER JOIN I_LocationType AS _LocationType ON LocationType = _LocationType.LocationType -- association [0..1]
LEFT OUTER JOIN P_LocationAuthGroupEval AS _LocationAuthGroupEval ON LocationUUID = _LocationAuthGroupEval.LocationUUID -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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