I_MKT_Location

DDL: I_MKT_LOCATION SQL: IMKT_LOCATION Type: view BASIC Package: CUAN_CDS_LOC

Marketing: Marketing Location

I_MKT_Location is a Basic CDS View (Dimension) that provides data about "Marketing: Marketing Location" in SAP S/4HANA. It reads from 1 data source (cuand_loc_root) and exposes 39 fields with key field MarketingLocationUUID. It has 4 associations to related views. Part of development package CUAN_CDS_LOC.

Data Sources (1)

SourceAliasJoin Type
cuand_loc_root cuand_loc_root from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_MKT_MarketingArea _MKT_MarketingArea $projection.MarketingArea = _MKT_MarketingArea.MarketingArea
[0..1] I_MKT_Region _MKT_Region $projection.Country = _MKT_Region.Country and $projection.AddressRegion = _MKT_Region.Region
[0..1] I_MKT_Country _MKT_Country $projection.Country = _MKT_Country.Country
[0..1] I_MKT_LocationOccupancyType _MKT_LocationOccupancyType $projection.MarketingLocationOccupancyType = _MKT_LocationOccupancyType.MarketingLocationOccupancyType

Annotations (15)

NameValueLevelField
EndUserText.label Marketing: Marketing Location view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IMKT_LOCATION view
ObjectModel.representativeKey MarketingLocationUUID view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.sapObjectNodeType.name MarketingLocation view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY MarketingLocationUUID cuand_loc_root db_key UUID
MarketingLocationType cuand_loc_root type Worklist Type
CompanyName cuand_loc_root company_name Company
MarketingLocationName cuand_loc_root location_name Location Name
Country cuand_loc_root country Venue: Ctry/Reg
AddressRegion cuand_loc_root region Venue Region
CityName cuand_loc_root city Location
PostalCode cuand_loc_root postcode Postal Code
AddressStreetName cuand_loc_root street Street Code
AddressHouseNumber cuand_loc_root house_num House Number
Building cuand_loc_root building Building code
Floor cuand_loc_root floor Floor
RoomNumber cuand_loc_root room_no
PhoneNumber cuand_loc_root telnr_long Telephone no.
FaxNumber cuand_loc_root faxnr_long Fax Number
EmailAddress cuand_loc_root smtp_addr E-Mail Address
WebsiteURL cuand_loc_root web_uri
IsObsolete cuand_loc_root obsolete TRUE
Latitude cuand_loc_root latitude Latitude
Longitude cuand_loc_root longitude Longitude
LatitudeUnit
LongitudeUnit
CreationUTCDateTime cuand_loc_root crea_date_time Time Stamp
CreatedByUser cuand_loc_root crea_uname User Name
LastChangeUTCDateTime cuand_loc_root lchg_date_time Time Stamp
LastChangeByUser cuand_loc_root lchg_uname User Name
MarketingArea
ValidityStartDate cuand_loc_root valid_from_date Validity From Date
ValidityEndDate cuand_loc_root valid_to_date Validity To Date
SpatialReferenceSystem cuand_loc_root srid Stability Rule DRP
ImageURL cuand_loc_root image_uri
MarketingLocationMallName cuand_loc_root mall_name
MarketingLocationOccupancyType cuand_loc_root occupancy_type
_MKT_LocationType _MKT_LocationType
_MKT_LocationInformation _MKT_LocationInformation
_MKT_MarketingArea _MKT_MarketingArea
_MKT_Region _MKT_Region
_MKT_Country _MKT_Country
_MKT_LocationOccupancyType _MKT_LocationOccupancyType

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_MKT_Location.
-- 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: IMKT_LOCATION

CREATE VIEW I_MKT_Location AS
SELECT
  cuand_loc_root.db_key AS MarketingLocationUUID,
  cuand_loc_root.type AS MarketingLocationType,
  cuand_loc_root.company_name AS CompanyName,
  cuand_loc_root.location_name AS MarketingLocationName,
  cuand_loc_root.country AS Country,
  cuand_loc_root.region AS AddressRegion,
  cuand_loc_root.city AS CityName,
  cuand_loc_root.postcode AS PostalCode,
  cuand_loc_root.street AS AddressStreetName,
  cuand_loc_root.house_num AS AddressHouseNumber,
  cuand_loc_root.building AS Building,
  cuand_loc_root.floor AS Floor,
  cuand_loc_root.room_no AS RoomNumber,
  cuand_loc_root.telnr_long AS PhoneNumber,
  cuand_loc_root.faxnr_long AS FaxNumber,
  cuand_loc_root.smtp_addr AS EmailAddress,
  cuand_loc_root.web_uri AS WebsiteURL,
  cuand_loc_root.obsolete AS IsObsolete,
  cuand_loc_root.latitude AS Latitude,
  cuand_loc_root.longitude AS Longitude,
  cast('DEG' as msehi) AS LatitudeUnit,
  cast('DEG' as msehi) AS LongitudeUnit,
  cuand_loc_root.crea_date_time AS CreationUTCDateTime,
  cuand_loc_root.crea_uname AS CreatedByUser,
  cuand_loc_root.lchg_date_time AS LastChangeUTCDateTime,
  cuand_loc_root.lchg_uname AS LastChangeByUser,
  cast( cuand_loc_root.mkt_area_id as cuan_cds_mkt_area ) AS MarketingArea,
  cuand_loc_root.valid_from_date AS ValidityStartDate,
  cuand_loc_root.valid_to_date AS ValidityEndDate,
  cuand_loc_root.srid AS SpatialReferenceSystem,
  cuand_loc_root.image_uri AS ImageURL,
  cuand_loc_root.mall_name AS MarketingLocationMallName,
  cuand_loc_root.occupancy_type AS MarketingLocationOccupancyType
FROM cuand_loc_root
LEFT OUTER JOIN I_MKT_MarketingArea AS _MKT_MarketingArea ON MarketingArea = _MKT_MarketingArea.MarketingArea  -- association [0..1]
LEFT OUTER JOIN I_MKT_Region AS _MKT_Region ON Country = _MKT_Region.Country AND AddressRegion = _MKT_Region.Region  -- association [0..1]
LEFT OUTER JOIN I_MKT_Country AS _MKT_Country ON Country = _MKT_Country.Country  -- association [0..1]
LEFT OUTER JOIN I_MKT_LocationOccupancyType AS _MKT_LocationOccupancyType ON MarketingLocationOccupancyType = _MKT_LocationOccupancyType.MarketingLocationOccupancyType  -- association [0..1]
;