I_ILMResRuleTP

DDL: I_ILMRESRULETP Type: view_entity

Interface view entity for LRM_BS_RST_RULES

I_ILMResRuleTP is a CDS View that provides data about "Interface view entity for LRM_BS_RST_RULES" in SAP S/4HANA. It reads from 2 data sources (I_ILMResConditionFieldValueGP, R_ILMResRuleTP) and exposes 17 fields with key fields ILMObjectCategory, ILMObject, ILMPolicyCategory, ILMPolicyType, ILMPolicyOrigin. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_ILMResConditionFieldValueGP _I_ILMResCondGP left_outer
R_ILMResRuleTP R_ILMResRuleTP from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_ILMPolicySingletonHNRltn _Single $projection.SingletonID = _Single.SingletonID
[0..*] I_ILMResConditionFieldValueTP _I_ILMResConditionFieldValueTP

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Interface view entity for LRM_BS_RST_RULES view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY ILMObjectCategory R_ILMResRuleTP ILMObjectCategory Object Category
KEY ILMObject R_ILMResRuleTP ILMObject Type
KEY ILMPolicyCategory R_ILMResRuleTP ILMPolicyCategory Policy Category
KEY ILMPolicyType R_ILMResRuleTP ILMPolicyType Audit Area
KEY ILMPolicyOrigin R_ILMResRuleTP ILMPolicyOrigin Policy Name
KEY ILMRuleNumber R_ILMResRuleTP ILMRuleNumber Rule Number
ILMRulePriority R_ILMResRuleTP ILMRulePriority Rule Priority
ILMRuleInherit R_ILMResRuleTP ILMRuleInherit Inheriting Possible
ILMResidencePeriod R_ILMResRuleTP ILMResidencePeriod Residence Time
char12endasResidencePeriodChar
ILMResidencePeriodUnit R_ILMResRuleTP ILMResidencePeriodUnit IRM Constant
ILMTimeReference R_ILMResRuleTP ILMTimeReference IRM Constant
ILMTimeOffset R_ILMResRuleTP ILMTimeOffset IRM Constant
SingletonID 1
_Single _Single
_I_ILMResPolicyTP _I_ILMResPolicyTP
_I_ILMResConditionFieldValueTP _I_ILMResConditionFieldValueTP

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_ILMResRuleTP.
-- 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 I_ILMResRuleTP AS
SELECT
  R_ILMResRuleTP.ILMObjectCategory AS ILMObjectCategory,
  R_ILMResRuleTP.ILMObject AS ILMObject,
  R_ILMResRuleTP.ILMPolicyCategory AS ILMPolicyCategory,
  R_ILMResRuleTP.ILMPolicyType AS ILMPolicyType,
  R_ILMResRuleTP.ILMPolicyOrigin AS ILMPolicyOrigin,
  R_ILMResRuleTP.ILMRuleNumber AS ILMRuleNumber,
  R_ILMResRuleTP.ILMRulePriority AS ILMRulePriority,
  R_ILMResRuleTP.ILMRuleInherit AS ILMRuleInherit,
  R_ILMResRuleTP.ILMResidencePeriod AS ILMResidencePeriod,
  case R_ILMResRuleTP.ILMResidencePeriod when -1 then cast( ' ' as abap.char( 12 ) ) else cast( R_ILMResRuleTP.ILMResidencePeriod as abap.char( 12 ) ) end as ResidencePeriodChar AS char12endasResidencePeriodChar,
  R_ILMResRuleTP.ILMResidencePeriodUnit AS ILMResidencePeriodUnit,
  R_ILMResRuleTP.ILMTimeReference AS ILMTimeReference,
  R_ILMResRuleTP.ILMTimeOffset AS ILMTimeOffset,
  1 AS SingletonID
FROM R_ILMResRuleTP
LEFT OUTER JOIN I_ILMResConditionFieldValueGP AS _I_ILMResCondGP ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ILMPolicySingletonHNRltn AS _Single ON SingletonID = _Single.SingletonID  -- association [1..1]
LEFT OUTER JOIN I_ILMResConditionFieldValueTP AS _I_ILMResConditionFieldValueTP ON /* condition not available in parsed metadata */  -- association [0..*]
;