SAP Reports / Programs

COWORKDISPATCHNEW SAP ABAP Report - Dispatching of Function Requests







COWORKDISPATCHNEW 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 COWORKDISPATCHNEW 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 COWORKDISPATCHNEW. "Basic submit
SUBMIT COWORKDISPATCHNEW AND RETURN. "Return to original report after report execution complete
SUBMIT COWORKDISPATCHNEW 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_WPMAX = Maximum Number of Processes
Selection Text: P_LIST = Edit list
Selection Text: P_DISP = Execute flags
Selection Text: P_DELETE = Delete markings
Selection Text: P_CPUTM = D Time of Entry
Selection Text: P_CPUDT = D Entered On
Selection Text: P_APPLOG = Output Application Log (Batch)
Selection Text: PR_WERKS = D Plant
Selection Text: PR_USNAM = D User Name
Selection Text: PR_OBJNR = Object Number
Selection Text: PR_OBART = D Object Type
Selection Text: PR_FUNCT = D Function to Be Executed
Title: Dispatching of Function Requests
Text Symbol: EXE = Function Preselection Executed
Text Symbol: EX3 = No errors have occurred
Text Symbol: EX2 = Warning messages have been issued
Text Symbol: EX1 = Errors Have Occurred
Text Symbol: DEL = Function Preselection Deleted
Text Symbol: 014 = Output Logs in Background (Batch)
Text Symbol: 013 = Parallelization (if Active)
Text Symbol: 012 = Lists and Logs in the Same Spool
Text Symbol: 011 = Delete plan. file entry parameters without plan. file entry
Text Symbol: 010 = older than days (-1 for all)
Text Symbol: 009 = Delete Temp. Planning File Entris, that are
Text Symbol: 008 = Clean Up Temporary Planning File Entries
Text Symbol: 007 = Selection
Text Symbol: 006 = Output Logs
Text Symbol: 005 = Delete
Text Symbol: 004 = Process list (Batch: Execute and output list)
Text Symbol: 003 = Execute
Text Symbol: 002 = Function Selection Mass Processing (Consider Sequence)
Text Symbol: 001 = Prebookings


INCLUDES used within this REPORT COWORKDISPATCHNEW

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:

CO_WORK_REGISTERED_FUNCTIONS CALL FUNCTION 'CO_WORK_REGISTERED_FUNCTIONS' EXPORTING i_flg_initialize = cowrk_c_x IMPORTING eth_fct_registration = gth_registration[].

CO_FUNREQ_FUNCT_TEXT_GET CALL FUNCTION 'CO_FUNREQ_FUNCT_TEXT_GET' EXPORTING i_funct = lt_registration-funct IMPORTING e_funct_text = lt_registration-text.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'FUNCT' value_org = 'S' dynpprog = l_repid dynpnr = l_dynpnr dynprofield = 'PR_FUNCT' TABLES value_tab = lt_registration EXCEPTIONS OTHERS = 4.

SET_PRINT_PARAMETERS CALL FUNCTION 'SET_PRINT_PARAMETERS' EXPORTING new_list_id = space.

CO_WORK_REQUEST_SELECTION CALL FUNCTION 'CO_WORK_REQUEST_SELECTION' EXPORTING i_r_funct = pr_funct[] i_r_obart = pr_obart[] i_r_objnr = pr_objnr[] i_r_usnam = pr_usnam[] i_r_werks = pr_werks[] i_cpudt_to = p_cpudt i_cputm_to = p_cputm CHANGING c_t_funreq = ct_funreq[].

CO_WORK_REQUEST_DISPATCH CALL FUNCTION 'CO_WORK_REQUEST_DISPATCH' EXPORTING it_funreq = ct_funreq[] is_fct_general = p_fctgen it_fct_header = p_fcthdr[] i_workprocess_group = p_wpgrp i_workprocess_max = p_wpmax i_flg_display_statistics = cowrk_c_x IMPORTING eth_selection = gt_selection[] et_tasklog = ct_tasklog_dispatched[] et_appllog = ct_appllog[].

CO_WORK_REQUEST_DELETE CALL FUNCTION 'CO_WORK_REQUEST_DELETE' EXPORTING it_funreq = ct_funreq[] it_fct_header = p_fcthdr[].

CO_APPLLOG_DISPLAY_WITH_LOGHDL CALL FUNCTION 'CO_APPLLOG_DISPLAY_WITH_LOGHDL' EXPORTING it_loghandle = lt_loghandle.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_repid i_callback_pf_status_set = 'LIST_FUNREQ_SET_PF_STATUS' i_callback_user_command = 'LIST_FUNREQ_USER_COMMAND' i_structure_name = 'FUNREQ' is_layout = ls_layout is_print = ls_print it_except_qinfo = lt_exc TABLES t_outtab = gt_funreq_list[] EXCEPTIONS program_error = 1 OTHERS = 2.



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