CO_WORK_REQUEST_DISPATCH is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name CO_WORK_REQUEST_DISPATCH into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
COWORK
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'CO_WORK_REQUEST_DISPATCH' "
EXPORTING
it_funreq = " cowrk_t_funreq
is_fct_general = " cowrk_s_fct_general
it_fct_header = " cowrk_t_fct_header
* i_workprocess_group = SPACE " tparu-class
* i_workprocess_max = 4 " tparu-prllp
* i_flg_display_statistics = SPACE " flag
IMPORTING
eth_selection = " cowrk_th_fct_selection
et_tasklog = " cowrk_t_tasklog
et_appllog = " cowb_t_appllog
. " CO_WORK_REQUEST_DISPATCH
The ABAP code below is a full code listing to execute function module CO_WORK_REQUEST_DISPATCH including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_eth_selection | TYPE COWRK_TH_FCT_SELECTION , |
| ld_et_tasklog | TYPE COWRK_T_TASKLOG , |
| ld_et_appllog | TYPE COWB_T_APPLLOG . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_eth_selection | TYPE COWRK_TH_FCT_SELECTION , |
| ld_it_funreq | TYPE COWRK_T_FUNREQ , |
| ld_et_tasklog | TYPE COWRK_T_TASKLOG , |
| ld_is_fct_general | TYPE COWRK_S_FCT_GENERAL , |
| ld_et_appllog | TYPE COWB_T_APPLLOG , |
| ld_it_fct_header | TYPE COWRK_T_FCT_HEADER , |
| ld_i_workprocess_group | TYPE TPARU-CLASS , |
| ld_i_workprocess_max | TYPE TPARU-PRLLP , |
| ld_i_flg_display_statistics | TYPE FLAG . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CO_WORK_REQUEST_DISPATCH or its description.