C_CmplRqRsltHistory

DDL: C_CMPLRQRSLTHISTORY Type: view CONSUMPTION Package: EHFND_CNS_CRR

History of Compliance Requirement Results

C_CmplRqRsltHistory is a Consumption CDS View that provides data about "History of Compliance Requirement Results" in SAP S/4HANA. It reads from 1 data source (I_CmplRqRslt) and exposes 22 fields with key field CmplRqRsltUUID. It has 4 associations to related views. It is exposed through 23 OData services (ASQL_F2928, ASQL_F3235, ASQL_F3420, ...). Part of development package EHFND_CNS_CRR.

Data Sources (1)

SourceAliasJoin Type
I_CmplRqRslt CmplRqRslt from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_CmplRqVersEnhanced CmplRqVers CmplRqRslt.CmplRqVersUUID = CmplRqVers.CmplRqVersUUID
[1..1] I_CmplRqRsltProcgStsTxt _CmplRqRsltProcgStsTxt CmplRqRslt.CmplRqRsltProcessingStatus = _CmplRqRsltProcgStsTxt.CmplRqRsltProcessingStatus and _CmplRqRsltProcgStsTxt.Language = $session.system_language
[1..1] I_BusinessUserBasic _LastChangedByUser CmplRqRslt.LastChangedByUser = _LastChangedByUser.UserID
[0..1] I_BusinessUserBasic _ReleasedByUser CmplRqRslt.ReleasedByUser = _ReleasedByUser.BusinessPartner

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CCRRHISTORY view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
EndUserText.label History of Compliance Requirement Results view

OData Services (23)

ServiceBindingVersionContractRelease
ASQL_F2928 ASQL_F2928 C2 NOT_RELEASED
ASQL_F3235 ASQL_F3235 C2 NOT_RELEASED
ASQL_F3420 ASQL_F3420 C2 NOT_RELEASED
ASQL_F3460 ASQL_F3460 C2 NOT_RELEASED
ASQL_F3667 ASQL_F3667 C2 NOT_RELEASED
ASQL_F4510 ASQL_F4510 C2 NOT_RELEASED
ASQL_F4655 ASQL_F4655 C2 NOT_RELEASED
ASQL_F4794 ASQL_F4794 C2 NOT_RELEASED
ASQL_F4833 ASQL_F4833 C2 NOT_RELEASED
ASQL_F5034 ASQL_F5034 C2 NOT_RELEASED
ASQL_F5086 ASQL_F5086 C2 NOT_RELEASED
ASQL_F5087 ASQL_F5087 C2 NOT_RELEASED
ASQL_F5232 ASQL_F5232 C2 NOT_RELEASED
ASQL_F5282 ASQL_F5282 C2 NOT_RELEASED
ASQL_F5369 ASQL_F5369 C2 NOT_RELEASED
ASQL_F5995 ASQL_F5995 C2 NOT_RELEASED
ASQL_F6069 ASQL_F6069 C2 NOT_RELEASED
ASQL_F6187 ASQL_F6187 C2 NOT_RELEASED
ASQL_F6216 ASQL_F6216 C2 NOT_RELEASED
ASQL_F6329 ASQL_F6329 C2 NOT_RELEASED
ASQL_F6342 ASQL_F6342 C2 NOT_RELEASED
ASQL_F7081 ASQL_F7081 C2 NOT_RELEASED
ASQL_F7414 ASQL_F7414 C2 NOT_RELEASED

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY CmplRqRsltUUID I_CmplRqRslt CmplRqRsltUUID SDS Assessment
ComplianceRequirement I_CmplRqRslt ComplianceRequirement Compliance Requirement
CmplRqVersUUID I_CmplRqRslt CmplRqVersUUID NodeID
ChmlCmplncInfoUUID I_CmplRqRslt ChmlCmplncInfoUUID Chemical Compliance Information PP
ChmlSuplrMatlUUID I_CmplRqRslt ChmlSuplrMatlUUID Supplier Raw Material
SubstanceUUID I_CmplRqRslt SubstanceUUID Substance
ChemicalCustomerMaterialUUID I_CmplRqRslt ChemicalCustomerMaterialUUID Customer Material
PCESScenarioUUID I_CmplRqRslt PCESScenarioUUID Scenario UUID
LastChangedByUser I_CmplRqRslt LastChangedByUser User Name
LastChangedByUserFullName _LastChangedByUser PersonFullName Full Name
ReleasedByUser I_CmplRqRslt ReleasedByUser Released By
ReleasedByUserName _ReleasedByUser PersonFullName Full Name
CmplRqRsltReferencedObjectUUID I_CmplRqRslt CmplRqRsltReferencedObjectUUID UUID of Ref. Object
LastChangeDateTime I_CmplRqRslt LastChangeDateTime Timestamp
ValidityStartDateTime I_CmplRqRslt ValidityStartDateTime Valid From Timestamp
ValidityEndDateTime I_CmplRqRslt ValidityEndDateTime Valid To Timestamp
CmplRqRsltProcessingStatus I_CmplRqRslt CmplRqRsltProcessingStatus Processing Status
ProcessingStatusText _CmplRqRsltProcgStsTxt ProcessingStatusText
CmplRqVersName CmplRqVers CmplRqVersName Compliance Requirement Name
CmplRqApplicationComponent CmplRqVers CmplRqApplicationComponent Solution Area
CmplRqPattern CmplRqVers CmplRqPattern Compliance Pattern
CmplRqRsltCmplncStsTxt

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_CmplRqRsltHistory.
-- 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 C_CmplRqRsltHistory AS
SELECT
  CmplRqRslt.CmplRqRsltUUID AS CmplRqRsltUUID,
  CmplRqRslt.ComplianceRequirement AS ComplianceRequirement,
  CmplRqRslt.CmplRqVersUUID AS CmplRqVersUUID,
  CmplRqRslt.ChmlCmplncInfoUUID AS ChmlCmplncInfoUUID,
  CmplRqRslt.ChmlSuplrMatlUUID AS ChmlSuplrMatlUUID,
  CmplRqRslt.SubstanceUUID AS SubstanceUUID,
  CmplRqRslt.ChemicalCustomerMaterialUUID AS ChemicalCustomerMaterialUUID,
  CmplRqRslt.PCESScenarioUUID AS PCESScenarioUUID,
  CmplRqRslt.LastChangedByUser AS LastChangedByUser,
  _LastChangedByUser.PersonFullName AS LastChangedByUserFullName,
  CmplRqRslt.ReleasedByUser AS ReleasedByUser,
  _ReleasedByUser.PersonFullName AS ReleasedByUserName,
  CmplRqRslt.CmplRqRsltReferencedObjectUUID AS CmplRqRsltReferencedObjectUUID,
  CmplRqRslt.LastChangeDateTime AS LastChangeDateTime,
  CmplRqRslt.ValidityStartDateTime AS ValidityStartDateTime,
  CmplRqRslt.ValidityEndDateTime AS ValidityEndDateTime,
  CmplRqRslt.CmplRqRsltProcessingStatus AS CmplRqRsltProcessingStatus,
  _CmplRqRsltProcgStsTxt.ProcessingStatusText AS ProcessingStatusText,
  CmplRqVers.CmplRqVersName AS CmplRqVersName,
  CmplRqVers.CmplRqApplicationComponent AS CmplRqApplicationComponent,
  CmplRqVers.CmplRqPattern AS CmplRqPattern,
  cast( '' as ehfnd_crr_compl_stat_text ) AS CmplRqRsltCmplncStsTxt
FROM I_CmplRqRslt AS CmplRqRslt
LEFT OUTER JOIN I_CmplRqVersEnhanced AS CmplRqVers ON CmplRqRslt.CmplRqVersUUID = CmplRqVers.CmplRqVersUUID  -- association [1..1]
LEFT OUTER JOIN I_CmplRqRsltProcgStsTxt AS _CmplRqRsltProcgStsTxt ON CmplRqRslt.CmplRqRsltProcessingStatus = _CmplRqRsltProcgStsTxt.CmplRqRsltProcessingStatus AND _CmplRqRsltProcgStsTxt.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_BusinessUserBasic AS _LastChangedByUser ON CmplRqRslt.LastChangedByUser = _LastChangedByUser.UserID  -- association [1..1]
LEFT OUTER JOIN I_BusinessUserBasic AS _ReleasedByUser ON CmplRqRslt.ReleasedByUser = _ReleasedByUser.BusinessPartner  -- association [0..1]
;