fac_cds_ve_results_header

DDL: FAC_CDS_VE_RESULTS_HEADER SQL: FACVERSTHD Type: view

Validation Results Header

fac_cds_ve_results_header is a CDS View that provides data about "Validation Results Header" in SAP S/4HANA. It reads from 2 data sources (vec_rst_header, vec_rst_header) and exposes 143 fields with key field Drruuid. It has 20 associations to related views.

Data Sources (2)

SourceAliasJoin Type
vec_rst_header result from
vec_rst_header result union_all

Associations (20)

CardinalityTargetAliasCondition
[0..1] vec_rst_headert _Text _Text.drruuid = $projection.Drruuid and _Text.lang = $session.system_language
[1..*] FAC_CDS_VE_RESULT_ITEM _items _items.drruuid = $projection.Drruuid
[0..*] FAC_CDS_VE_COMMENT _to_grpcomment _to_grpcomment.drruuid = $projection.Drruuid and _to_grpcomment.node_type = 'R'
[0..*] FAC_CDS_VE_COMMENT_RULE _to_commentrules _to_commentrules.drruuid = $projection.Drruuid
[0..1] I_LedgerText _LedgerText $projection.Ledger = _LedgerText.Ledger and _LedgerText.Language = $session.system_language
[0..1] I_CompanyCode _CompanyCodeText $projection.Bukrs = _CompanyCodeText.CompanyCode
[0..1] I_ControllingArea _ControllingArea $projection.Kokrs = _ControllingArea.ControllingArea
[0..1] I_CostCenterText _CostCenterText $projection.Kokrs = _CostCenterText.ControllingArea and $projection.Rcntr = _CostCenterText.CostCenter and _CostCenterText.Language = $session.system_language and _CostCenterText.ValidityStartDate <= $session.system_date and _CostCenterText.ValidityEndDate >= $session.system_date
[0..1] I_ProfitCenterText _ProfitCenterText $projection.Kokrs = _ProfitCenterText.ControllingArea and $projection.Prctr = _ProfitCenterText.ProfitCenter and _ProfitCenterText.Language = $session.system_language and _ProfitCenterText.ValidityStartDate <= $session.system_date and _ProfitCenterText.ValidityEndDate >= $session.system_date
[0..1] I_SegmentText _SegmentText $projection.Segment = _SegmentText.Segment and _SegmentText.Language = $session.system_language
[0..1] I_BusinessAreaText _BusinessAreaText $projection.Rbusa = _BusinessAreaText.BusinessArea and _BusinessAreaText.Language = $session.system_language
[0..1] I_CnsldtnChartOfAccountsT _CnsldtnChartOfAccountsT $projection.Ritclg = _CnsldtnChartOfAccountsT.ConsolidationChartOfAccounts and _CnsldtnChartOfAccountsT.Language = $session.system_language
[0..1] I_CnsldtnDimensionT _CnsldtnDimensionT $projection.Dimen = _CnsldtnDimensionT.ConsolidationDimension and _CnsldtnDimensionT.Language = $session.system_language
[0..1] I_CnsldtnVersionT _CnsldtnVersionT $projection.Rvers = _CnsldtnVersionT.ConsolidationVersion and _CnsldtnVersionT.Language = $session.system_language
[0..1] I_CnsldtnLedgerT _CnsldtnLedgerT $projection.Rldnr = _CnsldtnLedgerT.ConsolidationLedger and _CnsldtnLedgerT.Language = $session.system_language
[0..1] P_CnsldtnUnit_CombinedText _CnsldtnUnit_CombinedText $projection.Rbunit = _CnsldtnUnit_CombinedText.ConsolidationUnit and _CnsldtnUnit_CombinedText.Language = $session.system_language
[0..1] I_CnsldtnGroupT _CnsldtnGroupT $projection.Dimen = _CnsldtnGroupT.ConsolidationDimension and $projection.Rcongr = _CnsldtnGroupT.ConsolidationGroup and _CnsldtnGroupT.Language = $session.system_language
[0..*] FAC_CDS_VE_RULE_STATE_COUNT _rulecount $projection.Drruuid = _rulecount.drruuid
[0..1] I_UserContactCard _ScheduledByUserContactCard $projection.ScheduledBy = _ScheduledByUserContactCard.ContactCardID
[0..1] vec_rst_headert _Text_e _Text_e.drruuid = $projection.Drruuid and _Text_e.lang = 'E'

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName FACVERSTHD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Validation Results Header view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view

Fields (143)

KeyFieldSource TableSource FieldDescription
KEY Drruuid vec_rst_header drruuid DR Request UUID
scen_id vec_rst_header scen_id Scenario
Ryear vec_rst_header ryear Ref. Year1
Poper vec_rst_header poper Posting periods
Periv vec_rst_header periv FYear Variant
Fiscyearper vec_rst_header fiscyearper Period/Year
Ledger vec_rst_header ledger Ledger
Lastrun vec_rst_header lastrun Last Run
StartTime vec_rst_header starttime Time Stamp
EndTime vec_rst_header endtime Time Stamp
ScheduledBy vec_rst_header scheduledby Created By
Jobname vec_rst_header jobname Name of Send Process
Jobcount vec_rst_header jobcount Job number
ParentJobcount vec_rst_header parent_jobcount Job No.
ParentJobname vec_rst_header parent_jobname Job Name
Lognumber vec_rst_header lognumber UUID
hier_catg vec_rst_header hier_catg Type
hier_hid vec_rst_header hier_sid Hierarchy ID
ver_id vec_rst_header ver_id Version ID
Runtype vec_rst_header runtype Validation Run Type
Runcatg vec_rst_header runcatg Run Category
Customfield1 vec_rst_header customfield1 Field Name
Customfield2 vec_rst_header customfield2 Field Name
Customfield3 vec_rst_header customfield3 Field Name
Customfield4 vec_rst_header customfield4 Field Name
Customfield5 vec_rst_header customfield5 Field Name
Customfield6 vec_rst_header customfield6 Field Name
Customfield7 vec_rst_header customfield7 Field Name
Customfield8 vec_rst_header customfield8 Field Name
Customfield9 vec_rst_header customfield9 Field Name
Customfield10 vec_rst_header customfield10 Field Name
Curtype vec_rst_header curtype Currency Type
Rcomp vec_rst_header rcomp Trading Partner
Bukrs vec_rst_header bukrs Value
Kokrs vec_rst_header kokrs Org. Value
Rcntr vec_rst_header rcntr Cost Center
Prctr vec_rst_header prctr Profit Centers
Segment vec_rst_header segment Segment number
Rbusa vec_rst_header rbusa Business Area
Dimen vec_rst_header dimen Dimension Unit
Rvers vec_rst_header rvers Version: Tax rt
Rldnr vec_rst_header rldnr Ledger (Compat.)
Rbunit vec_rst_header rbunit Consolidation Unit
Rcongr vec_rst_header rcongr Consolidation Group
Ritclg vec_rst_header ritclg Consolidation COA
Tasktype vec_rst_header tasktype Task Type
TaskID vec_rst_header taskid Task ID
cmp_rvers vec_rst_header cmp_rvers
LastsucRunuuid vec_rst_header lastsucrunuuid DR Request UUID
CommentCount comment_count Comment Count
DESCRIPTION _Text description Well Code Des.
LedgerDesc _LedgerText LedgerName Ledger Name
CompanyCodeDesc _CompanyCodeText CompanyCodeName Company Name
ControllingAreaDesc _ControllingArea ControllingAreaName Long Text
CostCenterDesc _CostCenterText CostCenterDescription Description
ProfitCenterDesc _ProfitCenterText ProfitCenterName Profit Center Name
SegmentDesc _SegmentText SegmentName Segment Name
BusinessAreaDesc _BusinessAreaText BusinessAreaName Business Area Name
ConsolidationDimensionDesc _CnsldtnDimensionT ConsolidationDimensionText
ConsolidationVersionDesc _CnsldtnVersionT ConsolidationVersionText
ConsolidationLedgerDesc _CnsldtnLedgerT ConsolidationLedgerName
ConsolidationUnitDesc _CnsldtnUnit_CombinedText ConsolidationUnitText
ConsolidationChartOfAcctsDesc _CnsldtnChartOfAccountsT ConsolidationChartOfAcctsText Description
ConsolidationGroupDesc _CnsldtnGroupT ConsolidationGroupText
CurrencyTypeDesc
SuccessCount
FailedCount
WarningCount
InfoCount
_items _items
_rulecount _rulecount
drruuidasDrruuid
scen_id vec_rst_header scen_id Scenario
Ryear vec_rst_header ryear Ref. Year1
Poper vec_rst_header poper Posting periods
Periv vec_rst_header periv FYear Variant
Fiscyearper vec_rst_header fiscyearper Period/Year
Ledger vec_rst_header ledger Ledger
Lastrun vec_rst_header lastrun Last Run
StartTime vec_rst_header starttime Time Stamp
EndTime vec_rst_header endtime Time Stamp
ScheduledBy vec_rst_header scheduledby Created By
Jobname vec_rst_header jobname Name of Send Process
Jobcount vec_rst_header jobcount Job number
ParentJobcount vec_rst_header parent_jobcount Job No.
ParentJobname vec_rst_header parent_jobname Job Name
Lognumber vec_rst_header lognumber UUID
hier_catg vec_rst_header hier_catg Type
hier_hid vec_rst_header hier_sid Hierarchy ID
ver_id vec_rst_header ver_id Version ID
Runtype vec_rst_header runtype Validation Run Type
Runcatg vec_rst_header runcatg Run Category
Customfield1 vec_rst_header customfield1 Field Name
Customfield2 vec_rst_header customfield2 Field Name
Customfield3 vec_rst_header customfield3 Field Name
Customfield4 vec_rst_header customfield4 Field Name
Customfield5 vec_rst_header customfield5 Field Name
Customfield6 vec_rst_header customfield6 Field Name
Customfield7 vec_rst_header customfield7 Field Name
Customfield8 vec_rst_header customfield8 Field Name
Customfield9 vec_rst_header customfield9 Field Name
Customfield10 vec_rst_header customfield10 Field Name
Curtype vec_rst_header curtype Currency Type
Rcomp vec_rst_header rcomp Trading Partner
Bukrs vec_rst_header bukrs Value
Kokrs vec_rst_header kokrs Org. Value
Rcntr vec_rst_header rcntr Cost Center
Prctr vec_rst_header prctr Profit Centers
Segment vec_rst_header segment Segment number
Rbusa vec_rst_header rbusa Business Area
Dimen vec_rst_header dimen Dimension Unit
Rvers vec_rst_header rvers Version: Tax rt
Rldnr vec_rst_header rldnr Ledger (Compat.)
Rbunit vec_rst_header rbunit Consolidation Unit
Rcongr vec_rst_header rcongr Consolidation Group
Ritclg vec_rst_header ritclg Consolidation COA
Tasktype vec_rst_header tasktype Task Type
TaskID vec_rst_header taskid Task ID
cmp_rvers vec_rst_header cmp_rvers
LastsucRunuuid vec_rst_header lastsucrunuuid DR Request UUID
CommentCount comment_count Comment Count
DESCRIPTION _Text_e description Well Code Des.
LedgerDesc _LedgerText LedgerName Ledger Name
CompanyCodeDesc _CompanyCodeText CompanyCodeName Company Name
ControllingAreaDesc _ControllingArea ControllingAreaName Long Text
CostCenterDesc _CostCenterText CostCenterDescription Description
ProfitCenterDesc _ProfitCenterText ProfitCenterName Profit Center Name
SegmentDesc _SegmentText SegmentName Segment Name
BusinessAreaDesc _BusinessAreaText BusinessAreaName Business Area Name
ConsolidationDimensionDesc _CnsldtnDimensionT ConsolidationDimensionText
ConsolidationVersionDesc _CnsldtnVersionT ConsolidationVersionText
ConsolidationLedgerDesc _CnsldtnLedgerT ConsolidationLedgerName
ConsolidationUnitDesc _CnsldtnUnit_CombinedText ConsolidationUnitText
ConsolidationChartOfAcctsDesc _CnsldtnChartOfAccountsT ConsolidationChartOfAcctsText Description
ConsolidationGroupDesc _CnsldtnGroupT ConsolidationGroupText
CurrencyTypeDesc
SuccessCount
FailedCount
WarningCount
InfoCount
_items _items
_rulecount _rulecount
_ScheduledByUserContactCard _ScheduledByUserContactCard

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 fac_cds_ve_results_header.
-- 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: FACVERSTHD

CREATE VIEW fac_cds_ve_results_header AS
SELECT
  result.drruuid AS Drruuid,
  result.scen_id AS scen_id,
  result.ryear AS Ryear,
  result.poper AS Poper,
  result.periv AS Periv,
  result.fiscyearper AS Fiscyearper,
  result.ledger AS Ledger,
  result.lastrun AS Lastrun,
  result.starttime AS StartTime,
  result.endtime AS EndTime,
  result.scheduledby AS ScheduledBy,
  result.jobname AS Jobname,
  result.jobcount AS Jobcount,
  result.parent_jobcount AS ParentJobcount,
  result.parent_jobname AS ParentJobname,
  result.lognumber AS Lognumber,
  result.hier_catg AS hier_catg,
  result.hier_sid AS hier_hid,
  result.ver_id AS ver_id,
  result.runtype AS Runtype,
  result.runcatg AS Runcatg,
  result.customfield1 AS Customfield1,
  result.customfield2 AS Customfield2,
  result.customfield3 AS Customfield3,
  result.customfield4 AS Customfield4,
  result.customfield5 AS Customfield5,
  result.customfield6 AS Customfield6,
  result.customfield7 AS Customfield7,
  result.customfield8 AS Customfield8,
  result.customfield9 AS Customfield9,
  result.customfield10 AS Customfield10,
  result.curtype AS Curtype,
  result.rcomp AS Rcomp,
  result.bukrs AS Bukrs,
  result.kokrs AS Kokrs,
  result.rcntr AS Rcntr,
  result.prctr AS Prctr,
  result.segment AS Segment,
  result.rbusa AS Rbusa,
  result.dimen AS Dimen,
  result.rvers AS Rvers,
  result.rldnr AS Rldnr,
  result.rbunit AS Rbunit,
  result.rcongr AS Rcongr,
  result.ritclg AS Ritclg,
  result.tasktype AS Tasktype,
  result.taskid AS TaskID,
  result.cmp_rvers AS cmp_rvers,
  result.lastsucrunuuid AS LastsucRunuuid,
  comment_count AS CommentCount,
  _Text.description AS DESCRIPTION,
  _LedgerText.LedgerName AS LedgerDesc,
  _CompanyCodeText.CompanyCodeName AS CompanyCodeDesc,
  _ControllingArea.ControllingAreaName AS ControllingAreaDesc,
  _CostCenterText.CostCenterDescription AS CostCenterDesc,
  _ProfitCenterText.ProfitCenterName AS ProfitCenterDesc,
  _SegmentText.SegmentName AS SegmentDesc,
  _BusinessAreaText.BusinessAreaName AS BusinessAreaDesc,
  _CnsldtnDimensionT.ConsolidationDimensionText AS ConsolidationDimensionDesc,
  _CnsldtnVersionT.ConsolidationVersionText AS ConsolidationVersionDesc,
  _CnsldtnLedgerT.ConsolidationLedgerName AS ConsolidationLedgerDesc,
  _CnsldtnUnit_CombinedText.ConsolidationUnitText AS ConsolidationUnitDesc,
  _CnsldtnChartOfAccountsT.ConsolidationChartOfAcctsText AS ConsolidationChartOfAcctsDesc,
  _CnsldtnGroupT.ConsolidationGroupText AS ConsolidationGroupDesc,
  '' AS CurrencyTypeDesc,
  _rulecount[ drruuid = drruuid and rule_result = 'S' ].StateCount AS SuccessCount,
  _rulecount[ drruuid = drruuid and rule_result = 'E' ].StateCount AS FailedCount,
  _rulecount[ drruuid = drruuid and rule_result = 'W' ].StateCount AS WarningCount,
  _rulecount[ drruuid = drruuid and rule_result = 'I' ].StateCount AS InfoCount
FROM vec_rst_header AS result
LEFT OUTER JOIN vec_rst_headert AS _Text ON _Text.drruuid = Drruuid AND _Text.lang = $session.system_language  -- association [0..1]
LEFT OUTER JOIN FAC_CDS_VE_RESULT_ITEM AS _items ON _items.drruuid = Drruuid  -- association [1..*]
LEFT OUTER JOIN FAC_CDS_VE_COMMENT AS _to_grpcomment ON _to_grpcomment.drruuid = Drruuid AND _to_grpcomment.node_type = 'R'  -- association [0..*]
LEFT OUTER JOIN FAC_CDS_VE_COMMENT_RULE AS _to_commentrules ON _to_commentrules.drruuid = Drruuid  -- association [0..*]
LEFT OUTER JOIN I_LedgerText AS _LedgerText ON Ledger = _LedgerText.Ledger AND _LedgerText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCodeText ON Bukrs = _CompanyCodeText.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON Kokrs = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_CostCenterText AS _CostCenterText ON Kokrs = _CostCenterText.ControllingArea AND Rcntr = _CostCenterText.CostCenter AND _CostCenterText.Language = $session.system_language AND _CostCenterText.ValidityStartDate <= $session.system_date AND _CostCenterText.ValidityEndDate >= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterText ON Kokrs = _ProfitCenterText.ControllingArea AND Prctr = _ProfitCenterText.ProfitCenter AND _ProfitCenterText.Language = $session.system_language AND _ProfitCenterText.ValidityStartDate <= $session.system_date AND _ProfitCenterText.ValidityEndDate >= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_SegmentText AS _SegmentText ON Segment = _SegmentText.Segment AND _SegmentText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_BusinessAreaText AS _BusinessAreaText ON Rbusa = _BusinessAreaText.BusinessArea AND _BusinessAreaText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnChartOfAccountsT AS _CnsldtnChartOfAccountsT ON Ritclg = _CnsldtnChartOfAccountsT.ConsolidationChartOfAccounts AND _CnsldtnChartOfAccountsT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnDimensionT AS _CnsldtnDimensionT ON Dimen = _CnsldtnDimensionT.ConsolidationDimension AND _CnsldtnDimensionT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnVersionT AS _CnsldtnVersionT ON Rvers = _CnsldtnVersionT.ConsolidationVersion AND _CnsldtnVersionT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnLedgerT AS _CnsldtnLedgerT ON Rldnr = _CnsldtnLedgerT.ConsolidationLedger AND _CnsldtnLedgerT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN P_CnsldtnUnit_CombinedText AS _CnsldtnUnit_CombinedText ON Rbunit = _CnsldtnUnit_CombinedText.ConsolidationUnit AND _CnsldtnUnit_CombinedText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnGroupT AS _CnsldtnGroupT ON Dimen = _CnsldtnGroupT.ConsolidationDimension AND Rcongr = _CnsldtnGroupT.ConsolidationGroup AND _CnsldtnGroupT.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN FAC_CDS_VE_RULE_STATE_COUNT AS _rulecount ON Drruuid = _rulecount.drruuid  -- association [0..*]
LEFT OUTER JOIN I_UserContactCard AS _ScheduledByUserContactCard ON ScheduledBy = _ScheduledByUserContactCard.ContactCardID  -- association [0..1]
LEFT OUTER JOIN vec_rst_headert AS _Text_e ON _Text_e.drruuid = Drruuid AND _Text_e.lang = 'E'  -- association [0..1]
-- UNION ALL with additional select branch(es): vec_rst_header
;