SAP SWW_WI_LIST_ARCHIVED_READ Function Module for









SWW_WI_LIST_ARCHIVED_READ is a standard sww wi list archived read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 sww wi list archived read FM, simply by entering the name SWW_WI_LIST_ARCHIVED_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: SWWX
Program Name: SAPLSWWX
Main Program: SAPLSWWX
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SWW_WI_LIST_ARCHIVED_READ 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 'SWW_WI_LIST_ARCHIVED_READ'"
IMPORTING
READ_WORKITEMS_CNTPADD = "
READ_WORKITEMS_COMP_CONT = "
ARCHIVE_HANDLE = "Archive handle

TABLES
READ_WORKITEMS_HEADER = "Data read from SWWWIHEAD
* READ_WORKITEMS_OBJCONT = "Soli for Archiving of WI Attachments
* READ_WORKITEMS_OBJHEAD = "Soli for Archiving of WI Attachments
* READ_WORKITEMS_OBJPARA = "Selc for Archiving of WI Attachments
* READ_WORKITEMS_OBJPARB = "Soop1 for Archiving of WI Attachments
* READ_WORKITEMS_LOGHIST = "Data read from SWWLOGHIST
* READ_WORKITEMS_LOGPARA = "Data read from SWWLOGPARA
* READ_WORKITEMS_EI = "Data read from SWWEI
* READ_WORKITEMS_AI = "Data read from SWZAI
* READ_WORKITEMS_AIRET = "Data read from SWZAIRET
* READ_WORKITEMS_AIENTRY = "Data read from SWZAIENTRY
* READ_WORKITEMS_RETURN = "Data read from SWWWIRET
* READ_WORKITEMS_FLOW = "Data read from SWP_HEADER
* READ_WORKITEMS_STEPLOG = "Data read from SWPSTEPLOG
* READ_WORKITEMS_NODELOG = "Data read from SWPNODELOG
* READ_WORKITEMS_NODEWI = "
* READ_WORKITEMS_NODE = "
* READ_WORKITEMS_GPROLE = "
* READ_WORKITEMS_DEADL = "Data read from SWWIDEADL
* READ_WORKITEMS_CONT = "Data read from SWW_CONT
* READ_WORKITEMS_CONTOB = "Data read from SWW_CONTOB
* READ_WORKITEMS_CONTXML = "
* READ_WORKITEMS_WI2OBJ = "
* READ_WORKITEMS_SOOD = "Sood for Archiving of WI Attachments
* READ_WORKITEMS_SOFM = "Sofm for Archiving of WI Attachments

EXCEPTIONS
IO_ERROR = 1 ARCHIVE_OBJECT_UNKNOWN = 2 INTERNAL_ERROR = 3 NOT_AUTHORIZED = 4 WRONG_ACCESS_TO_ARCHIVE = 5 NO_FILES_AVAILABLE = 6
.



EXPORTING Parameters details for SWW_WI_LIST_ARCHIVED_READ

READ_WORKITEMS_CNTPADD -

Data type: SWW_WI_CNTPADD_ARC
Optional: No
Call by Reference: Yes

READ_WORKITEMS_COMP_CONT -

Data type: SWW_FI_CMPCONT_ARC
Optional: No
Call by Reference: Yes

ARCHIVE_HANDLE - Archive handle

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

TABLES Parameters details for SWW_WI_LIST_ARCHIVED_READ

READ_WORKITEMS_HEADER - Data read from SWWWIHEAD

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

READ_WORKITEMS_OBJCONT - Soli for Archiving of WI Attachments

Data type: SOLI_WI
Optional: Yes
Call by Reference: Yes

READ_WORKITEMS_OBJHEAD - Soli for Archiving of WI Attachments

Data type: SOL2_WI
Optional: Yes
Call by Reference: Yes

READ_WORKITEMS_OBJPARA - Selc for Archiving of WI Attachments

Data type: SELC_WI
Optional: Yes
Call by Reference: Yes

READ_WORKITEMS_OBJPARB - Soop1 for Archiving of WI Attachments

Data type: SOOP1_WI
Optional: Yes
Call by Reference: Yes

READ_WORKITEMS_LOGHIST - Data read from SWWLOGHIST

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

READ_WORKITEMS_LOGPARA - Data read from SWWLOGPARA

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

READ_WORKITEMS_EI - Data read from SWWEI

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

READ_WORKITEMS_AI - Data read from SWZAI

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

READ_WORKITEMS_AIRET - Data read from SWZAIRET

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

READ_WORKITEMS_AIENTRY - Data read from SWZAIENTRY

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

READ_WORKITEMS_RETURN - Data read from SWWWIRET

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

READ_WORKITEMS_FLOW - Data read from SWP_HEADER

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

READ_WORKITEMS_STEPLOG - Data read from SWPSTEPLOG

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

READ_WORKITEMS_NODELOG - Data read from SWPNODELOG

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

READ_WORKITEMS_NODEWI -

Data type: SWP_NODEWI
Optional: Yes
Call by Reference: Yes

READ_WORKITEMS_NODE -

Data type: SWPNODE
Optional: Yes
Call by Reference: Yes

READ_WORKITEMS_GPROLE -

Data type: SWFGPROLEINST
Optional: Yes
Call by Reference: Yes

READ_WORKITEMS_DEADL - Data read from SWWIDEADL

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

READ_WORKITEMS_CONT - Data read from SWW_CONT

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

READ_WORKITEMS_CONTOB - Data read from SWW_CONTOB

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

READ_WORKITEMS_CONTXML -

Data type: SWWCNTP0
Optional: Yes
Call by Reference: Yes

READ_WORKITEMS_WI2OBJ -

Data type: SWW_WI2OBJ
Optional: Yes
Call by Reference: Yes

READ_WORKITEMS_SOOD - Sood for Archiving of WI Attachments

Data type: SOOD_WI
Optional: Yes
Call by Reference: Yes

READ_WORKITEMS_SOFM - Sofm for Archiving of WI Attachments

Data type: SOFM_WI
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

IO_ERROR -

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

ARCHIVE_OBJECT_UNKNOWN -

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

INTERNAL_ERROR -

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

NOT_AUTHORIZED -

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

WRONG_ACCESS_TO_ARCHIVE -

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

NO_FILES_AVAILABLE -

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

Copy and paste ABAP code example for SWW_WI_LIST_ARCHIVED_READ 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_io_error  TYPE STRING, "   
lt_read_workitems_header  TYPE STANDARD TABLE OF SWWWIHEAD, "   
lv_read_workitems_cntpadd  TYPE SWW_WI_CNTPADD_ARC, "   
lt_read_workitems_objcont  TYPE STANDARD TABLE OF SOLI_WI, "   
lt_read_workitems_objhead  TYPE STANDARD TABLE OF SOL2_WI, "   
lt_read_workitems_objpara  TYPE STANDARD TABLE OF SELC_WI, "   
lt_read_workitems_objparb  TYPE STANDARD TABLE OF SOOP1_WI, "   
lt_read_workitems_loghist  TYPE STANDARD TABLE OF SWWLOGHIST, "   
lt_read_workitems_logpara  TYPE STANDARD TABLE OF SWWLOGPARA, "   
lt_read_workitems_ei  TYPE STANDARD TABLE OF SWWEI, "   
lt_read_workitems_ai  TYPE STANDARD TABLE OF SWZAI, "   
lt_read_workitems_airet  TYPE STANDARD TABLE OF SWZAIRET, "   
lt_read_workitems_aientry  TYPE STANDARD TABLE OF SWZAIENTRY, "   
lt_read_workitems_return  TYPE STANDARD TABLE OF SWWWIRET, "   
lv_archive_object_unknown  TYPE SWWWIRET, "   
lv_read_workitems_comp_cont  TYPE SWW_FI_CMPCONT_ARC, "   
lt_read_workitems_flow  TYPE STANDARD TABLE OF SWP_HEADER, "   
lt_read_workitems_steplog  TYPE STANDARD TABLE OF SWPSTEPLOG, "   
lt_read_workitems_nodelog  TYPE STANDARD TABLE OF SWPNODELOG, "   
lt_read_workitems_nodewi  TYPE STANDARD TABLE OF SWP_NODEWI, "   
lt_read_workitems_node  TYPE STANDARD TABLE OF SWPNODE, "   
lt_read_workitems_gprole  TYPE STANDARD TABLE OF SWFGPROLEINST, "   
lv_archive_handle  TYPE SWWX_ADK_HANDLE_TYPE, "   
lv_internal_error  TYPE SWWX_ADK_HANDLE_TYPE, "   
lt_read_workitems_deadl  TYPE STANDARD TABLE OF SWWWIDEADL, "   
lv_not_authorized  TYPE SWWWIDEADL, "   
lt_read_workitems_cont  TYPE STANDARD TABLE OF SWW_CONT, "   
lt_read_workitems_contob  TYPE STANDARD TABLE OF SWW_CONTOB, "   
lv_wrong_access_to_archive  TYPE SWW_CONTOB, "   
lv_no_files_available  TYPE SWW_CONTOB, "   
lt_read_workitems_contxml  TYPE STANDARD TABLE OF SWWCNTP0, "   
lt_read_workitems_wi2obj  TYPE STANDARD TABLE OF SWW_WI2OBJ, "   
lt_read_workitems_sood  TYPE STANDARD TABLE OF SOOD_WI, "   
lt_read_workitems_sofm  TYPE STANDARD TABLE OF SOFM_WI. "   

  CALL FUNCTION 'SWW_WI_LIST_ARCHIVED_READ'  "
    IMPORTING
         READ_WORKITEMS_CNTPADD = lv_read_workitems_cntpadd
         READ_WORKITEMS_COMP_CONT = lv_read_workitems_comp_cont
         ARCHIVE_HANDLE = lv_archive_handle
    TABLES
         READ_WORKITEMS_HEADER = lt_read_workitems_header
         READ_WORKITEMS_OBJCONT = lt_read_workitems_objcont
         READ_WORKITEMS_OBJHEAD = lt_read_workitems_objhead
         READ_WORKITEMS_OBJPARA = lt_read_workitems_objpara
         READ_WORKITEMS_OBJPARB = lt_read_workitems_objparb
         READ_WORKITEMS_LOGHIST = lt_read_workitems_loghist
         READ_WORKITEMS_LOGPARA = lt_read_workitems_logpara
         READ_WORKITEMS_EI = lt_read_workitems_ei
         READ_WORKITEMS_AI = lt_read_workitems_ai
         READ_WORKITEMS_AIRET = lt_read_workitems_airet
         READ_WORKITEMS_AIENTRY = lt_read_workitems_aientry
         READ_WORKITEMS_RETURN = lt_read_workitems_return
         READ_WORKITEMS_FLOW = lt_read_workitems_flow
         READ_WORKITEMS_STEPLOG = lt_read_workitems_steplog
         READ_WORKITEMS_NODELOG = lt_read_workitems_nodelog
         READ_WORKITEMS_NODEWI = lt_read_workitems_nodewi
         READ_WORKITEMS_NODE = lt_read_workitems_node
         READ_WORKITEMS_GPROLE = lt_read_workitems_gprole
         READ_WORKITEMS_DEADL = lt_read_workitems_deadl
         READ_WORKITEMS_CONT = lt_read_workitems_cont
         READ_WORKITEMS_CONTOB = lt_read_workitems_contob
         READ_WORKITEMS_CONTXML = lt_read_workitems_contxml
         READ_WORKITEMS_WI2OBJ = lt_read_workitems_wi2obj
         READ_WORKITEMS_SOOD = lt_read_workitems_sood
         READ_WORKITEMS_SOFM = lt_read_workitems_sofm
    EXCEPTIONS
        IO_ERROR = 1
        ARCHIVE_OBJECT_UNKNOWN = 2
        INTERNAL_ERROR = 3
        NOT_AUTHORIZED = 4
        WRONG_ACCESS_TO_ARCHIVE = 5
        NO_FILES_AVAILABLE = 6
. " SWW_WI_LIST_ARCHIVED_READ




ABAP code using 7.40 inline data declarations to call FM SWW_WI_LIST_ARCHIVED_READ

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!