SAP Function Modules

CO_WORK_REQUEST_DISPATCH SAP Function module







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
Normal function module settings


Pattern for FM CO_WORK_REQUEST_DISPATCH - CO WORK REQUEST DISPATCH





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

ABAP code example for Function Module 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).

DATA:
ld_eth_selection  TYPE COWRK_TH_FCT_SELECTION ,
ld_et_tasklog  TYPE COWRK_T_TASKLOG ,
ld_et_appllog  TYPE COWB_T_APPLLOG .

DATA(ld_it_funreq) = 'Check type of data required'.
DATA(ld_is_fct_general) = 'Check type of data required'.
DATA(ld_it_fct_header) = 'Check type of data required'.

SELECT single CLASS
FROM TPARU
INTO @DATA(ld_i_workprocess_group).


SELECT single PRLLP
FROM TPARU
INTO @DATA(ld_i_workprocess_max).

DATA(ld_i_flg_display_statistics) = 'Check type of data required'. . CALL FUNCTION 'CO_WORK_REQUEST_DISPATCH' EXPORTING it_funreq = ld_it_funreq is_fct_general = ld_is_fct_general it_fct_header = ld_it_fct_header * i_workprocess_group = ld_i_workprocess_group * i_workprocess_max = ld_i_workprocess_max * i_flg_display_statistics = ld_i_flg_display_statistics IMPORTING eth_selection = ld_eth_selection et_tasklog = ld_et_tasklog et_appllog = ld_et_appllog . " CO_WORK_REQUEST_DISPATCH
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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 .

ld_it_funreq = 'Check type of data required'.
ld_is_fct_general = 'Check type of data required'.
ld_it_fct_header = 'Check type of data required'.

SELECT single CLASS
FROM TPARU
INTO ld_i_workprocess_group.


SELECT single PRLLP
FROM TPARU
INTO ld_i_workprocess_max.

ld_i_flg_display_statistics = 'Check type of data required'.

Contribute (Add Comments)

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.