C_APProcessFlowSupplierInvoice

DDL: C_APPROCESSFLOWSUPPLIERINVOICE SQL: CAPPFLWSINV Type: view CONSUMPTION

AP Process Flow Supplier Invoice

C_APProcessFlowSupplierInvoice is a Consumption CDS View that provides data about "AP Process Flow Supplier Invoice" in SAP S/4HANA. It reads from 3 data sources (I_SupplierInvoice, I_APProcFlwRstrcdSuplrInvc, I_SuplrInvcItemLogsUnion) and exposes 59 fields with key fields SupplierInvoice, FiscalYear, SupplierInvoiceItem, FiscalYear, SupplierInvoiceItem. It has 1 association to related views.

Data Sources (3)

SourceAliasJoin Type
I_SupplierInvoice _SupplierInvoice union_all
I_APProcFlwRstrcdSuplrInvc _SupplierInvoice union_all
I_SuplrInvcItemLogsUnion I_SuplrInvcItemLogsUnion from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_UserContactCard _UserContactCard _UserContactCard.ContactCardID = $projection.CreatedByUser

Annotations (12)

NameValueLevelField
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName CAPPFLWSINV view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
DataAging.noAgingRestriction false view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label AP Process Flow Supplier Invoice view
AbapCatalog.preserveKey true view

Fields (59)

KeyFieldSource TableSource FieldDescription
KEY SupplierInvoice SupplierInvoice SD Document
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY SupplierInvoiceItem SupplierInvoiceItem
ProcessFlowNodeDocument SupplierInvoice SD Document
ProcessFlowNodeDocCategory
ProcessFlowNode
Supplier I_APProcFlwRstrcdSuplrInvc InvoicingParty Supplier
SupplierName Supplier Name
PostingDate I_APProcFlwRstrcdSuplrInvc PostingDate Posting Date for GR
DocumentDate I_APProcFlwRstrcdSuplrInvc DocumentDate Journal Entry Date
PaymentBlockingReason I_APProcFlwRstrcdSuplrInvc PaymentBlockingReason Pmnt block
SupplierInvoiceIDByInvcgParty I_APProcFlwRstrcdSuplrInvc SupplierInvoiceIDByInvcgParty Reference
DocumentCurrency I_APProcFlwRstrcdSuplrInvc DocumentCurrency Document Currency
CreatedByUser I_APProcFlwRstrcdSuplrInvc CreatedByUser User Name
SupplierInvoiceStatus I_APProcFlwRstrcdSuplrInvc SupplierInvoiceStatus Inv. status
FullName Name
CompanyCode I_APProcFlwRstrcdSuplrInvc CompanyCode Receiver Company Code
CompanyCodeName
IsEndOfPurposeBlocked I_APProcFlwRstrcdSuplrInvc IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
AuthorizationGroup AuthorizGroup
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY SupplierInvoiceItem
ProcessFlowNodeDocument SupplierInvoice SD Document
ProcessFlowNodeDocCategory
ProcessFlowNode
Supplier InvoicingParty Supplier
SupplierName _Supplier SupplierName Supplier Name
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
PaymentBlockingReason PaymentBlockingReason Pmnt block
SupplierInvoiceIDByInvcgParty SupplierInvoiceIDByInvcgParty Reference
DocumentCurrency DocumentCurrency Document Currency
CreatedByUser CreatedByUser User Name
SupplierInvoiceStatus SupplierInvoiceStatus Inv. status
FullName _UserContactCard FullName Name
CompanyCode CompanyCode Receiver Company Code
CompanyCodeName
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
AuthorizationGroup _Supplier AuthorizationGroup AuthorizGroup
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY SupplierInvoiceItem SupplierInvoiceItem
ProcessFlowNodeDocument SupplierInvoice SD Document
ProcessFlowNodeDocCategory
ProcessFlowNode
Supplier InvoicingParty Supplier
SupplierName _Supplier SupplierName Supplier Name
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
PaymentBlockingReason PaymentBlockingReason Pmnt block
SupplierInvoiceIDByInvcgParty SupplierInvoiceIDByInvcgParty Reference
DocumentCurrency DocumentCurrency Document Currency
CreatedByUser CreatedByUser User Name
SupplierInvoiceStatus SupplierInvoiceStatus Inv. status
FullName _UserContactCard FullName Name
CompanyCode CompanyCode Receiver Company Code
CompanyCodeName
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
AuthorizationGroup _Supplier AuthorizationGroup AuthorizGroup
Plant

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_APProcessFlowSupplierInvoice.
-- 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: CAPPFLWSINV

CREATE VIEW C_APProcessFlowSupplierInvoice AS
SELECT
  SupplierInvoice,
  FiscalYear,
  SupplierInvoiceItem,
  SupplierInvoice AS ProcessFlowNodeDocument,
  cast( '2' as vgabe ) AS ProcessFlowNodeDocCategory,
  concat(SupplierInvoice,concat('00000____',concat(FiscalYear,'1'))) AS ProcessFlowNode,
  _SupplierInvoice.InvoicingParty AS Supplier,
  _SupplierInvoice._Supplier.SupplierName AS SupplierName,
  _SupplierInvoice.PostingDate AS PostingDate,
  _SupplierInvoice.DocumentDate AS DocumentDate,
  _SupplierInvoice.PaymentBlockingReason AS PaymentBlockingReason,
  _SupplierInvoice.SupplierInvoiceIDByInvcgParty AS SupplierInvoiceIDByInvcgParty,
  _SupplierInvoice.DocumentCurrency AS DocumentCurrency,
  _SupplierInvoice.CreatedByUser AS CreatedByUser,
  _SupplierInvoice.SupplierInvoiceStatus AS SupplierInvoiceStatus,
  _SupplierInvoice._CreatedByUser.UserDescription AS FullName,
  _SupplierInvoice.CompanyCode AS CompanyCode,
  _SupplierInvoice._CompanyCode.CompanyCodeName AS CompanyCodeName,
  _SupplierInvoice.IsEndOfPurposeBlocked AS IsEndOfPurposeBlocked,
  _SupplierInvoice._Supplier.AuthorizationGroup AS AuthorizationGroup,
  '' AS Plant
FROM I_SuplrInvcItemLogsUnion
LEFT OUTER JOIN I_UserContactCard AS _UserContactCard ON _UserContactCard.ContactCardID = CreatedByUser  -- association [1..1]
-- UNION ALL with additional select branch(es): I_SupplierInvoice, I_APProcFlwRstrcdSuplrInvc
;