I_CmplRqVersWasteCode

DDL: I_CMPLRQVERSWASTECODE SQL: ICQRWASTECODE Type: view BASIC Package: EHFND_BO_COMPLIANCE_REQ

Compl. Req. Version Waste Code Reg list

I_CmplRqVersWasteCode is a Basic CDS View that provides data about "Compl. Req. Version Waste Code Reg list" in SAP S/4HANA. It reads from 1 data source (ehfndd_req_wcode) and exposes 16 fields with key field EnvrmtWasteCodeUUID. It has 4 associations to related views. Part of development package EHFND_BO_COMPLIANCE_REQ.

Data Sources (1)

SourceAliasJoin Type
ehfndd_req_wcode ehfndd_req_wcode from

Associations (4)

CardinalityTargetAliasCondition
[1..*] I_CmplRqVersWasteCodeText _WasteCodeText $projection.EnvrmtWasteCodeUUID = _WasteCodeText.EnvrmtWasteCodeUUID
[1..1] I_CmplRqVersSubstanceList _SubstanceList $projection.SubstanceListUUID = _SubstanceList.SubstanceListUUID
[1..1] I_CmplRqVersEnhanced _CmplRqVers $projection.CmplRqVersUUID = _CmplRqVers.CmplRqVersUUID
[1..1] I_CmplRqVersWasteCodeLimits _WasteLimit $projection.CmplRqVersUUID = _WasteLimit.CmplRqVersUUID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ICQRWASTECODE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Compl. Req. Version Waste Code Reg list view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.representativeKey EnvrmtWasteCodeUUID view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY EnvrmtWasteCodeUUID db_key UUID
CmplRqVersUUID root_key UUID
SubstanceListUUID parent_key UUID
CreationUTCDateTime Created On/At
CreatedByUser user_id_cr Created By
LastChangeUTCDateTime Changed On/At
LastChangedByUser user_id_ch Changed By
EnvrmtWasteCode waste_code Waste Code
EnvrmtWasteCodeShort short_waste_code Waste Code
ListedSubstance listsub_id Pollutant Container
EnvrmtHazardCode hazard_code Hazard Code
CmplRqRecordID record_id UUID
_WasteCodeText _WasteCodeText
_SubstanceList _SubstanceList
_CmplRqVers _CmplRqVers
_WasteLimit _WasteLimit

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_CmplRqVersWasteCode.
-- 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: ICQRWASTECODE

CREATE VIEW I_CmplRqVersWasteCode AS
SELECT
  db_key AS EnvrmtWasteCodeUUID,
  root_key AS CmplRqVersUUID,
  parent_key AS SubstanceListUUID,
  cast(datetime_cr as timestamp preserving type) AS CreationUTCDateTime,
  user_id_cr AS CreatedByUser,
  cast(datetime_ch as timestamp preserving type) AS LastChangeUTCDateTime,
  user_id_ch AS LastChangedByUser,
  waste_code AS EnvrmtWasteCode,
  short_waste_code AS EnvrmtWasteCodeShort,
  listsub_id AS ListedSubstance,
  hazard_code AS EnvrmtHazardCode,
  record_id AS CmplRqRecordID
FROM ehfndd_req_wcode
LEFT OUTER JOIN I_CmplRqVersWasteCodeText AS _WasteCodeText ON EnvrmtWasteCodeUUID = _WasteCodeText.EnvrmtWasteCodeUUID  -- association [1..*]
LEFT OUTER JOIN I_CmplRqVersSubstanceList AS _SubstanceList ON SubstanceListUUID = _SubstanceList.SubstanceListUUID  -- association [1..1]
LEFT OUTER JOIN I_CmplRqVersEnhanced AS _CmplRqVers ON CmplRqVersUUID = _CmplRqVers.CmplRqVersUUID  -- association [1..1]
LEFT OUTER JOIN I_CmplRqVersWasteCodeLimits AS _WasteLimit ON CmplRqVersUUID = _WasteLimit.CmplRqVersUUID  -- association [1..1]
;