SWF_CPWF_MON_MAIN
Cloud Platform Workflow Instances
SWF_CPWF_MON_MAIN is a CDS View that provides data about "Cloud Platform Workflow Instances" in SAP S/4HANA. It reads from 2 data sources (swf_cpwf_error, swf_cpwf_inst) and exposes 19 fields with key field CpWorkflowHandle. Part of development package SWF_CPWF_MON.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| swf_cpwf_error | cpwf_error | left_outer |
| swf_cpwf_inst | cpwf_inst | from |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SWFCPWFMONMAIN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Cloud Platform Workflow Instances | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CpWorkflowHandle | swf_cpwf_inst | cp_wf_handle | WF Handle ID |
| CpWorkflowDefId | swf_cpwf_inst | cp_wf_def_id | Ext Workflow ID | |
| CpWorkflowId | swf_cpwf_inst | cp_wf_id | CPWF Instance ID | |
| ConsumerType | swf_cpwf_inst | consumer | Consumer Type | |
| Status | swf_cpwf_inst | status | Workflow Status | |
| Outcome | swf_cpwf_inst | outcome | Action Outcome | |
| Operation | swf_cpwf_inst | operation | Transaction | |
| RetryCounter | swf_cpwf_inst | retry_counter | Retry Counter | |
| BgRfcUnitId | swf_cpwf_inst | bgrfc_unit_id | Unit ID | |
| RetentionTime | swf_cpwf_inst | retention_time | Retention Time | |
| CreatedBy | swf_cpwf_inst | created_by | Version Created By | |
| CreatedOn | swf_cpwf_inst | crea_on | Created on | |
| LastChangedBy | swf_cpwf_inst | last_changed_by | Username | |
| LastChangedOn | swf_cpwf_inst | last_chng_on | Changed on | |
| CallbackClass | swf_cpwf_inst | callback_class | Callback Class | |
| ContextData | swf_cpwf_inst | context | Context Data | |
| CpWorkflowLog | swf_cpwf_inst | cp_wf_log | Workflow Log | |
| ErrorFlavor | swf_cpwf_error | error_flavor | Error Flavor | |
| ErrorMessage | swf_cpwf_error | message | Error Message |
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 SWF_CPWF_MON_MAIN.
-- 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: SWFCPWFMONMAIN
CREATE VIEW SWF_CPWF_MON_MAIN AS
SELECT
cpwf_inst.cp_wf_handle AS CpWorkflowHandle,
cpwf_inst.cp_wf_def_id AS CpWorkflowDefId,
cpwf_inst.cp_wf_id AS CpWorkflowId,
cpwf_inst.consumer AS ConsumerType,
cpwf_inst.status AS Status,
cpwf_inst.outcome AS Outcome,
cpwf_inst.operation AS Operation,
cpwf_inst.retry_counter AS RetryCounter,
cpwf_inst.bgrfc_unit_id AS BgRfcUnitId,
cpwf_inst.retention_time AS RetentionTime,
cpwf_inst.created_by AS CreatedBy,
cpwf_inst.crea_on AS CreatedOn,
cpwf_inst.last_changed_by AS LastChangedBy,
cpwf_inst.last_chng_on AS LastChangedOn,
cpwf_inst.callback_class AS CallbackClass,
cpwf_inst.context AS ContextData,
cpwf_inst.cp_wf_log AS CpWorkflowLog,
cpwf_error.error_flavor AS ErrorFlavor,
cpwf_error.message AS ErrorMessage
FROM swf_cpwf_inst AS cpwf_inst
LEFT OUTER JOIN swf_cpwf_error AS cpwf_error ON /* join condition not captured in parsed metadata */
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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