I_APProcessFlowDocumentVH

DDL: I_APPROCESSFLOWDOCUMENTVH SQL: IAPPROCFLOWDOC Type: view COMPOSITE

Document Number

I_APProcessFlowDocumentVH is a Composite CDS View that provides data about "Document Number" in SAP S/4HANA. It reads from 7 data sources and exposes 195 fields with key fields SourceLedger, Documentid, DocumentType, FiscalYear, CompanyCode. It has 1 association to related views.

Data Sources (7)

SourceAliasJoin Type
I_OperationalAcctgDocItem bseg union
I_OperationalAcctgDocItem clrg inner
I_EarmarkedFundsDocument I_EarmarkedFundsDocument union
I_JournalEntrySemanticKeyVH I_JournalEntrySemanticKeyVH union
I_MaterialDocumentRecord I_MaterialDocumentRecord union
I_PurchaseOrder I_PurchaseOrder from
I_SupplierInvoice I_SupplierInvoice union

Associations (1)

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

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IAPPROCFLOWDOC 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
AccessControl.personalData.blocking #REQUIRED view
Search.searchable true view

Fields (195)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger
KEY Documentid Earmarked Funds
KEY DocumentType
KEY FiscalYear G/L Fiscal Year
KEY CompanyCode Receiver Company Code
KEY Ledger Ledger
Supplier Supplier
ParentProcessFlowNodeDocItem Posting View Item
DocumentTypeDescription _APProcessFlowDocTypeText DocumentTypeDescription
DocumentReferenceID Reference
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchaseOrderType PurchaseOrderType PO Type
Plant Valuation Area
StorageLocation StorageLocation
GoodsMovementType Movement Type
CustomerBasicAuthorizationGrp AuthorizGroup
SupplierBasicAuthorizationGrp AuthorizGroup
BPPersonAuthorizationGroup AuthorizGroup
IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
FinancialAccountType Fin. Account Type
BusinessArea Business Area
FunctionalArea Sendr Fctl Area
Segment Segment number
IssuingOrReceivingPlant Transfer Plant
IsIssgOrRcvgStorLocAuthChkActv
IssuingOrReceivingStorageLoc Receiving SLoc.
Customer Sold-to Party
StockOwner Owner of stock
IsStorLocAuthznCheckActive
AuthorizationGroup _Supplier AuthorizationGroup AuthorizGroup
EarmarkedFundsDocumentCategory Document Category
EarmarkedFundsDocumentType Document Type
KEY Documentid Earmarked Funds
KEY DocumentType
KEY FiscalYear G/L Fiscal Year
KEY CompanyCode CompanyCode Receiver Company Code
KEY Ledger Ledger
Supplier Supplier Supplier
ParentProcessFlowNodeDocItem Posting View Item
DocumentTypeDescription _APProcessFlowDocTypeText DocumentTypeDescription
DocumentReferenceID ReferenceDocument Reference
PurchasingGroup Purchasing Group
PurchasingOrganization Purchasing Organization
PurchaseOrderType PO Type
Plant Plant Valuation Area
StorageLocation StorageLocation StorageLocation
GoodsMovementType GoodsMovementType Movement Type
CustomerBasicAuthorizationGrp _Customer AuthorizationGroup AuthorizGroup
SupplierBasicAuthorizationGrp _Supplier AuthorizationGroup AuthorizGroup
BPPersonAuthorizationGroup _BPStockOwner AuthorizationGroup AuthorizGroup
IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
FinancialAccountType Fin. Account Type
BusinessArea Business Area
FunctionalArea Sendr Fctl Area
Segment Segment number
IssuingOrReceivingPlant IssuingOrReceivingPlant Transfer Plant
IsIssgOrRcvgStorLocAuthChkActv _IssuingOrReceivingStorageLoc IsStorLocAuthznCheckActive
IssuingOrReceivingStorageLoc IssuingOrReceivingStorageLoc Receiving SLoc.
Customer Customer Sold-to Party
StockOwner StockOwner Owner of stock
IsStorLocAuthznCheckActive _StorageLocation IsStorLocAuthznCheckActive
AuthorizationGroup AuthorizGroup
EarmarkedFundsDocumentCategory Document Category
EarmarkedFundsDocumentType Document Type
KEY Documentid Earmarked Funds
KEY DocumentType
KEY FiscalYear G/L Fiscal Year
KEY CompanyCode CompanyCode Receiver Company Code
KEY Ledger Ledger
Supplier Supplier
ParentProcessFlowNodeDocItem Posting View Item
DocumentTypeDescription _APProcessFlowDocTypeText DocumentTypeDescription
DocumentReferenceID Reference
PurchasingGroup Purchasing Group
PurchasingOrganization Purchasing Organization
PurchaseOrderType PO Type
Plant Valuation Area
StorageLocation StorageLocation
GoodsMovementType Movement Type
CustomerBasicAuthorizationGrp AuthorizGroup
SupplierBasicAuthorizationGrp AuthorizGroup
BPPersonAuthorizationGroup AuthorizGroup
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
FinancialAccountType Fin. Account Type
BusinessArea Business Area
FunctionalArea Sendr Fctl Area
Segment Segment number
IssuingOrReceivingPlant Transfer Plant
IsIssgOrRcvgStorLocAuthChkActv
IssuingOrReceivingStorageLoc Receiving SLoc.
Customer Sold-to Party
StockOwner Owner of stock
IsStorLocAuthznCheckActive
AuthorizationGroup _Supplier AuthorizationGroup AuthorizGroup
EarmarkedFundsDocumentCategory Document Category
EarmarkedFundsDocumentType Document Type
DocumentType3keySourceLedger
KEY Documentid Earmarked Funds
KEY DocumentType
KEY FiscalYear G/L Fiscal Year
KEY CompanyCode CompanyCode Receiver Company Code
KEY Ledger Ledger Ledger
KEY Supplier Supplier
ParentProcessFlowNodeDocItem Posting View Item
DocumentTypeDescription _APProcessFlowDocTypeText DocumentTypeDescription
DocumentReferenceID Reference
PurchasingGroup Purchasing Group
PurchasingOrganization Purchasing Organization
PurchaseOrderType PO Type
Plant Valuation Area
StorageLocation StorageLocation
GoodsMovementType Movement Type
CustomerBasicAuthorizationGrp AuthorizGroup
SupplierBasicAuthorizationGrp AuthorizGroup
BPPersonAuthorizationGroup AuthorizGroup
IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
FinancialAccountType Fin. Account Type
BusinessArea Business Area
FunctionalArea Sendr Fctl Area
Segment Segment number
IssuingOrReceivingPlant Transfer Plant
IsIssgOrRcvgStorLocAuthChkActv
IssuingOrReceivingStorageLoc Receiving SLoc.
Customer Sold-to Party
StockOwner Owner of stock
IsStorLocAuthznCheckActive
AuthorizationGroup AuthorizGroup
EarmarkedFundsDocumentCategory Document Category
EarmarkedFundsDocumentType Document Type
KEY Documentid I_OperationalAcctgDocItem AccountingDocument Earmarked Funds
KEY DocumentType
KEY FiscalYear G/L Fiscal Year
KEY CompanyCode I_OperationalAcctgDocItem CompanyCode Receiver Company Code
KEY Ledger Ledger
KEY Supplier Supplier
KEY ParentProcessFlowNodeDocItem I_OperationalAcctgDocItem AccountingDocumentItem Posting View Item
DocumentTypeDescription _APProcessFlowDocTypeText DocumentTypeDescription
DocumentReferenceID Reference
PurchasingGroup Purchasing Group
PurchasingOrganization Purchasing Organization
PurchaseOrderType PO Type
Plant Valuation Area
StorageLocation StorageLocation
GoodsMovementType Movement Type
CustomerBasicAuthorizationGrp AuthorizGroup
SupplierBasicAuthorizationGrp AuthorizGroup
BPPersonAuthorizationGroup AuthorizGroup
IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
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
IssuingOrReceivingPlant Transfer Plant
IsIssgOrRcvgStorLocAuthChkActv
IssuingOrReceivingStorageLoc Receiving SLoc.
Customer Sold-to Party
StockOwner Owner of stock
IsStorLocAuthznCheckActive
AuthorizationGroup AuthorizGroup
EarmarkedFundsDocumentCategory Document Category
EarmarkedFundsDocumentType Document Type
KEY Documentid EarmarkedFundsDocument Earmarked Funds
KEY DocumentType
KEY FiscalYear G/L Fiscal Year
KEY CompanyCode CompanyCode Receiver Company Code
KEY Ledger Ledger
KEY Supplier Supplier
KEY ParentProcessFlowNodeDocItem Posting View Item
DocumentTypeDescription _APProcessFlowDocTypeText DocumentTypeDescription
DocumentReferenceID EarmarkedFundsDocReference Reference
PurchasingGroup Purchasing Group
PurchasingOrganization Purchasing Organization
PurchaseOrderType PO Type
Plant Valuation Area
StorageLocation StorageLocation
GoodsMovementType Movement Type
CustomerBasicAuthorizationGrp AuthorizGroup
SupplierBasicAuthorizationGrp AuthorizGroup
BPPersonAuthorizationGroup AuthorizGroup
IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
FinancialAccountType Fin. Account Type
BusinessArea Business Area
FunctionalArea Sendr Fctl Area
Segment Segment number
IssuingOrReceivingPlant Transfer Plant
IsIssgOrRcvgStorLocAuthChkActv
IssuingOrReceivingStorageLoc Receiving SLoc.
Customer Sold-to Party
StockOwner Owner of stock
IsStorLocAuthznCheckActive
AuthorizationGroup AuthorizGroup
EarmarkedFundsDocumentCategory EarmarkedFundsDocumentCategory Document Category
EarmarkedFundsDocumentType EarmarkedFundsDocumentType Document Type
CompanyCodeName _CompanyCode CompanyCodeName Company Name

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_APProcessFlowDocumentVH.
-- 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: IAPPROCFLOWDOC

CREATE VIEW I_APProcessFlowDocumentVH AS
SELECT
  cast( '' as fins_ledger_pers ) AS SourceLedger,
  cast (PurchaseOrder as farp_dispprocflow_belnr_d) AS Documentid,
  cast(_APProcessFlowDocTypeText.DocumentType as dokar) AS DocumentType,
  cast('' as fis_gjahr) AS FiscalYear,
  cast(CompanyCode as fis_bukrs) AS CompanyCode,
  cast ('' as fins_ledger) AS Ledger,
  cast ('' as elifn) AS Supplier,
  cast ('' as buzei) AS ParentProcessFlowNodeDocItem,
  _APProcessFlowDocTypeText.DocumentTypeDescription AS DocumentTypeDescription,
  cast('' as xblnr1) AS DocumentReferenceID,
  PurchasingGroup,
  PurchasingOrganization,
  PurchaseOrderType,
  cast ('' as werks_d) AS Plant,
  cast ('' as lgort_d) AS StorageLocation,
  cast ('' as bwart) AS GoodsMovementType,
  cast ('' as brgru) AS CustomerBasicAuthorizationGrp,
  cast ('' as brgru) AS SupplierBasicAuthorizationGrp,
  cast ('' as brgru) AS BPPersonAuthorizationGroup,
  cast ('' as eopblocked) AS IsEndOfPurposeBlocked,
  cast ('' as koart) AS FinancialAccountType,
  cast ('' as gsber) AS BusinessArea,
  cast ('' as fkber_long) AS FunctionalArea,
  cast ('' as fb_segment) AS Segment,
  cast ('' as werks_d) AS IssuingOrReceivingPlant,
  cast ('' as xblgo) AS IsIssgOrRcvgStorLocAuthChkActv,
  cast ('' as umlgo) AS IssuingOrReceivingStorageLoc,
  cast ('' as ekunn) AS Customer,
  cast ('' as nsdm_add_spcl_stock_supplier) AS StockOwner,
  cast ('' as xblgo) AS IsStorLocAuthznCheckActive,
  _Supplier.AuthorizationGroup AS AuthorizationGroup,
  cast('' as kbltyp) AS EarmarkedFundsDocumentCategory,
  cast('' as fmre_blart) AS EarmarkedFundsDocumentType,
  _CompanyCode.CompanyCodeName AS DocumentType3keySourceLedger,
  _CompanyCode.CompanyCodeName AS CompanyCodeName
FROM I_PurchaseOrder
INNER JOIN I_OperationalAcctgDocItem AS clrg ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_APProcessFlowDocTypeText AS _APProcessFlowDocTypeText ON _APProcessFlowDocTypeText.Language = $session.system_language AND _APProcessFlowDocTypeText.ProcessType = 'AP' AND _APProcessFlowDocTypeText.DocumentType = 'F'  -- association [0..1]
-- UNION with additional select branch(es): I_MaterialDocumentRecord, I_SupplierInvoice, I_JournalEntrySemanticKeyVH, I_OperationalAcctgDocItem, I_EarmarkedFundsDocument
;