SWW_SDDL_SWW_USRATT
Workflow: Work item custom values
SWW_SDDL_SWW_USRATT is a CDS View that provides data about "Workflow: Work item custom values" in SAP S/4HANA. It reads from 2 data sources (sww_usratt, swwwihead) and exposes 73 fields with key field wi_id.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| sww_usratt | sww_usratt | from |
| swwwihead | swwwihead | left_outer |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| timeZoneUpdate | tznzone |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | SWW_V_SWW_USRATT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Workflow: Work item custom values | view |
Fields (73)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | wi_id | sww_usratt | wi_id | WorkItem ID |
| clientNULLaslastChangedDateZonlo | ||||
| clientNULLaslastChangedTimeZonlo | ||||
| last_change | sww_usratt | last_change | Time Stamp | |
| scenario | sww_usratt | scenario | VAT Scenario | |
| tab_index | sww_usratt | tab_index | Table Row | |
| type | sww_usratt | type | Worklist Type | |
| value_c | sww_usratt | value_c | ||
| value_i | sww_usratt | value_i | ||
| value_d | sww_usratt | value_d | ||
| unit | sww_usratt | unit | UoM | |
| top_task | sww_usratt | top_task | Top Task | |
| pfe_index | sww_usratt | pfe_index | ||
| def_task | sww_usratt | def_task | Task | |
| def_nodeid | sww_usratt | def_nodeid | Workflow Step | |
| clientNULLastaskCreatedDateZonlo | ||||
| clientNULLastaskCreatedTimeZonlo | ||||
| crea_tmp | swwwihead | crea_tmp | Created On | |
| clientNULLastaskCompletedDateZonlo | ||||
| clientNULLastaskCompletedTimeZonlo | ||||
| wi_type | swwwihead | wi_type | Type | |
| wi_text | swwwihead | wi_text | Work item text | |
| wi_stat | swwwihead | wi_stat | Status | |
| wi_cruser | swwwihead | wi_cruser | Creator | |
| wi_rh_task | swwwihead | wi_rh_task | Task | |
| wi_prio | swwwihead | wi_prio | Priority | |
| wi_release | swwwihead | wi_release | Work Instruction Version Release | |
| wf_type | swwwihead | wf_type | Workflow Type | |
| top_wi_id | swwwihead | top_wi_id | Top Level Workflow | |
| prs_profil | swwwihead | prs_profil | Persistence Profile | |
| wi_chckwi | swwwihead | wi_chckwi | Workflow | |
| wi_creator | swwwihead | wi_creator | Creator | |
| wi_lang | swwwihead | wi_lang | Language | |
| wi_aagent | swwwihead | wi_aagent | Agent | |
| wi_aaddr | swwwihead | wi_aaddr | Address | |
| wi_cbfb | swwwihead | wi_cbfb | Callback Funct. Mod. | |
| wi_confirm | swwwihead | wi_confirm | Confirm | |
| wi_comp_ev | swwwihead | wi_comp_ev | Completion by event | |
| wi_forw_by | swwwihead | wi_forw_by | Forwarder | |
| wi_disable | swwwihead | wi_disable | Lock flag | |
| wi_reject | swwwihead | wi_reject | Rejectable | |
| tclass | swwwihead | tclass | Classification | |
| note_exist | swwwihead | note_exist | Attachments | |
| notify | swwwihead | notify | Notification | |
| retry_cnt | swwwihead | retry_cnt | Repeat counter | |
| max_retry | swwwihead | max_retry | Repeat counter | |
| rc_modeled | swwwihead | rc_modeled | RC modeled | |
| cb_done | swwwihead | cb_done | Callback flag | |
| handle | swwwihead | handle | TS handle | |
| syncchain | swwwihead | syncchain | Synch. chain | |
| no_deadl | swwwihead | no_deadl | Deadlines | |
| wi_dh_stat | swwwihead | wi_dh_stat | Deadline Status | |
| wlc_displ | swwwihead | wlc_displ | Modeled display | |
| wi_restlog | swwwihead | wi_restlog | Minimize Number of Entries in Workflow Log | |
| remote_id | swwwihead | remote_id | Work Item ID | |
| remote_sys | swwwihead | remote_sys | Logical system | |
| status_evt | swwwihead | status_evt | Status event | |
| wlc_flags | swwwihead | wlc_flags | Attributes | |
| xmlprot | swwwihead | xmlprot | Transfer format | |
| wait4cb | swwwihead | wait4cb | Wait for feedback | |
| def_guid | swwwihead | def_guid | Unique ID | |
| exec_time | swwwihead | exec_time | Time | |
| note_count | swwwihead | note_count | Attachments | |
| check_stat | swwwihead | check_stat | After Condition | |
| blocktype | swwwihead | blocktype | Block Type | |
| parent_wi | swwwihead | parent_wi | Parent Work Item | |
| wfd_id | swwwihead | wfd_id | Workflow definition | |
| wfd_version | swwwihead | wfd_version | Version | |
| wfd_exetyp | swwwihead | wfd_exetyp | Type | |
| proccat | swwwihead | proccat | Process Category | |
| aging_state | swwwihead | aging_state | Data Aging Version | |
| step_id | swwwihead | step_id | WF Step ID | |
| wi_text_id | swwwihead | wi_text_id | Work Item Text ID |
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 SWW_SDDL_SWW_USRATT.
-- 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: SWW_V_SWW_USRATT
-- Parameters: timeZoneUpdate : tznzone
CREATE VIEW SWW_SDDL_SWW_USRATT AS
SELECT
sww_usratt.wi_id AS wi_id,
tstmp_to_dats( sww_usratt.last_change, $parameters.timeZoneUpdate, $session.client, 'NULL' ) as lastChangedDateZonlo AS clientNULLaslastChangedDateZonlo,
tstmp_to_tims( sww_usratt.last_change, $parameters.timeZoneUpdate, $session.client, 'NULL' ) as lastChangedTimeZonlo AS clientNULLaslastChangedTimeZonlo,
sww_usratt.last_change AS last_change,
sww_usratt.scenario AS scenario,
sww_usratt.tab_index AS tab_index,
sww_usratt.type AS type,
sww_usratt.value_c AS value_c,
sww_usratt.value_i AS value_i,
sww_usratt.value_d AS value_d,
sww_usratt.unit AS unit,
sww_usratt.top_task AS top_task,
sww_usratt.pfe_index AS pfe_index,
sww_usratt.def_task AS def_task,
sww_usratt.def_nodeid AS def_nodeid,
tstmp_to_dats( swwwihead.crea_tmp, $parameters.timeZoneUpdate, $session.client, 'NULL' ) as taskCreatedDateZonlo AS clientNULLastaskCreatedDateZonlo,
tstmp_to_tims( swwwihead.crea_tmp, $parameters.timeZoneUpdate, $session.client, 'NULL' ) as taskCreatedTimeZonlo AS clientNULLastaskCreatedTimeZonlo,
swwwihead.crea_tmp AS crea_tmp,
tstmp_to_dats( swwwihead.wi_aed_timestamp, $parameters.timeZoneUpdate, $session.client, 'NULL' ) as taskCompletedDateZonlo AS clientNULLastaskCompletedDateZonlo,
tstmp_to_tims( swwwihead.wi_aed_timestamp, $parameters.timeZoneUpdate, $session.client, 'NULL' ) as taskCompletedTimeZonlo AS clientNULLastaskCompletedTimeZonlo,
swwwihead.wi_type AS wi_type,
swwwihead.wi_text AS wi_text,
swwwihead.wi_stat AS wi_stat,
swwwihead.wi_cruser AS wi_cruser,
swwwihead.wi_rh_task AS wi_rh_task,
swwwihead.wi_prio AS wi_prio,
swwwihead.wi_release AS wi_release,
swwwihead.wf_type AS wf_type,
swwwihead.top_wi_id AS top_wi_id,
swwwihead.prs_profil AS prs_profil,
swwwihead.wi_chckwi AS wi_chckwi,
swwwihead.wi_creator AS wi_creator,
swwwihead.wi_lang AS wi_lang,
swwwihead.wi_aagent AS wi_aagent,
swwwihead.wi_aaddr AS wi_aaddr,
swwwihead.wi_cbfb AS wi_cbfb,
swwwihead.wi_confirm AS wi_confirm,
swwwihead.wi_comp_ev AS wi_comp_ev,
swwwihead.wi_forw_by AS wi_forw_by,
swwwihead.wi_disable AS wi_disable,
swwwihead.wi_reject AS wi_reject,
swwwihead.tclass AS tclass,
swwwihead.note_exist AS note_exist,
swwwihead.notify AS notify,
swwwihead.retry_cnt AS retry_cnt,
swwwihead.max_retry AS max_retry,
swwwihead.rc_modeled AS rc_modeled,
swwwihead.cb_done AS cb_done,
swwwihead.handle AS handle,
swwwihead.syncchain AS syncchain,
swwwihead.no_deadl AS no_deadl,
swwwihead.wi_dh_stat AS wi_dh_stat,
swwwihead.wlc_displ AS wlc_displ,
swwwihead.wi_restlog AS wi_restlog,
swwwihead.remote_id AS remote_id,
swwwihead.remote_sys AS remote_sys,
swwwihead.status_evt AS status_evt,
swwwihead.wlc_flags AS wlc_flags,
swwwihead.xmlprot AS xmlprot,
swwwihead.wait4cb AS wait4cb,
swwwihead.def_guid AS def_guid,
swwwihead.exec_time AS exec_time,
swwwihead.note_count AS note_count,
swwwihead.check_stat AS check_stat,
swwwihead.blocktype AS blocktype,
swwwihead.parent_wi AS parent_wi,
swwwihead.wfd_id AS wfd_id,
swwwihead.wfd_version AS wfd_version,
swwwihead.wfd_exetyp AS wfd_exetyp,
swwwihead.proccat AS proccat,
swwwihead.aging_state AS aging_state,
swwwihead.step_id AS step_id,
swwwihead.wi_text_id AS wi_text_id
FROM sww_usratt
LEFT OUTER JOIN swwwihead 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