C_APProcessFlowJournalEntryItm

DDL: C_APPROCESSFLOWJOURNALENTRYITM SQL: CAPPROCFLOWACC Type: view CONSUMPTION Package: ODATA_PROCESS_FLOW_AP

Journal Entry Document Item details for AP process flow

C_APProcessFlowJournalEntryItm is a Consumption CDS View that provides data about "Journal Entry Document Item details for AP process flow" in SAP S/4HANA. It reads from 1 data source (P_ARProcessFlowJournalEntryDoc) and exposes 43 fields with key fields CompanyCode, FiscalYear, AccountingDocument. It has 3 associations to related views. It is exposed through 1 OData service (ASQL_F2691). Part of development package ODATA_PROCESS_FLOW_AP.

Data Sources (1)

SourceAliasJoin Type
P_ARProcessFlowJournalEntryDoc P_ARProcessFlowJournalEntryDoc from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_JournalEntry _JournalEntry $projection.CompanyCode = _JournalEntry.CompanyCode and $projection.FiscalYear = _JournalEntry.FiscalYear and $projection.AccountingDocument = _JournalEntry.AccountingDocument
[0..1] I_InternalOrder _InternalOrder $projection.OrderID = _InternalOrder.InternalOrder
[0..1] I_Order _Order $projection.OrderID = _Order.OrderID

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CAPPROCFLOWACC view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Journal Entry Document Item details for AP process flow view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
DataAging.noAgingRestriction false view
AbapCatalog.preserveKey true view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F2691 ASQL_F2691 C2 NOT_RELEASED

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
FinancialAccountType FinancialAccountType Fin. Account Type
DebitCreditCode DebitCreditCode Single-Character Flag
ReferenceDocumentType ReferenceDocumentType Reference Document Type
ReferenceDocument ReferenceDocument Reference Document
TransactionCurrency TransactionCurrency Transaction Currency
AmountInTransactionCurrency
ClearingDate ClearingDate Clearing Date
ClearingDocFiscalYear ClearingJournalEntryFiscalYear Fiscal Year of Clearing Journal Entry
ClearingAccountingDocument ClearingJournalEntry Clrng doc.
AccountingDocCreatedByUser AccountingDocCreatedByUser User which created overhead document
FullName _UserContactCard FullName Name
DocumentDate DocumentDate Journal Entry Date
FiscalPeriod FiscalPeriod Tax period
FiscalPeriodName FiscalPeriodName
Supplier Supplier Supplier
SupplierName _Supplier SupplierName Supplier Name
AccountingDocumentType AccountingDocumentType Journal Entry Type
AccountingDocumentTypeName AccountingDocumentTypeName
Ledger Ledger Ledger
IsLeadingLedger IsLeadingLedger
BusinessArea BusinessArea Business Area
FunctionalArea FunctionalArea Sendr Fctl Area
ProfitCenter ProfitCenter Profit Center
CostCenter CostCenter Cost Center
GLAccount GLAccount General Ledger
Segment Segment Segment number
ControllingArea ControllingArea Controlling Area
Plant Plant Valuation Area
PlantName _Plant PlantName Plant Name
ValuationArea ValuationArea Valuation Area
SalesOrder SalesOrder SD Document
OrderID OrderID Order ID
ServiceDocument ServiceDocument Transaction ID
ServiceDocumentType ServiceDocumentType Transaction Type
AccountingDocumentCategory _JournalEntry AccountingDocumentCategory Journal Entry Category
CompanyCodeName _CompanyCode CompanyCodeName Company Name
AuthorizationGroup _Supplier AuthorizationGroup AuthorizGroup
_SalesDoc _SalesDoc
_ServiceDocument _ServiceDocument
_ServiceDocumentType _ServiceDocumentType

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_APProcessFlowJournalEntryItm.
-- 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: CAPPROCFLOWACC

CREATE VIEW C_APProcessFlowJournalEntryItm AS
SELECT
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  FinancialAccountType,
  DebitCreditCode,
  ReferenceDocumentType,
  ReferenceDocument,
  TransactionCurrency,
  sum( AmountInTransactionCurrency) AS AmountInTransactionCurrency,
  ClearingDate,
  ClearingJournalEntryFiscalYear AS ClearingDocFiscalYear,
  ClearingJournalEntry AS ClearingAccountingDocument,
  AccountingDocCreatedByUser,
  _UserContactCard.FullName AS FullName,
  DocumentDate,
  FiscalPeriod,
  FiscalPeriodName,
  Supplier,
  _Supplier.SupplierName AS SupplierName,
  AccountingDocumentType,
  AccountingDocumentTypeName,
  Ledger,
  IsLeadingLedger,
  BusinessArea,
  FunctionalArea,
  ProfitCenter,
  CostCenter,
  GLAccount,
  Segment,
  ControllingArea,
  Plant,
  _Plant.PlantName AS PlantName,
  ValuationArea,
  SalesOrder,
  OrderID,
  ServiceDocument,
  ServiceDocumentType,
  _JournalEntry.AccountingDocumentCategory AS AccountingDocumentCategory,
  _CompanyCode.CompanyCodeName AS CompanyCodeName,
  _Supplier.AuthorizationGroup AS AuthorizationGroup
FROM P_ARProcessFlowJournalEntryDoc
LEFT OUTER JOIN I_JournalEntry AS _JournalEntry ON CompanyCode = _JournalEntry.CompanyCode AND FiscalYear = _JournalEntry.FiscalYear AND AccountingDocument = _JournalEntry.AccountingDocument  -- 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]
;