/SAPSRM/PR_WF_MIGRATION_CFG is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for For information on this report, see the
If you would like to execute this report or see the full code listing simply enter /SAPSRM/PR_WF_MIGRATION_CFG into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
/SAPSRM/PRWFMIGCFG - Stop and start existing workflows
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: P_ADOPT = Selected work items only
Selection Text: P_CHECK = Refresh results
Selection Text: P_FINAL = Execute conversion
Selection Text: P_MANUAL = Manual test of concept done
Selection Text: P_RETRY = Restart pending work items
Selection Text: P_TEST = Show open work items
Selection Text: P_TOGGLE = Set toggle
Selection Text: SO_CD = D .
Selection Text: SO_CT = D .
Selection Text: SO_ID = D .
Selection Text: SO_OBJCT = D .
Selection Text: SO_STATE = D .
Selection Text: SO_TASK = D .
Title: SRM Workflow Conversion
Text Symbol: S06 = DUMP
Text Symbol: S04 = STOPPED
Text Symbol: S03 = NOT STOPPED
Text Symbol: S02 = PENDING
Text Symbol: S01 = SUCCESS
Text Symbol: LV5 = Date
Text Symbol: LV4 = Username
Text Symbol: LV3 = Work item ID new
Text Symbol: LV2 = Status
Text Symbol: 007 = Error occurred; toggle could not be set
Text Symbol: 008 = Toggle was set successfully for business object:
Text Symbol: 013 = Stop and start workflows
Text Symbol: 014 = Mass selection. Continue changes all workflows, or select a single WI_ID
Text Symbol: 015 = Continue
Text Symbol: 016 = Select
Text Symbol: 100 = Object not allowed
Text Symbol: 101 = Task not allowed
Text Symbol: 102 = Task not allowed for selected business objects
Text Symbol: 103 = No objects selected
Text Symbol: A01 = Selection options
Text Symbol: A02 = Additional options
Text Symbol: C01 = 1st step: Activate new workflow concept
Text Symbol: C02 = 2nd step: Test new workflow concept manually
Text Symbol: C03 = 3rd step: Stop open work items and start new work items
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
RH_SEARCH_TASK CALL FUNCTION 'RH_SEARCH_TASK' IMPORTING act_object_ext = act_object_ext EXCEPTIONS no_active_plvar = 1 no_org_object_selected = 2 no_valid_task_type = 3 OTHERS = 4.
RH_SEARCH_TASK CALL FUNCTION 'RH_SEARCH_TASK' IMPORTING act_object_ext = act_object_ext EXCEPTIONS no_active_plvar = 1 no_org_object_selected = 2 no_valid_task_type = 3 OTHERS = 4.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_structure_name = 'SWFAWRKITM' TABLES t_outtab = gt_wiheader.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING it_fieldcat = lt_fieldcat TABLES t_outtab = gt_wf_020_ext.
SAP_WAPI_WORKITEMS_TO_OBJECT CALL FUNCTION 'SAP_WAPI_WORKITEMS_TO_OBJECT' EXPORTING object_por = ls_por top_level_items = '' selection_status_variant = 0000 output_only_top_level = 'X' TABLES worklist = lt_wlist.
SAP_WAPI_ADM_WORKFLOW_CANCEL CALL FUNCTION 'SAP_WAPI_ADM_WORKFLOW_CANCEL' DESTINATION 'NONE' EXPORTING workitem_id =
-sww_wiid_old IMPORTING return_code = lv_return new_status = lv_swr_wistat.
POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-013 text_question = text-014 text_button_1 = text-015 text_button_2 = text-016 display_cancel_button = '' IMPORTING answer = lv_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.
BBP_PDH_WFL_OBJECT_WI_GET CALL FUNCTION 'BBP_PDH_WFL_OBJECT_WI_GET' EXPORTING iv_workitem_id =
-sww_wiid_old IMPORTING ex_reqno = lv_reqno ev_obj_type = -document_type ex_guid = lv_sc_guid.
BBP_PD_ALL_GET_OBJECT_GUID CALL FUNCTION 'BBP_PD_ALL_GET_OBJECT_GUID' EXPORTING iv_object_id = lv_reqno iv_object_type = p_dtype IMPORTING ev_object_guid = lv_sc_guid.
SAP_WAPI_ADM_WORKFLOW_CANCEL CALL FUNCTION 'SAP_WAPI_ADM_WORKFLOW_CANCEL' DESTINATION 'NONE' EXPORTING workitem_id =
-sww_wiid_old IMPORTING return_code = lv_return new_status = lv_swr_wistat.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
/SAPSRM/PR_WF_MIGRATION_CFG - SRM Workflow Conversion /SAPSRM/PR_WF_MIGRATION_CFG - SRM Workflow Conversion /SAPSRM/POWL_LOAD_CUSTOMIZING - POWL: Load / Reload Customizing for POWL Queries /SAPSRM/POWL_LOAD_CUSTOMIZING - POWL: Load / Reload Customizing for POWL Queries /SAPSRM/PORTAL_MAINTAIN - Maintaining the SAP delivered Portal delivered Portal Customizing /SAPSRM/PORTAL_MAINTAIN - Maintaining the SAP delivered Portal delivered Portal Customizing