P_WORKFLOWTOOBJECT
P_WORKFLOWTOOBJECT is a CDS View in S/4HANA. 1 CDS views read from this table.
CDS Views using this table (1)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| I_WorkflowToObject | view | from | BASIC | workflow to object |
@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'
or ( _head.wfd_id = '' and _head.wi_rh_task = 'TS02800036' ) // note 3399634 - documents approved in older releases are not displayed
)
and _head.step_id = 'Post'
and _head.wi_type = 'B' -- Work Item for Background Step
and _head.wi_stat = 'COMPLETED'