SAP SWL_SHOW_PROCESS_DATA Function Module for WLC: Anzeigen des Workflow-Protokolls (friends)
SWL_SHOW_PROCESS_DATA is a standard swl show process data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for WLC: Anzeigen des Workflow-Protokolls (friends) processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for swl show process data FM, simply by entering the name SWL_SHOW_PROCESS_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: SWL7
Program Name: SAPLSWL7
Main Program: SAPLSWL7
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SWL_SHOW_PROCESS_DATA pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'SWL_SHOW_PROCESS_DATA'"WLC: Anzeigen des Workflow-Protokolls (friends).
EXPORTING
WF_ID = "
* MULTI_MODE = ' ' "WLC: Control of interface during mass execution
* OLD_TECH_LOG = ' ' "View old tech log
* LANGUAGE = SY-LANGU "
* WITH_TECHDETAILS = ' ' "
* WITH_SUBFLOWS = 'X' "
* WITH_EXPANSION = 'X' "
* WITH_ERRORS = ' ' "
* NO_ACTIVEX_VERSION = ' ' "
* ARCHIVE_MODE = ' ' "
* ARCHIVE_DATA = "
IMPORTING
NEXT_FUNCTION = "
IMPORTING Parameters details for SWL_SHOW_PROCESS_DATA
WF_ID -
Data type: SWP_HEADER-WF_IDOptional: No
Call by Reference: No ( called with pass by value option)
MULTI_MODE - WLC: Control of interface during mass execution
Data type: SWL_HLPSTR-MULTIMODEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OLD_TECH_LOG - View old tech log
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGUAGE -
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_TECHDETAILS -
Data type: SY-INPUTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_SUBFLOWS -
Data type: SY-INPUTDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_EXPANSION -
Data type: SY-INPUTDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_ERRORS -
Data type: SY-INPUTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_ACTIVEX_VERSION -
Data type: SY-INPUTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ARCHIVE_MODE -
Data type: SY-INPUTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ARCHIVE_DATA -
Data type: SWW_ARCOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for SWL_SHOW_PROCESS_DATA
NEXT_FUNCTION -
Data type: SWD_DATA-OKCODEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SWL_SHOW_PROCESS_DATA Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_wf_id | TYPE SWP_HEADER-WF_ID, " | |||
| lv_next_function | TYPE SWD_DATA-OKCODE, " | |||
| lv_multi_mode | TYPE SWL_HLPSTR-MULTIMODE, " SPACE | |||
| lv_old_tech_log | TYPE CHAR1, " SPACE | |||
| lv_language | TYPE SY-LANGU, " SY-LANGU | |||
| lv_with_techdetails | TYPE SY-INPUT, " ' ' | |||
| lv_with_subflows | TYPE SY-INPUT, " 'X' | |||
| lv_with_expansion | TYPE SY-INPUT, " 'X' | |||
| lv_with_errors | TYPE SY-INPUT, " ' ' | |||
| lv_no_activex_version | TYPE SY-INPUT, " ' ' | |||
| lv_archive_mode | TYPE SY-INPUT, " ' ' | |||
| lv_archive_data | TYPE SWW_ARC. " |
|   CALL FUNCTION 'SWL_SHOW_PROCESS_DATA' "WLC: Anzeigen des Workflow-Protokolls (friends) |
| EXPORTING | ||
| WF_ID | = lv_wf_id | |
| MULTI_MODE | = lv_multi_mode | |
| OLD_TECH_LOG | = lv_old_tech_log | |
| LANGUAGE | = lv_language | |
| WITH_TECHDETAILS | = lv_with_techdetails | |
| WITH_SUBFLOWS | = lv_with_subflows | |
| WITH_EXPANSION | = lv_with_expansion | |
| WITH_ERRORS | = lv_with_errors | |
| NO_ACTIVEX_VERSION | = lv_no_activex_version | |
| ARCHIVE_MODE | = lv_archive_mode | |
| ARCHIVE_DATA | = lv_archive_data | |
| IMPORTING | ||
| NEXT_FUNCTION | = lv_next_function | |
| . " SWL_SHOW_PROCESS_DATA | ||
ABAP code using 7.40 inline data declarations to call FM SWL_SHOW_PROCESS_DATA
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single WF_ID FROM SWP_HEADER INTO @DATA(ld_wf_id). | ||||
| "SELECT single OKCODE FROM SWD_DATA INTO @DATA(ld_next_function). | ||||
| "SELECT single MULTIMODE FROM SWL_HLPSTR INTO @DATA(ld_multi_mode). | ||||
| DATA(ld_multi_mode) | = ' '. | |||
| DATA(ld_old_tech_log) | = ' '. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_language). | ||||
| DATA(ld_language) | = SY-LANGU. | |||
| "SELECT single INPUT FROM SY INTO @DATA(ld_with_techdetails). | ||||
| DATA(ld_with_techdetails) | = ' '. | |||
| "SELECT single INPUT FROM SY INTO @DATA(ld_with_subflows). | ||||
| DATA(ld_with_subflows) | = 'X'. | |||
| "SELECT single INPUT FROM SY INTO @DATA(ld_with_expansion). | ||||
| DATA(ld_with_expansion) | = 'X'. | |||
| "SELECT single INPUT FROM SY INTO @DATA(ld_with_errors). | ||||
| DATA(ld_with_errors) | = ' '. | |||
| "SELECT single INPUT FROM SY INTO @DATA(ld_no_activex_version). | ||||
| DATA(ld_no_activex_version) | = ' '. | |||
| "SELECT single INPUT FROM SY INTO @DATA(ld_archive_mode). | ||||
| DATA(ld_archive_mode) | = ' '. | |||
Search for further information about these or an SAP related objects