SAP Reports / Programs | Supplier Relationship Management | Enterprise Buyer | Workflow(SRM-EBP-WFL) SAP SRM

/SAPSRM/STOP_WFL SAP ABAP Report - /SAPSRM/STOPWFL







/SAPSRM/STOP_WFL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter /SAPSRM/STOP_WFL into the relevant SAP transactions such as SE38 or SE80


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/STOP_WFL. "Basic submit
SUBMIT /SAPSRM/STOP_WFL AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPSRM/STOP_WFL 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 Deletion
Selection Text: P_TEST = Show Open Work Items
Selection Text: SO_CD = Creation Date
Selection Text: SO_CT = Creation Time
Selection Text: SO_ID = ID
Selection Text: SO_OBJCT = Object Type
Selection Text: SO_STATE = Status
Selection Text: SO_TASK = Task
Text Symbol: 013 = Stop workflows
Text Symbol: 014 = Mass selection; Continue will change all workflows, or select 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 object(s)
Text Symbol: 103 = No objects selected
Text Symbol: A01 = Selection options
Text Symbol: A02 = Additional options
Text Symbol: C03 = Stop open work items


INCLUDES used within this REPORT /SAPSRM/STOP_WFL

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.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-013 "Stop workflows text_question = text-014 " Mass selection. Continue will change all workflows. Or select single WI_ID

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.

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.

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.



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