C_APProcFlwNodeClearingDoc
C_APProcFlwNodeClearingDoc is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 45 fields with key fields ParentProcFlowNodeCompanyCode, ParentProcessFlowNodeDocument, ParentProcFlowNodeFiscalYear, ParentProcessFlowNodeDocItem. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | clrg | inner |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | P_APProcFlowJournalEntry | _journalEntry | clrg.CompanyCode = _journalEntry.CompanyCode and clrg.AccountingDocument = _journalEntry.AccountingDocument and clrg.FiscalYear = _journalEntry.FiscalYear |
| [0..1] | I_InternalOrder | _InternalOrder | $projection.OrderID = _InternalOrder.InternalOrder |
| [0..1] | I_Order | _Order | $projection.OrderID = _Order.OrderID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | CAPPRCFLWCLRGDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| DataAging.noAgingRestriction | false | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| AbapCatalog.preserveKey | true | view |
Fields (45)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ParentProcFlowNodeCompanyCode | bseg | CompanyCode | Receiver Company Code |
| KEY | ParentProcessFlowNodeDocument | bseg | AccountingDocument | Journal Entry |
| KEY | ParentProcFlowNodeFiscalYear | bseg | FiscalYear | G/L Fiscal Year |
| KEY | ParentProcessFlowNodeDocItem | bseg | AccountingDocumentItem | Posting View Item |
| ParentProcessFlowNode | ||||
| ParentProcFlwNodeDocCategory | ||||
| ProcessFlowNode | ||||
| ProcessFlowNodeDocument | I_OperationalAcctgDocItem | AccountingDocument | Journal Entry | |
| ProcessFlowNodeDocCategory | ||||
| FiscalYear | I_OperationalAcctgDocItem | FiscalYear | G/L Fiscal Year | |
| CompanyCode | I_OperationalAcctgDocItem | CompanyCode | Receiver Company Code | |
| CompanyCodeName | ||||
| ParProcFlwNodeCompanyCodeName | ||||
| PostingDate | I_OperationalAcctgDocItem | PostingDate | Posting Date for GR | |
| AccountingDocumentType | I_OperationalAcctgDocItem | AccountingDocumentType | Journal Entry Type | |
| AccountingDocumentTypeName | ||||
| AccountingDocCreatedByUser | ||||
| FullName | _journalEntry | FullName | Name | |
| TransactionCurrency | I_OperationalAcctgDocItem | TransactionCurrency | Transaction Currency | |
| FinancialAccountType | I_OperationalAcctgDocItem | FinancialAccountType | Fin. Account Type | |
| BusinessArea | I_OperationalAcctgDocItem | BusinessArea | Business Area | |
| FunctionalArea | I_OperationalAcctgDocItem | FunctionalArea | Sendr Fctl Area | |
| Segment | I_OperationalAcctgDocItem | Segment | Segment number | |
| ProfitCenter | I_OperationalAcctgDocItem | ProfitCenter | Profit Center | |
| ControllingArea | I_OperationalAcctgDocItem | ControllingArea | Controlling Area | |
| CostCenter | I_OperationalAcctgDocItem | CostCenter | Cost Center | |
| Plant | I_OperationalAcctgDocItem | Plant | Valuation Area | |
| ValuationArea | I_OperationalAcctgDocItem | ValuationArea | Valuation Area | |
| GLAccount | I_OperationalAcctgDocItem | GLAccount | General Ledger | |
| _GLAccountInCompanyCode | I_OperationalAcctgDocItem | _GLAccountInCompanyCode | ||
| Supplier | I_OperationalAcctgDocItem | Supplier | Supplier | |
| _Supplier | I_OperationalAcctgDocItem | _Supplier | ||
| Customer | I_OperationalAcctgDocItem | Customer | Sold-to Party | |
| _Customer | I_OperationalAcctgDocItem | _Customer | ||
| _AccountingDocumentType | I_OperationalAcctgDocItem | _AccountingDocumentType | ||
| SalesDocument | I_OperationalAcctgDocItem | SalesDocument | SD Document | |
| _SalesDocument | I_OperationalAcctgDocItem | _SalesDocument | ||
| OrderID | I_OperationalAcctgDocItem | OrderID | Order ID | |
| _Order | _Order | |||
| _InternalOrder | _InternalOrder | |||
| FixedAsset | I_OperationalAcctgDocItem | FixedAsset | Sub-number | |
| MasterFixedAsset | I_OperationalAcctgDocItem | MasterFixedAsset | Fixed Asset | |
| _FixedAsset | I_OperationalAcctgDocItem | _FixedAsset | ||
| AuthorizationGroup | ||||
| ProfitCtrResponsibleUser |
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_APProcFlwNodeClearingDoc.
-- 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: CAPPRCFLWCLRGDOC
CREATE VIEW C_APProcFlwNodeClearingDoc AS
SELECT
bseg.CompanyCode AS ParentProcFlowNodeCompanyCode,
bseg.AccountingDocument AS ParentProcessFlowNodeDocument,
bseg.FiscalYear AS ParentProcFlowNodeFiscalYear,
bseg.AccountingDocumentItem AS ParentProcessFlowNodeDocItem,
concat(concat(bseg.AccountingDocument,concat('000',bseg.AccountingDocumentItem)),concat(bseg.CompanyCode,concat(bseg.FiscalYear,'3'))) AS ParentProcessFlowNode,
cast( '3' as char1 ) AS ParentProcFlwNodeDocCategory,
concat(concat(clrg.AccountingDocument,'000000'),concat(bseg.CompanyCode,concat(clrg.FiscalYear,'4'))) AS ProcessFlowNode,
clrg.AccountingDocument AS ProcessFlowNodeDocument,
cast( '4' as char1 ) AS ProcessFlowNodeDocCategory,
clrg.FiscalYear AS FiscalYear,
clrg.CompanyCode AS CompanyCode,
clrg._CompanyCode.CompanyCodeName AS CompanyCodeName,
bseg._CompanyCode.CompanyCodeName AS ParProcFlwNodeCompanyCodeName,
clrg.PostingDate AS PostingDate,
clrg.AccountingDocumentType AS AccountingDocumentType,
clrg._AccountingDocumentType._Text[1:Language = $session.system_language].AccountingDocumentTypeName AS AccountingDocumentTypeName,
clrg._JournalEntry.AccountingDocCreatedByUser AS AccountingDocCreatedByUser,
_journalEntry.FullName AS FullName,
clrg.TransactionCurrency AS TransactionCurrency,
clrg.FinancialAccountType AS FinancialAccountType,
clrg.BusinessArea AS BusinessArea,
clrg.FunctionalArea AS FunctionalArea,
clrg.Segment AS Segment,
clrg.ProfitCenter AS ProfitCenter,
clrg.ControllingArea AS ControllingArea,
clrg.CostCenter AS CostCenter,
clrg.Plant AS Plant,
clrg.ValuationArea AS ValuationArea,
clrg.GLAccount AS GLAccount,
clrg._GLAccountInCompanyCode AS _GLAccountInCompanyCode,
clrg.Supplier AS Supplier,
clrg._Supplier AS _Supplier,
clrg.Customer AS Customer,
clrg._Customer AS _Customer,
clrg._AccountingDocumentType AS _AccountingDocumentType,
clrg.SalesDocument AS SalesDocument,
clrg._SalesDocument AS _SalesDocument,
clrg.OrderID AS OrderID,
clrg.FixedAsset AS FixedAsset,
clrg.MasterFixedAsset AS MasterFixedAsset,
clrg._FixedAsset AS _FixedAsset,
bseg._Supplier.AuthorizationGroup AS AuthorizationGroup,
clrg._ProfitCenter.ProfitCtrResponsibleUser AS ProfitCtrResponsibleUser
INNER JOIN I_OperationalAcctgDocItem AS clrg ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_APProcFlowJournalEntry AS _journalEntry ON clrg.CompanyCode = _journalEntry.CompanyCode AND clrg.AccountingDocument = _journalEntry.AccountingDocument AND clrg.FiscalYear = _journalEntry.FiscalYear -- association [1..1]
LEFT OUTER JOIN I_InternalOrder AS _InternalOrder ON OrderID = _InternalOrder.InternalOrder -- association [0..1]
LEFT OUTER JOIN I_Order AS _Order ON OrderID = _Order.OrderID -- association [0..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