I_EnvironmentWasteLocation
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)
| Source | Alias | Join Type |
|---|---|---|
| I_EHSLocation | I_EHSLocation | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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