C_ProcmtAutomnRuleDefinitionTP
Consumption View for Rule Definition
C_ProcmtAutomnRuleDefinitionTP is a Consumption CDS View that provides data about "Consumption View for Rule Definition" in SAP S/4HANA. It reads from 1 data source (I_ProcmtAutomnRuleDefinitionTP) and exposes 15 fields with key field ProcmtAutomnRuleID. It has 4 associations to related views. It is exposed through 1 OData service (ASQL_F4042). Part of development package ODATA_MM_PUR_BUS_PROC_AUTOMN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProcmtAutomnRuleDefinitionTP | I_ProcmtAutomnRuleDefinitionTP | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_ProcmtAutomnRuleActivityTP | _ProcmtAutomnRuleActivityTP | _ProcmtAutomnRuleActivityTP.ProcmtAutomnRuleID = $projection.ProcmtAutomnRuleID |
| [0..*] | C_ProcmtAutomnRuleConncdSystTP | _ProcmtAutomnRuleConncdSystTP | _ProcmtAutomnRuleConncdSystTP.ProcmtAutomnRuleID = $projection.ProcmtAutomnRuleID |
| [0..*] | C_ProcmtAutomnRuleCriteriaTP | _ProcmtAutomnRuleCriteriaTP | _ProcmtAutomnRuleCriteriaTP.ProcmtAutomnRuleID = $projection.ProcmtAutomnRuleID |
| [0..1] | C_ProcmtAutomnSAPObjectTypeVH | _ProcmtAutomnSAPObjectTypeVH | _ProcmtAutomnSAPObjectTypeVH.SAPObjectType = $projection.SAPObjectType and _ProcmtAutomnSAPObjectTypeVH.Language = $session.system_language |
Annotations (21)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPRAUTRULEDEFTP | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Consumption View for Rule Definition | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| UI.headerInfo.typeName | Rule Definition for Automation | view | |
| UI.headerInfo.typeNamePlural | Rule Definitions for Automation | view | |
| UI.headerInfo.title.value | ProcmtAutomnRuleIDForEdit | view | |
| UI.headerInfo.title.label | Rule | view | |
| UI.headerInfo.description.value | ProcmtAutomnRuleIDForEdit | view | |
| Search.searchable | true | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F4042 | ASQL_F4042 | C2 | NOT_RELEASED |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProcmtAutomnRuleID | ProcmtAutomnRuleID | Rule ID | |
| ProcmtAutomnRuleIDForEdit | ProcmtAutomnRuleIDForEdit | Rule | ||
| ProcmtAutomnRuleName | ProcmtAutomnRuleName | Rule Description | ||
| SAPObjectType | SAPObjectType | Starting Business Object | ||
| ProcmtHubCreatedByUser | ProcmtHubCreatedByUser | Created By | ||
| PrmtHbLastChangedByUser | PrmtHbLastChangedByUser | User Name | ||
| ProcmtHubCreationDate | ProcmtHubCreationDate | Created On | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| ProcmtAutomnIsRuleActive | ProcmtAutomnIsRuleActive | Rule Status | ||
| ValidityStartDate | ValidityStartDate | Valid From | ||
| ValidityEndDate | ValidityEndDate | Valid To | ||
| _ProcmtAutomnRuleActivityTP | _ProcmtAutomnRuleActivityTP | |||
| _ProcmtAutomnRuleConncdSystTP | _ProcmtAutomnRuleConncdSystTP | |||
| _ProcmtAutomnRuleCriteriaTP | _ProcmtAutomnRuleCriteriaTP | |||
| _ProcmtAutomnSAPObjectTypeVH | _ProcmtAutomnSAPObjectTypeVH |
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_ProcmtAutomnRuleDefinitionTP.
-- 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: CPRAUTRULEDEFTP
CREATE VIEW C_ProcmtAutomnRuleDefinitionTP AS
SELECT
ProcmtAutomnRuleID,
ProcmtAutomnRuleIDForEdit,
ProcmtAutomnRuleName,
SAPObjectType,
ProcmtHubCreatedByUser,
PrmtHbLastChangedByUser,
ProcmtHubCreationDate,
LastChangeDateTime,
ProcmtAutomnIsRuleActive,
ValidityStartDate,
ValidityEndDate
FROM I_ProcmtAutomnRuleDefinitionTP
LEFT OUTER JOIN C_ProcmtAutomnRuleActivityTP AS _ProcmtAutomnRuleActivityTP ON _ProcmtAutomnRuleActivityTP.ProcmtAutomnRuleID = ProcmtAutomnRuleID -- association [0..*]
LEFT OUTER JOIN C_ProcmtAutomnRuleConncdSystTP AS _ProcmtAutomnRuleConncdSystTP ON _ProcmtAutomnRuleConncdSystTP.ProcmtAutomnRuleID = ProcmtAutomnRuleID -- association [0..*]
LEFT OUTER JOIN C_ProcmtAutomnRuleCriteriaTP AS _ProcmtAutomnRuleCriteriaTP ON _ProcmtAutomnRuleCriteriaTP.ProcmtAutomnRuleID = ProcmtAutomnRuleID -- association [0..*]
LEFT OUTER JOIN C_ProcmtAutomnSAPObjectTypeVH AS _ProcmtAutomnSAPObjectTypeVH ON _ProcmtAutomnSAPObjectTypeVH.SAPObjectType = SAPObjectType AND _ProcmtAutomnSAPObjectTypeVH.Language = $session.system_language -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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