I_ARPostingRuleTP
Posting Rule Root
I_ARPostingRuleTP is a Transactional CDS View that provides data about "Posting Rule Root" in SAP S/4HANA. It reads from 1 data source (far_pstrl_d_root) and exposes 53 fields with key field PostingRuleUUID. It has 20 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| far_pstrl_d_root | Rule | from |
Associations (20)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | P_ARPostgRuleSourceTmpldist | _PostingRuleTmplSource | Rule.postingruleuuid = _PostingRuleTmplSource.sourcereprocessingruleuuid |
| [1..1] | I_User | _lastChangeUser | _lastChangeUser.UserID = Rule.lastchangedbyuser |
| [1..1] | I_User | _createUser | _createUser.UserID = Rule.createdbyuser |
| [0..*] | I_ARPostingRuleKPI | _RuleKPILatest | Rule.postingruleuuid = _RuleKPILatest.PostingRuleUUID and _RuleKPILatest.PostingRuleKPIIsLatest = 'X' |
| [1..*] | I_ARPostgRuleInterimPosting | _InterimPostingAssoc | $projection.PostingRuleUUID = _InterimPostingAssoc.PostingRuleUUID |
| [0..*] | I_OutgoingIncomingPaytCodeText | _OutgoingIncomingPaymentText | $projection.DebitCreditCode = _OutgoingIncomingPaymentText.DebitCreditCode |
| [0..*] | I_AccountingDocumentTypeText | _DocumentTypeText | $projection.AccountingDocumentType = _DocumentTypeText.AccountingDocumentType |
| [0..*] | I_ReprocgRulePostgProcedTypeT | _ProcedureTypeText | $projection.ReprocgRulePostgProcedureType = _ProcedureTypeText.ReprocgRulePostgProcedureType |
| [0..*] | I_ReprocgRuleApplTypeText | _RuleApplicationTypeText | $projection.ReprocessingRuleApplType = _RuleApplicationTypeText.ReprocessingRuleApplType |
| [0..*] | I_PostgRuleLifecycleStatusTxt | _LifecycleStatusText | $projection.PostingRuleLifecycleStatus = _LifecycleStatusText.PostingRuleLifecycleStatus |
| [1..*] | I_ARPostingRuleUserTP | _UserFavoriteCalculation | Rule.postingruleuuid = _UserFavoriteCalculation.PostingRuleUUID and _UserFavoriteCalculation.UserID = $session.user |
| [0..*] | I_ARPostingRuleUploadStatusTxt | _PostingRuleUploadStatusTxt | $projection.ReprocessingRuleUploadStatus = _PostingRuleUploadStatusTxt.ReprocessingRuleUploadStatus |
| [1..*] | I_ARPostingRuleUserTP | _User | |
| [1..*] | I_ARPostingRuleConditionTP | _Condition | |
| [1..*] | I_ARPostgRuleActnGLTP | _ActionGL | |
| [1..*] | I_ARPostgRuleActnAPARTP | _ActionAPAR | |
| [1..*] | I_ARPostgRuleActnPaytCatTP | _ActionPaytCat | |
| [0..*] | I_ARPostingRuleKPI | _RuleKPI | |
| [1..*] | I_ARPostgRuleOriginatingTmpl | _RuleTemplate | |
| [1..1] | I_ARPostgRuleInterimPosting | _InterimPosting | |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| EndUserText.label | Posting Rule Root | view | |
| Search.searchable | true | view | |
| ObjectModel.transactionalProcessingEnabled | true | view |
Fields (53)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PostingRuleUUID | far_pstrl_d_root | postingruleuuid | Rule Key |
| DebitCreditCode | ||||
| ReprocgRulePostgProcedureType | far_pstrl_d_root | reprocgrulepostgproceduretype | Procedure Type | |
| PostingRuleDescription | far_pstrl_d_root | postingruledescription | Description | |
| BankStatementShortID | far_pstrl_d_root | bankstatementshortid | Statement Short Key | |
| BankStatementItem | far_pstrl_d_root | bankstatementitem | Memo Record No. | |
| OriginalPostingRuleUUID | far_pstrl_d_root | originalpostingruleuuid | Original Rule Key | |
| PostingRule | far_pstrl_d_root | postingrule | Processing Rule ID | |
| PostingRuleVersion | far_pstrl_d_root | postingruleversion | Version ID | |
| SourceReprocessingRuleUUID | far_pstrl_d_root | sourcereprocessingruleuuid | Source Template Key | |
| LastChangedByUser | ||||
| LastChangedByUserFullName | ||||
| LastChangeDateTime | ||||
| CreatedByUser | ||||
| CreatedByUserFullName | ||||
| CreationDateTime | ||||
| ReprocessingRuleCreationMode | far_pstrl_d_root | reprocessingrulecreationmode | Creation Mode | |
| PostingRuleDataModelVersion | far_pstrl_d_root | postingruledatamodelversion | Data Model Version | |
| BankStatementItemSemanticKey | far_pstrl_d_root | bankstatementitemsemantickey | BS Short Id and Item | |
| PostingRuleActionType | far_pstrl_d_root | postingruleactiontype | Action Type | |
| IsObsolete | far_pstrl_d_root | isobsolete | Deprecated | |
| PostingRuleIsAutomatic | far_pstrl_d_root | postingruleisautomatic | Automated Rule | |
| PostingRuleIsActive | far_pstrl_d_root | postingruleisactive | Active Autom. Rule | |
| IsAuthorizedUser | far_pstrl_d_root | isauthorizeduser | Is Authorized | |
| ReprocessingRuleIsShared | far_pstrl_d_root | reprocessingruleisshared | Shared Rule | |
| PostingRuleIsMaLrnProposal | far_pstrl_d_root | postingruleismalrnproposal | ML Proposed Rule | |
| ApplicationLog | far_pstrl_d_root | applicationlog | Log Number | |
| ApplicationLogHandle | ||||
| AssignedProcessorIsIgnored | far_pstrl_d_root | assignedprocessorisignored | Ignore Assigned Proc | |
| ProposedPostgRuleIsDisregarded | far_pstrl_d_root | proposedpostgruleisdisregarded | Hidden Template | |
| ReprocessingRuleCluster | far_pstrl_d_root | reprocessingrulecluster | Rule Cluster | |
| PostingRuleTemplate | far_pstrl_d_root | postingruletemplate | Template ID | |
| FallbackOnAcctPostingIsEnabled | far_pstrl_d_root | fallbackonacctpostingisenabled | Fallback on Account | |
| AccountingDocumentType | far_pstrl_d_root | accountingdocumenttype | Journal Entry Type | |
| ReprocessingRuleCreationVers | far_pstrl_d_root | reprocessingrulecreationvers | Creation Version | |
| JournalEntryType | _InterimPostingAssoc | JournalEntryType | Journal Entry Type | |
| GLAccount | _InterimPostingAssoc | GLAccount | General Ledger | |
| ReprocessingRuleUploadStatus | far_pstrl_d_root | reprocessingruleuploadstatus | Upload Status | |
| _Condition | _Condition | |||
| _ActionGL | _ActionGL | |||
| _ActionAPAR | _ActionAPAR | |||
| _User | _User | |||
| _ActionPaytCat | _ActionPaytCat | |||
| _RuleKPI | _RuleKPI | |||
| _RuleTemplate | _RuleTemplate | |||
| _InterimPosting | _InterimPosting | |||
| _DocumentTypeText | _DocumentTypeText | |||
| _ProcedureTypeText | _ProcedureTypeText | |||
| _RuleApplicationTypeText | _RuleApplicationTypeText | |||
| _LifecycleStatusText | _LifecycleStatusText | |||
| _OutgoingIncomingPaymentText | _OutgoingIncomingPaymentText | |||
| _UserFavoriteCalculation | _UserFavoriteCalculation | |||
| _PostingRuleUploadStatusTxt | _PostingRuleUploadStatusTxt |
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_ARPostingRuleTP.
-- 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_ARPostingRuleTP AS
SELECT
Rule.postingruleuuid AS PostingRuleUUID,
cast (Rule.debitcreditcode as far_pstrl_debitcreditcode) AS DebitCreditCode,
Rule.reprocgrulepostgproceduretype AS ReprocgRulePostgProcedureType,
Rule.postingruledescription AS PostingRuleDescription,
Rule.bankstatementshortid AS BankStatementShortID,
Rule.bankstatementitem AS BankStatementItem,
Rule.originalpostingruleuuid AS OriginalPostingRuleUUID,
Rule.postingrule AS PostingRule,
Rule.postingruleversion AS PostingRuleVersion,
Rule.sourcereprocessingruleuuid AS SourceReprocessingRuleUUID,
cast( Rule.lastchangedbyuser as far_pstrl_cuser ) AS LastChangedByUser,
cast( _lastChangeUser.UserDescription as far_pstrl_cuser_name ) AS LastChangedByUserFullName,
cast( Rule.lastchangedatetime as timestamp ) AS LastChangeDateTime,
cast (Rule.createdbyuser as far_pstrl_euser ) AS CreatedByUser,
cast (_createUser.UserDescription as far_pstrl_euser_name ) AS CreatedByUserFullName,
cast( Rule.creationdatetime as timestamp ) AS CreationDateTime,
Rule.reprocessingrulecreationmode AS ReprocessingRuleCreationMode,
Rule.postingruledatamodelversion AS PostingRuleDataModelVersion,
Rule.bankstatementitemsemantickey AS BankStatementItemSemanticKey,
Rule.postingruleactiontype AS PostingRuleActionType,
Rule.isobsolete AS IsObsolete,
Rule.postingruleisautomatic AS PostingRuleIsAutomatic,
Rule.postingruleisactive AS PostingRuleIsActive,
Rule.isauthorizeduser AS IsAuthorizedUser,
Rule.reprocessingruleisshared AS ReprocessingRuleIsShared,
Rule.postingruleismalrnproposal AS PostingRuleIsMaLrnProposal,
Rule.applicationlog AS ApplicationLog,
cast( Rule.applicationloghandle as abap.char(22) ) AS ApplicationLogHandle,
Rule.assignedprocessorisignored AS AssignedProcessorIsIgnored,
Rule.proposedpostgruleisdisregarded AS ProposedPostgRuleIsDisregarded,
Rule.reprocessingrulecluster AS ReprocessingRuleCluster,
Rule.postingruletemplate AS PostingRuleTemplate,
Rule.fallbackonacctpostingisenabled AS FallbackOnAcctPostingIsEnabled,
Rule.accountingdocumenttype AS AccountingDocumentType,
Rule.reprocessingrulecreationvers AS ReprocessingRuleCreationVers,
_InterimPostingAssoc.JournalEntryType AS JournalEntryType,
_InterimPostingAssoc.GLAccount AS GLAccount,
Rule.reprocessingruleuploadstatus AS ReprocessingRuleUploadStatus
FROM far_pstrl_d_root AS Rule
LEFT OUTER JOIN P_ARPostgRuleSourceTmpldist AS _PostingRuleTmplSource ON Rule.postingruleuuid = _PostingRuleTmplSource.sourcereprocessingruleuuid -- association [1..1]
LEFT OUTER JOIN I_User AS _lastChangeUser ON _lastChangeUser.UserID = Rule.lastchangedbyuser -- association [1..1]
LEFT OUTER JOIN I_User AS _createUser ON _createUser.UserID = Rule.createdbyuser -- association [1..1]
LEFT OUTER JOIN I_ARPostingRuleKPI AS _RuleKPILatest ON Rule.postingruleuuid = _RuleKPILatest.PostingRuleUUID AND _RuleKPILatest.PostingRuleKPIIsLatest = 'X' -- association [0..*]
LEFT OUTER JOIN I_ARPostgRuleInterimPosting AS _InterimPostingAssoc ON PostingRuleUUID = _InterimPostingAssoc.PostingRuleUUID -- association [1..*]
LEFT OUTER JOIN I_OutgoingIncomingPaytCodeText AS _OutgoingIncomingPaymentText ON DebitCreditCode = _OutgoingIncomingPaymentText.DebitCreditCode -- association [0..*]
LEFT OUTER JOIN I_AccountingDocumentTypeText AS _DocumentTypeText ON AccountingDocumentType = _DocumentTypeText.AccountingDocumentType -- association [0..*]
LEFT OUTER JOIN I_ReprocgRulePostgProcedTypeT AS _ProcedureTypeText ON ReprocgRulePostgProcedureType = _ProcedureTypeText.ReprocgRulePostgProcedureType -- association [0..*]
LEFT OUTER JOIN I_ReprocgRuleApplTypeText AS _RuleApplicationTypeText ON ReprocessingRuleApplType = _RuleApplicationTypeText.ReprocessingRuleApplType -- association [0..*]
LEFT OUTER JOIN I_PostgRuleLifecycleStatusTxt AS _LifecycleStatusText ON PostingRuleLifecycleStatus = _LifecycleStatusText.PostingRuleLifecycleStatus -- association [0..*]
LEFT OUTER JOIN I_ARPostingRuleUserTP AS _UserFavoriteCalculation ON Rule.postingruleuuid = _UserFavoriteCalculation.PostingRuleUUID AND _UserFavoriteCalculation.UserID = $session.user -- association [1..*]
LEFT OUTER JOIN I_ARPostingRuleUploadStatusTxt AS _PostingRuleUploadStatusTxt ON ReprocessingRuleUploadStatus = _PostingRuleUploadStatusTxt.ReprocessingRuleUploadStatus -- association [0..*]
LEFT OUTER JOIN I_ARPostingRuleUserTP AS _User ON /* condition not available in parsed metadata */ -- association [1..*]
LEFT OUTER JOIN I_ARPostingRuleConditionTP AS _Condition ON /* condition not available in parsed metadata */ -- association [1..*]
LEFT OUTER JOIN I_ARPostgRuleActnGLTP AS _ActionGL ON /* condition not available in parsed metadata */ -- association [1..*]
LEFT OUTER JOIN I_ARPostgRuleActnAPARTP AS _ActionAPAR ON /* condition not available in parsed metadata */ -- association [1..*]
LEFT OUTER JOIN I_ARPostgRuleActnPaytCatTP AS _ActionPaytCat ON /* condition not available in parsed metadata */ -- association [1..*]
LEFT OUTER JOIN I_ARPostingRuleKPI AS _RuleKPI ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN I_ARPostgRuleOriginatingTmpl AS _RuleTemplate ON /* condition not available in parsed metadata */ -- association [1..*]
LEFT OUTER JOIN I_ARPostgRuleInterimPosting AS _InterimPosting ON /* condition not available in parsed metadata */ -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- 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