I_DocSingleWorkflowInfo

DDL: I_DOCSINGLEWORKFLOWINFO SQL: IDOCSINGLEWFINFO Type: view COMPOSITE

one document to single workflow

I_DocSingleWorkflowInfo is a Composite CDS View that provides data about "one document to single workflow" in SAP S/4HANA. It reads from 1 data source (I_DocWorkflowInfo) and exposes 33 fields with key fields CompanyCode, AccountingDocument, FiscalYear. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_DocWorkflowInfo _DocWorkflowInfo from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_WorkflowToObject _WorkflowToObject $projection.ObjectKey = _WorkflowToObject.ObjectKey
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_FiscalYearForCompanyCode _FiscalYear $projection.FiscalYear = _FiscalYear.FiscalYear and $projection.CompanyCode = _FiscalYear.CompanyCode

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName IDOCSINGLEWFINFO view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey AccountingDocument view
VDM.viewType #COMPOSITE view
EndUserText.label one document to single workflow view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
AccountingDocumentType AccountingDocumentType Journal Entry Type
ReferenceDocument ReferenceDocument Reference Document
DocumentDate DocumentDate Journal Entry Date
FiscalPeriod FiscalPeriod Tax period
LastChangeDate LastChangeDate Time Stamp
LedgerGroup LedgerGroup Ledger Group
HeaderDescription HeaderDescription
PostingDate PostingDate Posting Date for GR
CreationDateTime CreationDateTime Timestamp
AccountingDocumentCreationDate AccountingDocumentCreationDate Journal Entry Date
ObjectKey I_DocWorkflowInfo ObjectKey Object Key
TransactionCode TransactionCode Transaction Code
ParkingTransactionCode ParkingTransactionCode
Currency Currency Valuation Crcy
CompanyCodeCurrency CompanyCodeCurrency Local Currency
GlobalCurrency GlobalCurrency GM Billing Element: Global Currency
FreeDefinedCurrency1 FreeDefinedCurrency1 Freely Defined Currency 1
AccountingDocumentCategory AccountingDocumentCategory Journal Entry Category
AccountingDocumentStatus AccountingDocumentStatus
Workflow
TaskProcessingStatus TaskProcessingStatus
ParkedByUserendasParkedByUser
CreatedByUserendasCreatedByUser
Batch I_DocWorkflowInfo Batch Lot No.
IntercompanyTransaction
ReversalReason ReversalReason Reversal Reason
PlannedReversalDate PlannedReversalDate Reversal Date
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_WorkflowToObject _WorkflowToObject

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_DocSingleWorkflowInfo.
-- 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: IDOCSINGLEWFINFO

CREATE VIEW I_DocSingleWorkflowInfo AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  AccountingDocumentType,
  ReferenceDocument,
  DocumentDate,
  FiscalPeriod,
  LastChangeDate,
  LedgerGroup,
  HeaderDescription,
  PostingDate,
  CreationDateTime,
  AccountingDocumentCreationDate,
  _DocWorkflowInfo.ObjectKey AS ObjectKey,
  TransactionCode,
  ParkingTransactionCode,
  Currency,
  CompanyCodeCurrency,
  GlobalCurrency,
  FreeDefinedCurrency1,
  AccountingDocumentCategory,
  AccountingDocumentStatus,
  cast ( _DocWorkflowInfo.Workflow as sww_wiid ) AS Workflow,
  TaskProcessingStatus,
  case AccountingDocumentCategory when 'V' then _DocWorkflowInfo.CreatedByUser when 'Z' then _DocWorkflowInfo.ParkedByUser else _DocWorkflowInfo.ParkedByUser end as ParkedByUser AS ParkedByUserendasParkedByUser,
  case AccountingDocumentCategory when 'V' then '' when 'Z' then ' ' else _DocWorkflowInfo.CreatedByUser end as CreatedByUser AS CreatedByUserendasCreatedByUser,
  _DocWorkflowInfo.Batch AS Batch,
  cast(_DocWorkflowInfo.IntercompanyTransaction as fac_inter_trans) AS IntercompanyTransaction,
  ReversalReason,
  PlannedReversalDate
FROM I_DocWorkflowInfo AS _DocWorkflowInfo
LEFT OUTER JOIN I_WorkflowToObject AS _WorkflowToObject ON ObjectKey = _WorkflowToObject.ObjectKey  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_FiscalYearForCompanyCode AS _FiscalYear ON FiscalYear = _FiscalYear.FiscalYear AND CompanyCode = _FiscalYear.CompanyCode  -- association [0..1]
;