I_EnvironmentWasteLocation

DDL: I_ENVIRONMENTWASTELOCATION Type: view COMPOSITE Package: EHEWA_BO_ENV_WASTEPARTNER

Environment Waste Location

I_EnvironmentWasteLocation is a Composite CDS View that provides data about "Environment Waste Location" in SAP S/4HANA. It reads from 1 data source (I_EHSLocation) and exposes 48 fields with key field EHSLocationUUID. It has 7 associations to related views. Part of development package EHEWA_BO_ENV_WASTEPARTNER.

Data Sources (1)

SourceAliasJoin Type
I_EHSLocation I_EHSLocation from

Associations (7)

CardinalityTargetAliasCondition
[0..*] I_RegionText _MainRegionText $projection.Region = _MainRegionText.Region and $projection.Country = _MainRegionText.Country
[0..1] I_CountryText _CountryText $projection.Country = _CountryText.Country and _CountryText.Language = $session.system_language
[0..*] I_EnvrmtWasteMgmtMethCodeCntry _MgmtMethCodeCntry $projection.Country = _MgmtMethCodeCntry.EnvrmtWasteMgmtMethCodeCntry
[0..1] I_EnvrmtWasteGnrtrText _EnvrmtWasteGnrtrText $projection.EHSLocationUUID = _EnvrmtWasteGnrtrText.EnvrmtWasteGnrtrUUID and _EnvrmtWasteGnrtrText.Language = $session.system_language
[0..1] I_WasteTransferReqTmeLimits _TimeLimit $projection.Country = _TimeLimit.Country and _TimeLimit.Region is initial
[0..1] I_WasteTransferReqTmeLimits _TimeLimitRegion $projection.Country = _TimeLimitRegion.Country and $projection.Region = _TimeLimitRegion.Region
[0..1] I_EnvrmtWasteMethCodeGrpT _MethCodeGrpT $projection.Country = _MethCodeGrpT.EnvrmtWasteMgmtMethCodeCntry and _MethCodeGrpT.Language = $session.system_language

Annotations (12)

NameValueLevelField
EndUserText.label Environment Waste Location view
AbapCatalog.sqlViewName IENVWSTLOC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.representativeKey EHSLocationUUID view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (48)

KeyFieldSource TableSource FieldDescription
KEY EHSLocationUUID EHSLocationUUID NodeID
RevisionStartDate RevisionStartDate
EHSLocationRevisionUUID EHSLocationRevisionUUID
CreationDateTime CreationDateTime Timestamp
CreatedByUser CreatedByUser User Name
LastChangeDateTime LastChangeDateTime Timestamp
LastChangedByUser LastChangedByUser User Name
EHSLocationType EHSLocationType Loc. Type
EHSLocationStatus EHSLocationStatus
Plant Plant Valuation Area
EHSLocationPhone EHSLocationPhone
CompanyCode CompanyCode Receiver Company Code
BusinessArea BusinessArea Business Area
CostCenter CostCenter Cost Center
ControllingArea ControllingArea Controlling Area
OrganizationalUnit Org. Unit ID
StorageLocation StorageLocation StorageLocation
EHSLocationAuthorizationGroup
Country Country Venue: Ctry/Reg
Region Region Venue Region
CityName CityName Name
StreetName StreetName Text
PostalCode PostalCode Postal Code
Equipment Equipment Equipment check
Latitude Latitude Latitude
Longitude Longitude Longitude
EHSLocationID EHSLocationID
_BusinessArea _BusinessArea
_CompanyCode _CompanyCode
_ControllingArea _ControllingArea
_CountryText _CountryText
_CreatedByUser _CreatedByUser
_EHSLocationAuthGroup _EHSLocationAuthGroup
_EHSLocationHierarchy _EHSLocationHierarchy
_EHSLocationRoot _EHSLocationRoot
_EHSLocationStatus _EHSLocationStatus
_EHSLocationType _EHSLocationType
_Equipment _Equipment
_LastChangedByUser _LastChangedByUser
_OrganizationalUnit _OrganizationalUnit
_Plant _Plant
_RegionText
_StorageLocation _StorageLocation
_MgmtMethCodeCntry _MgmtMethCodeCntry
_EnvrmtWasteGnrtrText _EnvrmtWasteGnrtrText
_TimeLimit _TimeLimit
_TimeLimitRegion _TimeLimitRegion
_MethCodeGrpT _MethCodeGrpT

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_EnvironmentWasteLocation.
-- 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.

CREATE VIEW I_EnvironmentWasteLocation AS
SELECT
  EHSLocationUUID,
  RevisionStartDate,
  EHSLocationRevisionUUID,
  CreationDateTime,
  CreatedByUser,
  LastChangeDateTime,
  LastChangedByUser,
  EHSLocationType,
  EHSLocationStatus,
  Plant,
  EHSLocationPhone,
  CompanyCode,
  BusinessArea,
  CostCenter,
  ControllingArea,
  cast(OrganizationalUnit as ehfnd_orgunitid preserving type ) AS OrganizationalUnit,
  StorageLocation,
  cast(EHSLocationAuthorizationGroup as ehfnd_loc_auth_group_nc preserving type ) AS EHSLocationAuthorizationGroup,
  Country,
  Region,
  CityName,
  StreetName,
  PostalCode,
  Equipment,
  Latitude,
  Longitude,
  EHSLocationID,
  _MainRegionText[1: Language = $session.system_language] AS _RegionText
FROM I_EHSLocation
LEFT OUTER JOIN I_RegionText AS _MainRegionText ON Region = _MainRegionText.Region AND Country = _MainRegionText.Country  -- association [0..*]
LEFT OUTER JOIN I_CountryText AS _CountryText ON Country = _CountryText.Country AND _CountryText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_EnvrmtWasteMgmtMethCodeCntry AS _MgmtMethCodeCntry ON Country = _MgmtMethCodeCntry.EnvrmtWasteMgmtMethCodeCntry  -- association [0..*]
LEFT OUTER JOIN I_EnvrmtWasteGnrtrText AS _EnvrmtWasteGnrtrText ON EHSLocationUUID = _EnvrmtWasteGnrtrText.EnvrmtWasteGnrtrUUID AND _EnvrmtWasteGnrtrText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_WasteTransferReqTmeLimits AS _TimeLimit ON Country = _TimeLimit.Country AND _TimeLimit.Region is initial  -- association [0..1]
LEFT OUTER JOIN I_WasteTransferReqTmeLimits AS _TimeLimitRegion ON Country = _TimeLimitRegion.Country AND Region = _TimeLimitRegion.Region  -- association [0..1]
LEFT OUTER JOIN I_EnvrmtWasteMethCodeGrpT AS _MethCodeGrpT ON Country = _MethCodeGrpT.EnvrmtWasteMgmtMethCodeCntry AND _MethCodeGrpT.Language = $session.system_language  -- association [0..1]
;