I_DocSingleWorkflowInfo
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)
| Source | Alias | Join Type |
|---|---|---|
| I_DocWorkflowInfo | _DocWorkflowInfo | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | |||
| WorkflowendasWorkflow | ||||
| 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,
case AccountingDocumentStatus when 'P' then _WorkflowToObject.WorkflowTaskInternalID else _DocWorkflowInfo.Workflow end as Workflow AS WorkflowendasWorkflow,
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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA