I_BUS_RULE_MAIN
CDS Test for rules
I_BUS_RULE_MAIN is a CDS View that provides data about "CDS Test for rules" in SAP S/4HANA. It reads from 4 data sources (lrm_t_con_t, lrm_bus_rule_det, lrm_t_con_t, lrm_bus_rule_txt) and exposes 10 fields with key field rule_id. It has 2 associations to related views.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| lrm_t_con_t | c | inner |
| lrm_bus_rule_det | d | inner |
| lrm_t_con_t | l | inner |
| lrm_bus_rule_txt | t | left_outer |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_Rule_Purpose | _Purpose | $projection.rule_id = _Purpose.rule_id |
| [0..*] | I_Genrules | _GenRules | $projection.rule_id = _GenRules.RuleId |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | BUS_RULE1 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientDependent | true | view | |
| EndUserText.label | CDS Test for rules | view | |
| ObjectModel.writeActivePersistence | lrm_bus_rule | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.compositionRoot | true | view |
Fields (10)
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_BUS_RULE_MAIN.
-- 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: BUS_RULE1
CREATE VIEW I_BUS_RULE_MAIN AS
SELECT
r.rule_id AS rule_id,
r.rule_start_date AS start_date,
r.rule_end_date AS end_date,
r.rule_status AS rule_status,
cast('' as lrm_purpose) AS createPurpose,
r.auth_group AS auth_grp,
cast(l.constant_value_t as lrm_retention_unit_t) AS ret_unit,
cast(c.constant_value_t as lrm_residence_unit_t) AS res_unit
INNER JOIN lrm_bus_rule_det AS d ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN lrm_bus_rule_txt AS t ON /* join condition not captured in parsed metadata */
INNER JOIN lrm_t_con_t AS c ON /* join condition not captured in parsed metadata */
INNER JOIN lrm_t_con_t AS l ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Rule_Purpose AS _Purpose ON rule_id = _Purpose.rule_id -- association [0..*]
LEFT OUTER JOIN I_Genrules AS _GenRules ON rule_id = _GenRules.RuleId -- association [0..*]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA