I_EHSCmplRqPmtWasteData

DDL: I_EHSCMPLRQPMTWASTEDATA SQL: IEHSPMTWDATA Type: view BASIC Package: EHENV_BO_CMPLRQ_PERMIT

CmplRq Permit Waste Data

I_EHSCmplRqPmtWasteData is a Basic CDS View that provides data about "CmplRq Permit Waste Data" in SAP S/4HANA. It reads from 1 data source (ehfndv_pmt_wdata) and exposes 14 fields with key field CmplRqVersChildUUID. It has 2 associations to related views. Part of development package EHENV_BO_CMPLRQ_PERMIT.

Data Sources (1)

SourceAliasJoin Type
ehfndv_pmt_wdata ehfndv_pmt_wdata from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_CmplRqVersWasteCode _WasteCode $projection.EnvrmtWasteCodeUUID = _WasteCode.EnvrmtWasteCodeUUID
[1..1] I_EnvrmtWastePartDsplFclty _DisposalFacility $projection.EnvrmtWastePartDsplFcltyUUID = _DisposalFacility.EnvrmtWastePartDsplFcltyUUID

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IEHSPMTWDATA view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label CmplRq Permit Waste Data view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.representativeKey CmplRqVersChildUUID view
ObjectModel.semanticKey CmplRqVersID view
ObjectModel.resultSet.sizeCategory #XS view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY CmplRqVersChildUUID cmplrqverschilduuid NodeID
CmplRqVersID cmplrqversid Compliance Requirement
CmplRqVersChildCentralID cmplrqverschildcentralid BCO KEY
CmplRqVersUUID cmplrqversuuid NodeID
CreationDateTime Timestamp
CreatedByUser createdbyuser User Name
LastChangeDateTime Timestamp
LastChangedByUser lastchangedbyuser User Name
EnvrmtWastePartnerUUID envrmtwastepartneruuid Waste Partner UUID
EnvrmtWastePartDsplFcltyUUID envrmtwastepartdsplfcltyuuid Waste Facility UUID
WasteDsplChannelPermitType Permit Type
EnvrmtWasteCodeUUID Waste Code
_WasteCode _WasteCode
_DisposalFacility _DisposalFacility

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_EHSCmplRqPmtWasteData.
-- 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: IEHSPMTWDATA

CREATE VIEW I_EHSCmplRqPmtWasteData AS
SELECT
  CmplRqVersChildUUID,
  CmplRqVersID,
  CmplRqVersChildCentralID,
  CmplRqVersUUID,
  cast(creationdatetime as timestampl) AS CreationDateTime,
  CreatedByUser,
  cast(lastchangedatetime as timestampl) AS LastChangeDateTime,
  LastChangedByUser,
  EnvrmtWastePartnerUUID,
  EnvrmtWastePartDsplFcltyUUID,
  cast(wastedsplchannelpermittype as abap.char( 10 )) AS WasteDsplChannelPermitType,
  cast(envrmtwastecodeuuid as /bobf/conf_key ) AS EnvrmtWasteCodeUUID
FROM ehfndv_pmt_wdata
LEFT OUTER JOIN I_CmplRqVersWasteCode AS _WasteCode ON EnvrmtWasteCodeUUID = _WasteCode.EnvrmtWasteCodeUUID  -- association [0..1]
LEFT OUTER JOIN I_EnvrmtWastePartDsplFclty AS _DisposalFacility ON EnvrmtWastePartDsplFcltyUUID = _DisposalFacility.EnvrmtWastePartDsplFcltyUUID  -- association [1..1]
;