C_ProcmtAutomnRuleDefinitionTP

DDL: C_PROCMTAUTOMNRULEDEFINITIONTP SQL: CPRAUTRULEDEFTP Type: view CONSUMPTION Package: ODATA_MM_PUR_BUS_PROC_AUTOMN

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)

SourceAliasJoin Type
I_ProcmtAutomnRuleDefinitionTP I_ProcmtAutomnRuleDefinitionTP from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

ServiceBindingVersionContractRelease
ASQL_F4042 ASQL_F4042 C2 NOT_RELEASED

Fields (15)

KeyFieldSource TableSource FieldDescription
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]
;