P_WorkflowToObject
Workflow to Object Private
P_WorkflowToObject is a Basic CDS View that provides data about "Workflow to Object Private" in SAP S/4HANA. It reads from 2 data sources (swwwihead, sww_wi2obj) and exposes 3 fields with key field WorkItem. Part of development package ODATA_GL_JOURNALENTRY_VER.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| swwwihead | _head | inner |
| sww_wi2obj | _wi2obj | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PWFTOOBJECT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | WorkItem | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkItem | sww_wi2obj | wi_id | |
| ObjectKey | sww_wi2obj | instid | ||
| ReleaseDateTime | sww_wi2obj | crea_tmp |
@AbapCatalog.sqlViewName: 'PWFTOOBJECT'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #MIXED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'WorkItem'
@VDM.private: true
@VDM.viewType: #BASIC
define view P_WorkflowToObject
as select from sww_wi2obj as _wi2obj
inner join swwwihead as _head on _wi2obj.top_wi_id = _head.top_wi_id
{
key _wi2obj.wi_id as WorkItem,
// key _WorkflowLatestTask.WorkItem,
// substring(instid,1,10) as AccountingDocument,
// substring(instid,11,4) as CompanyCode,
// substring(instid,15,4) as FiscalYear,
_wi2obj.instid as ObjectKey,
_wi2obj.crea_tmp as ReleaseDateTime
}
where
// add by I337033 2020-09-20
// include currency adjustment workflow
_wi2obj.wi_id = _wi2obj.top_wi_id
// add by I337033 2020-09-20
// include currency adjustment workflow
and _head.wi_rh_task <> 'TS00008267'
and(
_head.wfd_id = 'WS02800046'
or _head.wfd_id = 'WS78500019'
)
and _head.step_id = 'Post'
and _head.wi_type = 'B' -- Work Item for Background Step
and _head.wi_stat = 'COMPLETED'
and _wi2obj.wi_reltype = '01'
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