SAP SWL_GET_PROCESS_DATA Function Module for WLC: Einsammeln der Protokolldaten für den Prozeß-Monitor









SWL_GET_PROCESS_DATA is a standard swl get 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: Einsammeln der Protokolldaten für den Prozeß-Monitor 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 get process data FM, simply by entering the name SWL_GET_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_GET_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_GET_PROCESS_DATA'"WLC: Einsammeln der Protokolldaten für den Prozeß-Monitor
EXPORTING
WF_ID = "
WITH_TECHDETAILS = "
WITH_SUBFLOWS = "
WITH_EXPANSION = "
WITH_ERRORS = "
* LANGUAGE = SY-LANGU "
* ALV_FORMAT = 'X' "
* WITH_WIM_LOG = 'X' "

EXCEPTIONS
ERROR_READING_WFM_LOG = 1 ERROR_READING_WIM_LOG = 2
.



IMPORTING Parameters details for SWL_GET_PROCESS_DATA

WF_ID -

Data type: SWP_HEADER-WF_ID
Optional: No
Call by Reference: No ( called with pass by value option)

WITH_TECHDETAILS -

Data type: SY-INPUT
Optional: No
Call by Reference: No ( called with pass by value option)

WITH_SUBFLOWS -

Data type: SY-INPUT
Optional: No
Call by Reference: No ( called with pass by value option)

WITH_EXPANSION -

Data type: SY-INPUT
Optional: No
Call by Reference: No ( called with pass by value option)

WITH_ERRORS -

Data type: SY-INPUT
Optional: No
Call by Reference: No ( called with pass by value option)

LANGUAGE -

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

ALV_FORMAT -

Data type: SY-INPUT
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_WIM_LOG -

Data type: SY-INPUT
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ERROR_READING_WFM_LOG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_READING_WIM_LOG -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SWL_GET_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_error_reading_wfm_log  TYPE SWP_HEADER, "   
lv_with_techdetails  TYPE SY-INPUT, "   
lv_error_reading_wim_log  TYPE SY, "   
lv_with_subflows  TYPE SY-INPUT, "   
lv_with_expansion  TYPE SY-INPUT, "   
lv_with_errors  TYPE SY-INPUT, "   
lv_language  TYPE SY-LANGU, "   SY-LANGU
lv_alv_format  TYPE SY-INPUT, "   'X'
lv_with_wim_log  TYPE SY-INPUT. "   'X'

  CALL FUNCTION 'SWL_GET_PROCESS_DATA'  "WLC: Einsammeln der Protokolldaten für den Prozeß-Monitor
    EXPORTING
         WF_ID = lv_wf_id
         WITH_TECHDETAILS = lv_with_techdetails
         WITH_SUBFLOWS = lv_with_subflows
         WITH_EXPANSION = lv_with_expansion
         WITH_ERRORS = lv_with_errors
         LANGUAGE = lv_language
         ALV_FORMAT = lv_alv_format
         WITH_WIM_LOG = lv_with_wim_log
    EXCEPTIONS
        ERROR_READING_WFM_LOG = 1
        ERROR_READING_WIM_LOG = 2
. " SWL_GET_PROCESS_DATA




ABAP code using 7.40 inline data declarations to call FM SWL_GET_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 INPUT FROM SY INTO @DATA(ld_with_techdetails).
 
 
"SELECT single INPUT FROM SY INTO @DATA(ld_with_subflows).
 
"SELECT single INPUT FROM SY INTO @DATA(ld_with_expansion).
 
"SELECT single INPUT FROM SY INTO @DATA(ld_with_errors).
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
"SELECT single INPUT FROM SY INTO @DATA(ld_alv_format).
DATA(ld_alv_format) = 'X'.
 
"SELECT single INPUT FROM SY INTO @DATA(ld_with_wim_log).
DATA(ld_with_wim_log) = 'X'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!