I_ARProcessFlowDocumentVH

DDL: I_ARPROCESSFLOWDOCUMENTVH SQL: IARPROCFLOWDOC Type: view COMPOSITE

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)

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

CardinalityTargetAliasCondition
[0..1] I_APProcessFlowDocTypeText _APProcessFlowDocTypeText _APProcessFlowDocTypeText.Language = $session.system_language and _APProcessFlowDocTypeText.ProcessType = 'AR' and _APProcessFlowDocTypeText.DocumentType = '1'

Annotations (13)

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

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