P_DwnPaytReqProcessor
VSDPR Current Processor
P_DwnPaytReqProcessor is a Composite CDS View that provides data about "VSDPR Current Processor" in SAP S/4HANA. It reads from 2 data sources (I_WorkflowTaskOrglObject, I_WorkflowTask) and exposes 7 fields with key field WorkflowTaskInternalID. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_WorkflowTaskOrglObject | _PendingTask | union |
| I_WorkflowTask | I_WorkflowTask | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_WorkflowTask | _Task | _PendingTask.WorkflowTaskInternalID = _Task.WorkflowTaskInternalID |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | VSDPR Current Processor | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkflowTaskInternalID | WorkflowTaskInternalID | ||
| TopLevelWorkflowTask | TopLevelWorkflowTask | |||
| IsApproved | ||||
| TopLevelWorkflowTask | _Task | TopLevelWorkflowTask | ||
| WorkflowTaskCurrentUser | WorkflowOrglObject | |||
| IsApproved | ||||
| WorkflowTaskResult |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'VSDPR Current Processor'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
@VDM.private:true
@VDM.viewType: #COMPOSITE
// Processor Logic: Completed or cancelled
// task of TS78500119 is required for Manually approved with status complated and cancelled
// task of TS78500120 is required for auto-approved with status completed
// Processor Logic: like Submit
// Processor of Manually approved is retrieved from I_WorkflowTaskOrglObject
define view entity P_DwnPaytReqProcessor as select from I_WorkflowTask {
key WorkflowTaskInternalID,
TopLevelWorkflowTask,
case WorkflowTaskStatus
when 'COMPLETED'
then WorkflowTaskCurrentUser
when 'CANCELLED'
then WorkflowTaskCreatedByUser
else ''
end as WorkflowTaskCurrentUser,
cast('X' as xfeld) as IsApproved,
WorkflowTaskResult
}where ( WorkflowTaskDefinition = 'TS78500119' or WorkflowTaskDefinition = 'TS78500120' )
and ( WorkflowTaskStatus = 'COMPLETED' or WorkflowTaskStatus = 'CANCELLED' )
union select from I_WorkflowTaskOrglObject as _PendingTask
association [1..1] to I_WorkflowTask as _Task
on _PendingTask.WorkflowTaskInternalID = _Task.WorkflowTaskInternalID
{
key WorkflowTaskInternalID,
_Task.TopLevelWorkflowTask,
WorkflowOrglObject as WorkflowTaskCurrentUser,
cast('' as xfeld) as IsApproved,
cast('' as xfeld) as WorkflowTaskResult
}where WorkflowTaskDefinition = 'TS78500119'
and WorkflowTaskIsVisibleInInbox is initial //not relevant should be false. such as case of forward, the vlaue is true
Learn More
- 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 Annotations — A Complete Guide
- 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