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

/SAPSRM/WF_CFG_GENERALIZE SAP ABAP Report - Generalize Dependent Tasks







/SAPSRM/WF_CFG_GENERALIZE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Execute this report to define tasks as general tasks...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/WF_CFG_GENERALIZE 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/WF_GEN - Define Task as General Task


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/WF_CFG_GENERALIZE. "Basic submit
SUBMIT /SAPSRM/WF_CFG_GENERALIZE AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPSRM/WF_CFG_GENERALIZE 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: IV_OTYPE = Task Type
Selection Text: IV_SEARK = Task
Selection Text: IV_TNAME = Task Name
Title: Generalize Dependent Tasks
Text Symbol: 101 = Task Type
Text Symbol: 102 = Task ID
Text Symbol: 103 = Task Name
Text Symbol: 201 = Status
Text Symbol: 202 = Agents
Text Symbol: ALL = All Types
Text Symbol: CTK = Customer Task
Text Symbol: GRN = General Task: Done
Text Symbol: GRY = Background Task: No Action Required
Text Symbol: YEL = Undefined: Action Required


INCLUDES used within this REPORT /SAPSRM/WF_CFG_GENERALIZE

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:

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_GREEN' info = text-grn add_stdinf = space IMPORTING RESULT = gv_led_green EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_YELLOW' info = text-yel add_stdinf = space IMPORTING RESULT = gv_led_yellow EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_LED_INACTIVE' info = text-gry add_stdinf = space IMPORTING RESULT = gv_led_grey EXCEPTIONS OTHERS = 0.

RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' EXPORTING set_default_plvar = 'X' IMPORTING act_plvar = gv_plvar EXCEPTIONS OTHERS = 1.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'KEY' value_org = 'S' TABLES value_tab = lt_otype_drop_down EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

RH_DETERMINE_ORG_OBJID CALL FUNCTION 'RH_DETERMINE_ORG_OBJID' EXPORTING org_object_type = iv_otype act_search_string = gs_pdtask-seark IMPORTING org_object_objid = lv_sel_objid EXCEPTIONS no_active_plvar = 1 no_object_id_selected = 2 OTHERS = 3.

RH_FA_TASK_HELP CALL FUNCTION 'RH_FA_TASK_HELP' EXPORTING search_task_type = iv_otype act_plvar = gv_plvar task_search_string = gs_pdtask-seark IMPORTING selected_otype = lv_sel_otype selected_objid = lv_sel_objid EXCEPTIONS no_active_plvar = 1 nothing_selected = 2 OTHERS = 3.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING plvar = gv_plvar otype = lv_sel_otype objid = lv_objid IMPORTING display_text = lv_stext EXCEPTIONS OTHERS = 1.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = gv_repid dynumb = sy-dynnr TABLES dynpfields = lt_dynpfields EXCEPTIONS OTHERS = 0.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_buffer_active = 'X' i_callback_program = gv_repid i_callback_top_of_page = 'TOP_OF_PAGE' i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' is_layout = gs_layout it_excluding = gt_extab it_fieldcat = gt_fieldcat it_sort = gt_sort it_events = gt_event TABLES t_outtab = gt_output EXCEPTIONS program_error = 1 OTHERS = 2.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = gv_repid dynumb = gv_dynnr TABLES dynpfields = lt_dynp_values EXCEPTIONS OTHERS = 1.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = lv_structure_name CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS OTHERS = 0.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = lt_event.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_header.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING plvar = is_task-plvar otype = is_task-otype objid = is_task-objid istat = '1' IMPORTING short = es_output-short display_text = es_output-stext EXCEPTIONS not_found = 1 OTHERS = 2.

RH_STRUC_GET CALL FUNCTION 'RH_STRUC_GET' EXPORTING act_otype = gs_output-otype act_objid = gs_output-objid act_wegid = 'TASKHIER' act_plvar = gv_plvar text_buffer_fill = 'X' TABLES result_tab = lt_object EXCEPTIONS no_plvar_found = 1 no_entry_found = 2 OTHERS = 3.

SWF_TASK_DETAILS_GET CALL FUNCTION 'SWF_TASK_DETAILS_GET' EXPORTING task = lv_task_id IMPORTING details = ls_detail TABLES agents = lt_agent EXCEPTIONS task_not_exists = 1 OTHERS = 2.

SWF_TASK_GENERALIZE CALL FUNCTION 'SWF_TASK_GENERALIZE' EXPORTING task = lv_task_id authority_check = 'X' EXCEPTIONS already_generalized = 1 task_not_exists = 2 internal_error = 3 OTHERS = 4.



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