I_ARProcessFlowDocumentVH
Document Number
I_ARProcessFlowDocumentVH is a Composite CDS View that provides data about "Document Number" in SAP S/4HANA. It reads from 6 data sources and exposes 169 fields with key fields DocumentType, CompanyCode, FiscalYear, Documentid, CompanyCode. It has 1 association to related views.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| I_BillingDocument | I_BillingDocument | union_all |
| I_BillingDocumentBasic | I_BillingDocumentBasic | union_all |
| I_DeliveryDocument | I_DeliveryDocument | union_all |
| I_SalesDocument | I_SalesDocument | from |
| I_SalesDocument | I_SalesDocument | union_all |
| I_ServiceDocument | I_ServiceDocument | union_all |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_APProcessFlowDocTypeText | _APProcessFlowDocTypeText | _APProcessFlowDocTypeText.Language = $session.system_language and _APProcessFlowDocTypeText.ProcessType = 'AR' and _APProcessFlowDocTypeText.DocumentType = '1' |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IARPROCFLOWDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | Document Number | view | |
| Search.searchable | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (169)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DocumentType | |||
| KEY | CompanyCode | Receiver Company Code | ||
| KEY | FiscalYear | G/L Fiscal Year | ||
| KEY | Documentid | SD Document | ||
| ACMTransactingCustomerRef | Purchase Order Number | |||
| DocumentTypeDescription | ||||
| SalesDocumentType | Billing Type | |||
| OrganizationDivision | Internal Division ID | |||
| SalesOrganization | Sales Organization | |||
| DistributionChannel | RefDistCh-Cust/Mat. | |||
| ShippingPoint | Shipping Point | |||
| BillingDocumentType | Billing Type | |||
| FinancialAccountType | Fin. Account Type | |||
| BusinessArea | Business Area | |||
| FunctionalArea | Sendr Fctl Area | |||
| Segment | Segment number | |||
| SalesOffice | Sales Office | |||
| SalesGroup | Sales Group | |||
| SalesOrganizationOrgUnitID | Sales Organization | |||
| SalesOfficeOrgUnitID | Sales Office | |||
| SalesGroupOrgUnitID | Sales Group | |||
| DocumentTypeasdokarasDocumentType | Service Organization | |||
| KEY | CompanyCode | Receiver Company Code | ||
| KEY | FiscalYear | G/L Fiscal Year | ||
| KEY | Documentid | SD Document | ||
| ACMTransactingCustomerRef | Purchase Order Number | |||
| DocumentTypeDescription | ||||
| SalesDocumentType | Billing Type | |||
| OrganizationDivision | Internal Division ID | |||
| SalesOrganization | Sales Organization | |||
| DistributionChannel | RefDistCh-Cust/Mat. | |||
| ShippingPoint | Shipping Point | |||
| BillingDocumentType | Billing Type | |||
| FinancialAccountType | Fin. Account Type | |||
| BusinessArea | Business Area | |||
| FunctionalArea | Sendr Fctl Area | |||
| Segment | Segment number | |||
| SalesOffice | Sales Office | |||
| SalesGroup | Sales Group | |||
| SalesOrganizationOrgUnitID | Sales Organization | |||
| SalesOfficeOrgUnitID | Sales Office | |||
| SalesGroupOrgUnitID | Sales Group | |||
| DocumentTypeasdokarasDocumentType | Service Organization | |||
| KEY | CompanyCode | Receiver Company Code | ||
| KEY | FiscalYear | G/L Fiscal Year | ||
| KEY | Documentid | SD Document | ||
| ACMTransactingCustomerRef | Purchase Order Number | |||
| DocumentTypeDescription | ||||
| SalesDocumentType | Billing Type | |||
| OrganizationDivision | Internal Division ID | |||
| SalesOrganization | Sales Organization | |||
| DistributionChannel | RefDistCh-Cust/Mat. | |||
| ShippingPoint | Shipping Point | |||
| BillingDocumentType | Billing Type | |||
| FinancialAccountType | Fin. Account Type | |||
| BusinessArea | Business Area | |||
| FunctionalArea | Sendr Fctl Area | |||
| Segment | Segment number | |||
| SalesOffice | Sales Office | |||
| SalesGroup | Sales Group | |||
| SalesOrganizationOrgUnitID | Sales Organization | |||
| SalesOfficeOrgUnitID | Sales Office | |||
| SalesGroupOrgUnitID | Sales Group | |||
| DocumentTypeasdokarasDocumentType | Service Organization | |||
| KEY | CompanyCode | Receiver Company Code | ||
| KEY | FiscalYear | G/L Fiscal Year | ||
| KEY | Documentid | SD Document | ||
| ACMTransactingCustomerRef | Purchase Order Number | |||
| DocumentTypeDescription | ||||
| SalesDocumentType | Billing Type | |||
| OrganizationDivision | Internal Division ID | |||
| SalesOrganization | Sales Organization | |||
| DistributionChannel | RefDistCh-Cust/Mat. | |||
| ShippingPoint | Shipping Point | |||
| BillingDocumentType | Billing Type | |||
| FinancialAccountType | Fin. Account Type | |||
| BusinessArea | Business Area | |||
| FunctionalArea | Sendr Fctl Area | |||
| Segment | Segment number | |||
| SalesOffice | Sales Office | |||
| SalesGroup | Sales Group | |||
| SalesOrganizationOrgUnitID | Sales Organization | |||
| SalesOfficeOrgUnitID | Sales Office | |||
| SalesGroupOrgUnitID | Sales Group | |||
| DocumentTypeasDocumentType | ||||
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | G/L Fiscal Year | ||
| KEY | Documentid | SD Document | ||
| ACMTransactingCustomerRef | Purchase Order Number | |||
| DocumentTypeDescription | ||||
| SalesDocumentType | Billing Type | |||
| OrganizationDivision | Internal Division ID | |||
| SalesOrganization | Sales Organization | |||
| DistributionChannel | RefDistCh-Cust/Mat. | |||
| ShippingPoint | Shipping Point | |||
| BillingDocumentType | Billing Type | |||
| FinancialAccountType | Fin. Account Type | |||
| BusinessArea | Business Area | |||
| FunctionalArea | Sendr Fctl Area | |||
| Segment | Segment number | |||
| SalesOffice | Sales Office | |||
| SalesGroup | Sales Group | |||
| SalesOrganizationOrgUnitID | Sales Organization | |||
| SalesOfficeOrgUnitID | Sales Office | |||
| SalesGroupOrgUnitID | Sales Group | |||
| DocumentTypeasdokarasDocumentType | Service Organization | |||
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | FiscalYear | G/L Fiscal Year | ||
| KEY | Documentid | SD Document | ||
| ACMTransactingCustomerRef | Purchase Order Number | |||
| DocumentTypeDescription | ||||
| SalesDocumentType | Billing Type | |||
| OrganizationDivision | Internal Division ID | |||
| SalesOrganization | Sales Organization | |||
| DistributionChannel | RefDistCh-Cust/Mat. | |||
| ShippingPoint | Shipping Point | |||
| BillingDocumentType | Billing Type | |||
| FinancialAccountType | Fin. Account Type | |||
| BusinessArea | Business Area | |||
| FunctionalArea | Sendr Fctl Area | |||
| Segment | Segment number | |||
| SalesOffice | Sales Office | |||
| SalesGroup | Sales Group | |||
| SalesOrganizationOrgUnitID | Sales Organization | |||
| SalesOfficeOrgUnitID | Sales Office | |||
| SalesGroupOrgUnitID | Sales Group | |||
| DocumentTypeasdokarasDocumentType | Service Organization | |||
| KEY | CompanyCode | Receiver Company Code | ||
| KEY | FiscalYear | G/L Fiscal Year | ||
| KEY | Documentid | SD Document | ||
| ACMTransactingCustomerRef | Purchase Order Number | |||
| DocumentTypeDescription | ||||
| SalesDocumentType | Billing Type | |||
| OrganizationDivision | Internal Division ID | |||
| SalesOrganization | Sales Organization | |||
| DistributionChannel | RefDistCh-Cust/Mat. | |||
| ShippingPoint | Shipping Point | |||
| BillingDocumentType | Billing Type | |||
| FinancialAccountType | Fin. Account Type | |||
| BusinessArea | Business Area | |||
| FunctionalArea | Sendr Fctl Area | |||
| Segment | Segment number | |||
| SalesOffice | Sales Office | |||
| SalesGroup | Sales Group | |||
| SalesOrganizationOrgUnitID | Sales Organization | |||
| SalesOfficeOrgUnitID | Sales Office | |||
| SalesGroupOrgUnitID | Sales Group | |||
| DocumentTypeasdokarasDocumentType | Service Organization | |||
| KEY | CompanyCode | Receiver Company Code | ||
| KEY | FiscalYear | G/L Fiscal Year | ||
| KEY | Documentid | SD Document | ||
| ACMTransactingCustomerRef | Purchase Order Number | |||
| DocumentTypeDescription | ||||
| SalesDocumentType | Billing Type | |||
| OrganizationDivision | Internal Division ID | |||
| SalesOrganization | Sales Organization | |||
| DistributionChannel | RefDistCh-Cust/Mat. | |||
| ShippingPoint | Shipping Point | |||
| BillingDocumentType | Billing Type | |||
| FinancialAccountType | Fin. Account Type | |||
| BusinessArea | Business Area | |||
| FunctionalArea | Sendr Fctl Area | |||
| Segment | Segment number | |||
| SalesOffice | Sales Office | |||
| SalesGroup | Sales Group | |||
| SalesOrganizationOrgUnitID | Sales Organization | |||
| SalesOfficeOrgUnitID | Sales Office | |||
| SalesGroupOrgUnitID | Sales Group | |||
| ServiceOrganization |
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_ARProcessFlowDocumentVH.
-- 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: IARPROCFLOWDOC
CREATE VIEW I_ARProcessFlowDocumentVH AS
SELECT
cast(_APProcessFlowDocTypeText.DocumentType as dokar) AS DocumentType,
cast('' as fis_bukrs) AS CompanyCode,
cast('' as fis_gjahr) AS FiscalYear,
cast(SalesDocument as farp_dispprocflow_belnr_d) AS Documentid,
cast(PurchaseOrderByCustomer as bstnk) AS ACMTransactingCustomerRef,
I_SalesDocument._SalesDocumentType._Text[1:Language = $session.system_language].SalesDocumentTypeName AS DocumentTypeDescription,
cast(SalesDocumentType as auart) AS SalesDocumentType,
cast(OrganizationDivision as spart) AS OrganizationDivision,
cast(SalesOrganization as vkorg) AS SalesOrganization,
cast(DistributionChannel as vtweg) AS DistributionChannel,
cast('' as vstel) AS ShippingPoint,
cast('' as fkart) AS BillingDocumentType,
cast('' as koart) AS FinancialAccountType,
cast('' as gsber) AS BusinessArea,
cast('' as fkber_long) AS FunctionalArea,
cast('' as fb_segment) AS Segment,
cast('' as vkbur ) AS SalesOffice,
cast('' as vkgrp ) AS SalesGroup,
cast('' as crmt_sales_org ) AS SalesOrganizationOrgUnitID,
cast('' as crmt_sales_office ) AS SalesOfficeOrgUnitID,
cast('' as crmt_sales_group ) AS SalesGroupOrgUnitID,
cast('' as crmt_service_org ) as ServiceOrganization AS DocumentTypeasdokarasDocumentType,
cast('' as crmt_service_org ) as ServiceOrganization AS DocumentTypeasDocumentType,
cast('' as crmt_service_org ) AS ServiceOrganization
FROM I_SalesDocument
LEFT OUTER JOIN I_APProcessFlowDocTypeText AS _APProcessFlowDocTypeText ON _APProcessFlowDocTypeText.Language = $session.system_language AND _APProcessFlowDocTypeText.ProcessType = 'AR' AND _APProcessFlowDocTypeText.DocumentType = '1' -- association [0..1]
-- UNION ALL with additional select branch(es): I_SalesDocument, I_DeliveryDocument, I_BillingDocument, I_ServiceDocument, I_BillingDocumentBasic
;
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