SAP Reports / Programs

/SAPSRM/PR_WF_MIGRATION_CFG SAP ABAP Report - SRM Workflow Conversion







/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 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 /SAPSRM/PR_WF_MIGRATION_CFG into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

/SAPSRM/PRWFMIGCFG - Stop and start existing workflows


ABAP code to call this SAP report using the submit statement

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.






SUBMIT /SAPSRM/PR_WF_MIGRATION_CFG. "Basic submit
SUBMIT /SAPSRM/PR_WF_MIGRATION_CFG AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPSRM/PR_WF_MIGRATION_CFG VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


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





Text Symbol: ET1 = Note: By setting this indicator you confirm that you have
Text Symbol: ET2 = manually tested the new workflow (see the IMG documentation)
Text Symbol: ET3 = Step 3 can only run correctly after you have completed this test
Text Symbol: ET4 = Owing to technical restrictions, the report does not indicate all
Text Symbol: ET5 = errors that may occur
Text Symbol: LS1 = WI ID old
Text Symbol: LS2 = WI ID new
Text Symbol: LV1 = Work item ID old


INCLUDES used within this REPORT /SAPSRM/PR_WF_MIGRATION_CFG

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

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.



Contribute (Add Comments)

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 /SAPSRM/PR_WF_MIGRATION_CFG or its description.