C_CmplRqRsltSpillTP

DDL: C_CMPLRQRSLTSPILLTP SQL: CCRRARMTP Type: view CONSUMPTION

Accidental Release Measures

C_CmplRqRsltSpillTP is a Consumption CDS View that provides data about "Accidental Release Measures" in SAP S/4HANA. It reads from 1 data source (I_CmplRqRsltSpillTP) and exposes 31 fields with key field CmplRqRsltUUID. It has 12 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CmplRqRsltSpillTP I_CmplRqRsltSpillTP from

Associations (12)

CardinalityTargetAliasCondition
[0..*] C_CmplRqRsltSpillAddlInfoTP _CmplRqRsltSpillAddlInfo $projection.CmplRqRsltUUID = _CmplRqRsltSpillAddlInfo.CmplRqRsltUUID
[0..*] C_CmplRqRsltSpillCtnmtTP _CmplRqRsltSpillCtnmt $projection.CmplRqRsltUUID = _CmplRqRsltSpillCtnmt.CmplRqRsltUUID
[0..*] C_CmplRqRsltSpillEnvrnmtlMsrTP _CmplRqRsltSpillEnvrnmtlMsr $projection.CmplRqRsltUUID = _CmplRqRsltSpillEnvrnmtlMsr.CmplRqRsltUUID
[0..*] C_CmplRqRsltSpillPrsnlMsrTP _CmplRqRsltSpillPrsnlMsr $projection.CmplRqRsltUUID = _CmplRqRsltSpillPrsnlMsr.CmplRqRsltUUID
[0..*] C_CmplRqRsltSpillSctnRefTP _CmplRqRsltSpillSctnRef $projection.CmplRqRsltUUID = _CmplRqRsltSpillSctnRef.CmplRqRsltUUID
[1..1] C_CmplRqRsltSpillNoteTP _CmplRqRsltSpillNote $projection.CmplRqRsltUUID = _CmplRqRsltSpillNote.PCPrptyRootUUID -- Additional Information
[1..1] I_CmplRqVersEnhanced _CmplRqVers $projection.CmplRqVersUUID = _CmplRqVers.CmplRqVersUUID -- provides the info if a corresponding RELEASED CRR exists, this info is needed to control the visibility of the link to the released CRR in the object page's message strip
[0..1] I_CmplRqRslt _ReleasedCmplRqRslt $projection.ChmlCmplncInfoUUID = _ReleasedCmplRqRslt.ChmlCmplncInfoUUID and $projection.CmplRqVersUUID = _ReleasedCmplRqRslt.CmplRqVersUUID and _ReleasedCmplRqRslt.CmplRqRsltProcessingStatus = 'RE' -- CCI
[1..1] I_ChmlCmplncInfoTP _ChmlCmplncInfo $projection.ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID -- Material Data for Primary Material
[0..1] C_ChmlCmplncPrimMatl _MaterialDataPrimary $projection.ChmlCmplncInfoUUID = _MaterialDataPrimary.ChmlCmplncInfoUUID -- shows the preliminary status of IP CRRs
[0..1] P_CmplRqRsltTransientFields _CmplRqRsltTransientFields $projection.CmplRqRsltUUID = _CmplRqRsltTransientFields.CmplRqRsltUUID -- Determines the full name of the business user who has released the CRR
[0..1] I_BusinessUserBasic _ReleasedByUser $projection.ReleasedByUser = _ReleasedByUser.BusinessPartner

Annotations (19)

NameValueLevelField
AbapCatalog.sqlViewName CCRRARMTP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Accidental Release Measures view
Metadata.allowExtensions true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey CmplRqRsltUUID view
ObjectModel.compositionRoot true view
ObjectModel.createEnabled false view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled EXTERNAL_CALCULATION view
ObjectModel.draftEnabled true view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY CmplRqRsltUUID CmplRqRsltUUID SDS Assessment
ActiveCmplRqRsltUUID ActiveCmplRqRsltUUID Compliance Assessment UUID
CmplRqVersUUID CmplRqVersUUID NodeID
ChmlCmplncInfoUUID ChmlCmplncInfoUUID Chemical Compliance Information PP
ChmlSuplrMatlUUID ChmlSuplrMatlUUID Supplier Raw Material
ComplianceRequirement ComplianceRequirement Compliance Requirement
TestingReleaseCmplRqRsltManualStatus
CmplRqRsltProcessorName
ReleasedByUserName _ReleasedByUser PersonFullName Full Name
CmplRqRsltProcessingStatus CmplRqRsltProcessingStatus Processing Status
CmplRqVersName _CmplRqVers CmplRqVersName Compliance Requirement Name
ChmlCmplncInternalName _ChmlCmplncInfo ChmlCmplncInternalName Internal Name
ChmlCmplncApplication
MaterialasMaterial
char255asPCPrptyObjectTitle
char255asPCPrptyObjectDesc
ChmlCmplncInfoType
ChmlCmplncProdIsResearched
MaterialIsSold _CmplRqRsltTransientFields MaterialIsSold Is Sold
MaterialIsTransported _CmplRqRsltTransientFields MaterialIsTransported Is Transported
MaterialIsSourced _CmplRqRsltTransientFields MaterialIsSourced Is Purchased
MaterialIsProduced _CmplRqRsltTransientFields MaterialIsProduced Is Produced
ValidityStartDateTime ValidityStartDateTime Valid From Timestamp
ValidityEndDateTime ValidityEndDateTime Valid To Timestamp
_CmplRqRsltSpillAddlInfo _CmplRqRsltSpillAddlInfo
_CmplRqRsltSpillCtnmt _CmplRqRsltSpillCtnmt
_CmplRqRsltSpillEnvrnmtlMsr _CmplRqRsltSpillEnvrnmtlMsr
_CmplRqRsltSpillPrsnlMsr _CmplRqRsltSpillPrsnlMsr
_CmplRqRsltSpillSctnRef _CmplRqRsltSpillSctnRef
_CmplRqRsltSpillNote _CmplRqRsltSpillNote
_CmplRqVers _CmplRqVers

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 C_CmplRqRsltSpillTP.
-- 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: CCRRARMTP

CREATE VIEW C_CmplRqRsltSpillTP AS
SELECT
  CmplRqRsltUUID,
  ActiveCmplRqRsltUUID,
  CmplRqVersUUID,
  ChmlCmplncInfoUUID,
  ChmlSuplrMatlUUID,
  ComplianceRequirement,
  cast( '' as ad_namtext ) AS CmplRqRsltProcessorName,
  _ReleasedByUser.PersonFullName AS ReleasedByUserName,
  CmplRqRsltProcessingStatus,
  _CmplRqVers.CmplRqVersName AS CmplRqVersName,
  _ChmlCmplncInfo.ChmlCmplncInternalName AS ChmlCmplncInternalName,
  cast( '' as ehpma_application ) AS ChmlCmplncApplication,
  I_CmplRqRsltSpillTP._ChmlCmplncInfo.ChmlCmplncProdIsResearched AS ChmlCmplncProdIsResearched,
  _CmplRqRsltTransientFields.MaterialIsSold AS MaterialIsSold,
  _CmplRqRsltTransientFields.MaterialIsTransported AS MaterialIsTransported,
  _CmplRqRsltTransientFields.MaterialIsSourced AS MaterialIsSourced,
  _CmplRqRsltTransientFields.MaterialIsProduced AS MaterialIsProduced,
  ValidityStartDateTime,
  ValidityEndDateTime
FROM I_CmplRqRsltSpillTP
LEFT OUTER JOIN C_CmplRqRsltSpillAddlInfoTP AS _CmplRqRsltSpillAddlInfo ON CmplRqRsltUUID = _CmplRqRsltSpillAddlInfo.CmplRqRsltUUID  -- association [0..*]
LEFT OUTER JOIN C_CmplRqRsltSpillCtnmtTP AS _CmplRqRsltSpillCtnmt ON CmplRqRsltUUID = _CmplRqRsltSpillCtnmt.CmplRqRsltUUID  -- association [0..*]
LEFT OUTER JOIN C_CmplRqRsltSpillEnvrnmtlMsrTP AS _CmplRqRsltSpillEnvrnmtlMsr ON CmplRqRsltUUID = _CmplRqRsltSpillEnvrnmtlMsr.CmplRqRsltUUID  -- association [0..*]
LEFT OUTER JOIN C_CmplRqRsltSpillPrsnlMsrTP AS _CmplRqRsltSpillPrsnlMsr ON CmplRqRsltUUID = _CmplRqRsltSpillPrsnlMsr.CmplRqRsltUUID  -- association [0..*]
LEFT OUTER JOIN C_CmplRqRsltSpillSctnRefTP AS _CmplRqRsltSpillSctnRef ON CmplRqRsltUUID = _CmplRqRsltSpillSctnRef.CmplRqRsltUUID  -- association [0..*]
LEFT OUTER JOIN C_CmplRqRsltSpillNoteTP AS _CmplRqRsltSpillNote ON CmplRqRsltUUID = _CmplRqRsltSpillNote.PCPrptyRootUUID  -- association [1..1]
LEFT OUTER JOIN I_CmplRqVersEnhanced AS _CmplRqVers ON CmplRqVersUUID = _CmplRqVers.CmplRqVersUUID  -- association [1..1]
LEFT OUTER JOIN I_CmplRqRslt AS _ReleasedCmplRqRslt ON ChmlCmplncInfoUUID = _ReleasedCmplRqRslt.ChmlCmplncInfoUUID AND CmplRqVersUUID = _ReleasedCmplRqRslt.CmplRqVersUUID AND _ReleasedCmplRqRslt.CmplRqRsltProcessingStatus = 'RE'  -- association [0..1]
LEFT OUTER JOIN I_ChmlCmplncInfoTP AS _ChmlCmplncInfo ON ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID  -- association [1..1]
LEFT OUTER JOIN C_ChmlCmplncPrimMatl AS _MaterialDataPrimary ON ChmlCmplncInfoUUID = _MaterialDataPrimary.ChmlCmplncInfoUUID  -- association [0..1]
LEFT OUTER JOIN P_CmplRqRsltTransientFields AS _CmplRqRsltTransientFields ON CmplRqRsltUUID = _CmplRqRsltTransientFields.CmplRqRsltUUID  -- association [0..1]
LEFT OUTER JOIN I_BusinessUserBasic AS _ReleasedByUser ON ReleasedByUser = _ReleasedByUser.BusinessPartner  -- association [0..1]
;