C_IntlgntEquipRetRuleRsltRecd

DDL: C_INTLGNTEQUIPRETRULERSLTRECD Type: view_entity CONSUMPTION

Rule Result selection

C_IntlgntEquipRetRuleRsltRecd is a Consumption CDS View that provides data about "Rule Result selection" in SAP S/4HANA. It reads from 1 data source (I_IntlgntEquipRetRuleRsltRecd) and exposes 21 fields with key fields Material, FldLogsRemotePlant, FldLogsReferenceDocumentNumber, ReferenceDocumentItem, FldLogsMaintenanceOrder. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_IntlgntEquipRetRuleRsltRecd I_IntlgntEquipRetRuleRsltRecd from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_IntlgntEquipRetPrpsdRsnActn _PrpsdReason $projection.FieldLogisticsProposedReason = _PrpsdReason.FieldLogisticsProposedReason
[0..1] I_IntlgntEquipRetRuleNameDesc _RuleDesc $projection.FldLogsIntlgntEquipRetRuleName = _RuleDesc.FldLogsIntlgntEquipRetRuleName

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Rule Result selection view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY FldLogsRemotePlant FldLogsRemotePlant Plant
KEY FldLogsReferenceDocumentNumber FldLogsReferenceDocumentNumber Reference Doc Number
KEY ReferenceDocumentItem ReferenceDocumentItem Reference item
KEY FldLogsMaintenanceOrder FldLogsMaintenanceOrder Order
KEY FldLogsIntlgntEquipRetRuleName FldLogsIntlgntEquipRetRuleName Symbol.Name
KEY RemoteStorageLocation RemoteStorageLocation Location
FldLogsIntlgntEquipRetRuleText _RuleDesc FldLogsIntlgntEquipRetRuleText
FldLogsRuleExecutedDateTime FldLogsRuleExecutedDateTime Time Stamp
FldLogsChangeDateTime FldLogsChangeDateTime Changed On
FldLogsIntlgntEquipRetStatus FldLogsIntlgntEquipRetStatus Workflow Status
FldLogsRulesRecmddActnText _PrpsdReason FldLogsRulesRecmddActnText
DueDate DueDate Promised For
FldLogsIntlgntEquipRetDuInVal
FldLogsIntlgntEquipVirtualDays
FieldLogisticsProposedReason FieldLogisticsProposedReason Proposed Reason
FldLogisticsProposedReasonText _PrpsdReason FldLogisticsProposedReasonText
FldLogsProposedReturnQuantity FldLogsProposedReturnQuantity Value
BaseUnit BaseUnit Unit of Measure
_PrpsdReason _PrpsdReason
_RuleDesc _RuleDesc

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_IntlgntEquipRetRuleRsltRecd.
-- 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_IntlgntEquipRetRuleRsltRecd AS
SELECT
  Material,
  FldLogsRemotePlant,
  FldLogsReferenceDocumentNumber,
  ReferenceDocumentItem,
  FldLogsMaintenanceOrder,
  FldLogsIntlgntEquipRetRuleName,
  RemoteStorageLocation,
  _RuleDesc.FldLogsIntlgntEquipRetRuleText AS FldLogsIntlgntEquipRetRuleText,
  FldLogsRuleExecutedDateTime,
  FldLogsChangeDateTime,
  FldLogsIntlgntEquipRetStatus,
  _PrpsdReason.FldLogsRulesRecmddActnText AS FldLogsRulesRecmddActnText,
  DueDate,
  cast(dats_days_between($session.system_date,DueDate) as abap.char( 15 ) ) AS FldLogsIntlgntEquipRetDuInVal,
  cast( '' as abap.char(50)) AS FldLogsIntlgntEquipVirtualDays,
  FieldLogisticsProposedReason,
  _PrpsdReason.FldLogisticsProposedReasonText AS FldLogisticsProposedReasonText,
  FldLogsProposedReturnQuantity,
  BaseUnit
FROM I_IntlgntEquipRetRuleRsltRecd
LEFT OUTER JOIN I_IntlgntEquipRetPrpsdRsnActn AS _PrpsdReason ON FieldLogisticsProposedReason = _PrpsdReason.FieldLogisticsProposedReason  -- association [1..1]
LEFT OUTER JOIN I_IntlgntEquipRetRuleNameDesc AS _RuleDesc ON FldLogsIntlgntEquipRetRuleName = _RuleDesc.FldLogsIntlgntEquipRetRuleName  -- association [0..1]
;