RSWWARCP is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This read program serves as an example for reading a workflow for a specific instance of an application object...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter RSWWARCP into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
SWW_ARCHIV - Display Workflows from Archive
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Selection Text: DATE = Period
Selection Text: LOGSYS = Logical System
Selection Text: OBJCAT = Object Category
Selection Text: OBJKEY = Object Key
Selection Text: OBJTYPE = Object Type
Selection Text: TASK = Workflow
Title: Archive Work Items: Read Program After Object and Task
Text Symbol: 001 = Object
Text Symbol: 002 = Selection Using Work Item Properties
Text Symbol: 003 = Selection Using Time Period
INCLUDE RSWWINCL.
INCLUDE WARCPF01.
No SAP DATABASE tables are accessed within this REPORT code!
SWO_DIALOG_OBJTYPE_VAL_REQUEST * CALL FUNCTION 'SWO_DIALOG_OBJTYPE_VAL_REQUEST' * IMPORTING * objtype = l_objtype * EXCEPTIONS * OTHERS = 0.
SWU_F4_FOR_TASKS CALL FUNCTION 'SWU_F4_FOR_TASKS' EXPORTING i_program = 'RSWWARCP' i_dynpro = '1000' i_dynpro_field = 'TASK-LOW' i_task_type_ts = 'X' i_task_type_ws = 'X' i_task_type_t = 'X' i_task_type_wf = 'X' i_task_type_tg = space.
AS_API_READ * CALL FUNCTION 'AS_API_READ' * EXPORTING * i_fieldcat = 'SAP_BO2WI_001' " predefined, cf AS * i_selections = all_selections[] * IMPORTING * e_result = archiv_info[] * EXCEPTIONS * parameters_invalid = 1 * no_infostruc_found = 2 * OTHERS = 3.
SWW_WI_LIST_ARCHIVED_READ CALL FUNCTION 'SWW_WI_LIST_ARCHIVED_READ' IMPORTING read_workitems_cntpadd = read_wi_cntpadd read_workitems_comp_cont = read_fi_comp_cont archive_handle = archive_handle TABLES read_workitems_header = read_wi_header read_workitems_return = read_wi_ret read_workitems_deadl = read_wi_deadl read_workitems_cont = read_wi_cont read_workitems_contob = read_wi_contob read_workitems_contxml = read_wi_contxml read_workitems_wi2obj = read_wi_wi2obj read_workitems_sood = read_wi_sood read_workitems_sofm = read_wi_sofm read_workitems_objcont = read_wi_objcont read_workitems_objhead = read_wi_objhead read_workitems_objpara = read_wi_objpara read_workitems_objparb = read_wi_objparb read_workitems_loghist = read_wi_loghist read_workitems_logpara = read_wi_logpara read_workitems_ei = read_ei read_workitems_ai = read_ai read_workitems_airet = read_ai_ret read_workitems_aientry = read_ai_entry read_workitems_flow = read_fi_header read_workitems_steplog = read_fi_steplog read_workitems_nodelog = read_fi_nodelog read_workitems_gprole = read_fi_gproleinst EXCEPTIONS OTHERS = 99.
ARCHIVE_READ_OBJECT CALL FUNCTION 'ARCHIVE_READ_OBJECT' EXPORTING object = wi_archive_object * OBJECT_ID = ' ' * USER_EXIT_PROGRAM = ' ' * USER_EXIT_FORM = ' ' archivkey = archiv_info-archivekey offset = archiv_info-archiveofs * MOVEFLAG = ' ' IMPORTING archive_handle = archive_handle-archive EXCEPTIONS no_record_found = 1 file_io_error = 2 internal_error = 3 open_error = 4 cancelled_by_user = 5 archivelink_error = 6 object_not_found = 7 filename_creation_failure = 8 file_already_open = 9 not_authorized = 10 file_not_found = 11 others = 12.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWWWIHEAD' TABLES t_data = read_wi_header.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWWWIRET' TABLES t_data = read_wi_ret.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWWWIDEADL' TABLES t_data = read_wi_deadl.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWW_CONT' TABLES t_data = read_wi_cont.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWW_CONTOB' TABLES t_data = read_wi_contob.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWWCNTP0' TABLES t_data = read_wi_contxml.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWW_WI2OBJ' TABLES t_data = read_wi_wi2obj.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWWCNTPADD' TABLES t_data = read_wi_cntpadd.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SOOD_WI' TABLES t_data = read_wi_sood.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SOFM_WI' TABLES t_data = read_wi_sofm.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SOLI_WI' TABLES t_data = read_wi_objcont.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SOL2_WI' TABLES t_data = read_wi_objhead.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SELC_WI' TABLES t_data = read_wi_objpara.
CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SOOP1_WI' TABLES t_data = read_wi_objparb.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWWLOGHIST' TABLES t_data = read_wi_loghist.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWWLOGPARA' TABLES t_data = read_wi_logpara.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWWEI' TABLES t_data = read_ei.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWZAI' TABLES t_data = read_ai.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWZAIRET' TABLES t_data = read_ai_ret.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWZAIENTRY' TABLES t_data = read_ai_entry.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWPSTEPLOG' TABLES t_data = read_fi_steplog.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWPNODELOG' TABLES t_data = read_fi_nodelog.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWP_HEADER' TABLES t_data = read_fi_header.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWFGPROLEINST' TABLES t_data = read_fi_gproleinst.
WORKITEM_ARCHIVE_GET_TABLE CALL FUNCTION 'WORKITEM_ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle-archive record_structure = 'SWPCMPCONT' TABLES t_data = read_fi_comp_cont.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = archive_handle-archive.
SWWX_SELECT_ARCHIVED_FLOW CALL FUNCTION 'SWWX_SELECT_ARCHIVED_FLOW' EXPORTING archive_data = sww_arc.
AS_API_READ CALL FUNCTION 'AS_API_READ' EXPORTING i_fieldcat = u_fieldcat i_selections = lt_frange IMPORTING e_result = rt_archiv_info[] EXCEPTIONS no_infostruc_found = 1.
DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = l_repid dynumb = l_dynnr TABLES dynpfields = lt_dynp EXCEPTIONS OTHERS = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.
This will then be available for everyone to easily find by simply searching on the report name RSWWARCP or its description.
RSWWARCP - Archive Work Items: Read Program After Object and Task RSWWARCP - Archive Work Items: Read Program After Object and Task RSWWARCL - Reload Program for Work Items (for Archiving - Test Implementation) RSWWARCL - Reload Program for Work Items (for Archiving - Test Implementation) RSWWADHO - Report for Error Repair with _NOTES and _ADHOC_OBJECTS (for 40) RSWWADHO - Report for Error Repair with _NOTES and _ADHOC_OBJECTS (for 40)