SWD_AHEAD SAP (Header Data for Workflow Definition) Structure details
Description: Header Data for Workflow Definition
Structure field list including key, data, relationships and ABAP select examples
SWD_AHEAD is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Header Data for Workflow Definition" Information within sap ABAP programs.
This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.
i.e. DATA: wa_SWD_AHEAD TYPE SWD_AHEAD.
The SWD_AHEAD table consists of various fields, each holding specific information or linking keys about Header Data for Workflow Definition data available in SAP. These include WFD_ID (Number of workflow definition), VERSION (Version), EXETYP (Workflow Type), OBJID (Multistep task number).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .
Delivery Class:Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced
SAP SWD_AHEAD structure fields - Full list of fields found in SAP data dictionary
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP |
WFD_ID | Number of workflow definition | SWD_WFD_ID | CHAR | 10 | Assigned to domain | SWD_WFDIDS | |||
VERSION | Version | SWD_VERSIO | CHAR | 4 | SWD_VERSIO | ||||
EXETYP | Workflow Type | SWD_EXETYP | CHAR | 1 | SWD_EXETYP | ||||
OBJID | Multistep task number | SWD_OBJID | NUMC | 8 | NUM08 | ||||
SHORT | Task Abbreviation | SWD_OBJNAM | CHAR | 12 | TEXT12 | ||||
STEXT | Task description | SWD_OBJTXT | CHAR | 40 | TEXT40 | ||||
SUSPEND_E | Indicator: Workflow Definition Locked Against Execution | SWD_SUSP_E | CHAR | 1 | XFELD | ||||
SUSPEND_I | Indicator: Locked Against Instantiation | SWD_SUSP_I | CHAR | 1 | XFELD | ||||
ACTIV | Runtime Structure for Workflow Definition Exists | SWD_RUNFLG | CHAR | 1 | XFELD | ||||
LANGUAGE | Maintenance Language of Workflow Definition | SWD_MLANGU | LANG | 1 | Assigned to domain | ISOLA | SPRAS | ||
TASK | Task abbreviation | SWD_STEP_T | CHAR | 14 | HROBJEC_14 | ||||
TASK_STEXT | Short text for task | SWD_TASK_T | CHAR | 40 | TEXT40 | ||||
LONGTEXT | Workflow definition: Long text ID | SWD_LNGTXT | CHAR | 1 | XFELD | ||||
CREATED_BY | Creator of Workflow Definition | SWD_DEFUSR | CHAR | 12 | Assigned to domain | XUBNAME | |||
CREATED_ON | Creation Date of Workflow Definition | SWD_DEFDAT | DATS | 8 | DATS | ||||
CREATED_AT | Creation Time of Workflow Definition | SWD_DEFTIM | TIMS | 6 | TIMES | ||||
CREATED_RL | Release when workflow definition created | SWD_DEFREL | CHAR | 4 | CHAR4 | ||||
CHANGED_BY | Last user to change workflow definition | SWD_CHGUSR | CHAR | 12 | Assigned to domain | XUBNAME | |||
CHANGED_ON | Date of last change to workflow definition | SWD_CHGDAT | DATS | 8 | DATS | ||||
CHANGED_AT | Time of last change to workflow definition | SWD_CHGTIM | TIMS | 6 | TIMES | ||||
CHANGED_RL | Release of last change to workflow definition | SWD_CHGREL | CHAR | 4 | CHAR4 | ||||
ACTIVAT_BY | Last user to activate workflow definition | SWD_ACTUSR | CHAR | 12 | Assigned to domain | XUBNAME | |||
ACTIVAT_ON | Date workflow definition last activated | SWD_ACTDAT | DATS | 8 | SYDATS | ||||
ACTIVAT_AT | Time workflow definition last activated | SWD_ACTTIM | TIMS | 6 | SYTIME | ||||
ACTIVAT_RL | Activation Release | SWD_ACTREL | CHAR | 4 | CHAR4 | ||||
DEAD_EXPR | Notification Agent for Deadline Monitoring | SWD_DEEXPR | CHAR | 255 | SWD_VALUE | ||||
NOTI_EXPR | Expression for Notification Agent for Completion | SWD_NOEXPR | CHAR | 255 | SWD_VALUE | ||||
ADMI_EXPR | Expression for Agent of Activity | SWD_AGEXPR | CHAR | 255 | SWD_VALUE | ||||
DES_ST_B | Reference date/time for requested start | SWD_DST_B | CHAR | 3 | SWD_TIME_B | ||||
DES_ST_U | Time Unit | SWD_MEINS | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
DES_ST_UT | Text for time unit (max.10-char.) | SWD_MSEHT | CHAR | 10 | TEXT10 | ||||
DES_ST_O | Offset between reference time and missed deadline | SWD_DST_O | INT4 | 10 | SWD_TIME_O | ||||
DES_END_B | Reference date/time for requested end | SWD_DE_B | CHAR | 3 | SWD_TIME_B | ||||
DES_END_U | Time Unit | SWD_MEINS | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
DES_END_UT | Text for time unit (max.10-char.) | SWD_MSEHT | CHAR | 10 | TEXT10 | ||||
DES_END_O | Offset between reference time and missed deadline | SWD_DE_O | INT4 | 10 | SWD_TIME_O | ||||
LATE_END_B | Reference Date/Time for Latest End | SWD_LE_B | CHAR | 3 | SWD_TIME_B | ||||
LATE_END_U | Time Unit | SWD_MEINS | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
LATE_EN_UT | Text for time unit (max.10-char.) | SWD_MSEHT | CHAR | 10 | TEXT10 | ||||
LATE_END_O | Offset between reference time and missed deadline | SWD_LE_O | INT4 | 10 | SWD_TIME_O | ||||
REFER_DATE | Reference date for calculating deadlines | SWD_REFDAT | CHAR | 255 | SWD_VALUE | ||||
REFER_TIME | Reference time for deadline calculation | SWD_REFTIM | CHAR | 255 | SWD_VALUE | ||||
DIAL_FLAG | Indicator: NO advancing with dialog | SWD_DIALOG | CHAR | 1 | XFELD | ||||
DES_ST_EXP | Expression for requested start (time) | SWD_DSTTEX | CHAR | 255 | SWD_VALUE | ||||
DES_SD_EXP | Expression for requested start (date) | SWD_DSTDEX | CHAR | 255 | SWD_VALUE | ||||
DES_ET_EXP | Expression for requested end (time) | SWD_DENTEX | CHAR | 255 | SWD_VALUE | ||||
DES_ED_EXP | Expression for requested end (date) | SWD_DENDEX | CHAR | 255 | SWD_VALUE | ||||
LAT_ET_EXP | Expression for Latest End | SWD_LENTEX | CHAR | 255 | SWD_VALUE | ||||
LAT_ED_EXP | Expression for latest end (date) | SWD_LENDEX | CHAR | 255 | SWD_VALUE | ||||
MAX_NODES | Max. node number in workflow (termination condition) | SWP_NCOUNT | INT4 | 10 | SWP_NCOUNT | ||||
MAX_SUBWF | Maximum subworkflow level (termination criterion) | SWP_MAXSUB | INT4 | 10 | SWP_MAXSUB | ||||
NO_LOG | Minimize Number of Entries in Workflow Log | SWD_NOLOG | CHAR | 1 | SWD_NOLOG | ||||
RFCDEST | WF: Logical Destination | SWD_RFCDST | CHAR | 32 | Assigned to domain | RFCDEST | |||
ORIG_VERS | Version | SWD_VERSIO | CHAR | 4 | SWD_VERSIO | ||||
TRANSIENT | Workflow definition executed transiently | SWD_TRANSI | CHAR | 1 | XFELD | ||||
WFTYPE | Type of Workflow Definition: Standard, Checklist, Ad Hoc, .. | SWD_WFTYPE | NUMC | 4 | SWD_DWFTYP | ||||
REVIEW_WF | ID of Review Workflow | SWD_REVWWF | CHAR | 14 | HROBJEC_14 | ||||
FB_WF_CREA | Function Module That Is Executed When Workflow Is Started | SWD_FBWCRE | CHAR | 30 | Assigned to domain | FUNCNAME | |||
CL_WF_CREA | Class That Is Executed When the Workflow Is Started | SWD_CLWCRE | CHAR | 30 | SEOCLSNAME | ||||
APPL | CATT: Application | CATAPPL | CHAR | 2 | CATAPPL | APC | |||
SAPPL | CATT: Sub-application | CATSUBAP | CHAR | 3 | CATSUBAP | SUC | |||
THST1 | CATT: Component | CATTHST1 | CHAR | 3 | CATTHST1 | KMP | |||
PRIND | Index of application-specific Workflow Builder | SWD_PRIND | NUMC | 4 | NUMC4 | ||||
PRS_PROFIL | Type of Persistence Profile | SWD_PERSID | NUMC | 4 | SWD_PERSID | ||||
ENQUEQUE | Lock Behavior of Workflow Runtime System | SWD_ENQUQU | CHAR | 2 | SWD_ENQUQU | ||||
AUTH_EXPR | WebFlow Rule for Authentication | SWD_WEBAUT | CHAR | 255 | SWD_VALUE | ||||
CL_WF_DEST | Class That Is Executed When the Workflow Is Completed | SWD_CLWDES | CHAR | 30 | SEOCLSNAME | ||||
INTFACE_WF | Interface Workflow | SWD_INTFAC | CHAR | 14 | HROBJEC_14 | ||||
XMLPROT | Transfer Format Used In Web Activity | SWD_XMLPRT | NUMC | 2 | Assigned to domain | SWD_XMLPRT | |||
XMLGRP | Log Group | SWD_XMLGRP | CHAR | 4 | SWD_XMLGRP | ||||
XMLROUTCLS | Class for Routing | SWD_ROUCLS | CHAR | 30 | SEOCLSNAME | ||||
PROXY_EXPR | Container Element for Workflow Proxy | SWD_PRYEXP | CHAR | 255 | SWD_VALUE | ||||
ROLL_SELECTION | Number of Possible Role Settings | SWP_ROLL_SELECTION | NUMC | 1 | SWP_ROLL_SELECTION | ||||
ROLL_INTERVAL | Time Interval for WP Roll-Out/-In | SWP_ROLL_INTERVAL | NUMC | 6 | SWP_ROLL_INTERVAL | ||||
ROLL_FORK_COUNT | Number of Parallel Branches for WP Roll-Out/-In | SWP_ROLL_FORK_COUNT | NUMC | 6 | SWP_ROLL_FORK_COUNT |
Key field | Non-key field |
How do I retrieve data from SAP structure SWD_AHEAD using ABAP code?
As SWD_AHEAD is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on SWD_AHEAD as there is no data to select.How to access SAP table SWD_AHEAD
Within an ECC or HANA version of SAP you can also view further information about SWD_AHEAD and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects