SAP CO_WORK_REQUEST_SELECTION Function Module for Selektion von Funktionsvormerkungen









CO_WORK_REQUEST_SELECTION is a standard co work request selection SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Selektion von Funktionsvormerkungen processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for co work request selection FM, simply by entering the name CO_WORK_REQUEST_SELECTION into the relevant SAP transaction such as SE37 or SE38.

Function Group: COWORK
Program Name: SAPLCOWORK
Main Program: SAPLCOWORK
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CO_WORK_REQUEST_SELECTION pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'CO_WORK_REQUEST_SELECTION'"Selektion von Funktionsvormerkungen
EXPORTING
* I_R_FUNCT = "
* I_R_OBART = "
* I_R_USNAM = "
* I_R_WERKS = "
* I_R_OBJNR = "
* I_CPUDT_FROM = "
* I_CPUTM_FROM = "
* I_CPUDT_TO = "
* I_CPUTM_TO = "

CHANGING
C_T_FUNREQ = "
.



IMPORTING Parameters details for CO_WORK_REQUEST_SELECTION

I_R_FUNCT -

Data type: COWRK_T_RANGE_OF_FUNCT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_R_OBART -

Data type: COWRK_T_RANGE_OF_OBART
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_R_USNAM -

Data type: COWRK_T_RANGE_OF_USNAM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_R_WERKS -

Data type: COWRK_T_RANGE_OF_WERKS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_R_OBJNR -

Data type: COWRK_T_RANGE_OF_OBJNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CPUDT_FROM -

Data type: FUNREQ-CPUDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CPUTM_FROM -

Data type: FUNREQ-CPUTM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CPUDT_TO -

Data type: FUNREQ-CPUDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CPUTM_TO -

Data type: FUNREQ-CPUTM
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for CO_WORK_REQUEST_SELECTION

C_T_FUNREQ -

Data type: COWRK_T_FUNREQ
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CO_WORK_REQUEST_SELECTION Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_i_r_funct  TYPE COWRK_T_RANGE_OF_FUNCT, "   
lv_c_t_funreq  TYPE COWRK_T_FUNREQ, "   
lv_i_r_obart  TYPE COWRK_T_RANGE_OF_OBART, "   
lv_i_r_usnam  TYPE COWRK_T_RANGE_OF_USNAM, "   
lv_i_r_werks  TYPE COWRK_T_RANGE_OF_WERKS, "   
lv_i_r_objnr  TYPE COWRK_T_RANGE_OF_OBJNR, "   
lv_i_cpudt_from  TYPE FUNREQ-CPUDT, "   
lv_i_cputm_from  TYPE FUNREQ-CPUTM, "   
lv_i_cpudt_to  TYPE FUNREQ-CPUDT, "   
lv_i_cputm_to  TYPE FUNREQ-CPUTM. "   

  CALL FUNCTION 'CO_WORK_REQUEST_SELECTION'  "Selektion von Funktionsvormerkungen
    EXPORTING
         I_R_FUNCT = lv_i_r_funct
         I_R_OBART = lv_i_r_obart
         I_R_USNAM = lv_i_r_usnam
         I_R_WERKS = lv_i_r_werks
         I_R_OBJNR = lv_i_r_objnr
         I_CPUDT_FROM = lv_i_cpudt_from
         I_CPUTM_FROM = lv_i_cputm_from
         I_CPUDT_TO = lv_i_cpudt_to
         I_CPUTM_TO = lv_i_cputm_to
    CHANGING
         C_T_FUNREQ = lv_c_t_funreq
. " CO_WORK_REQUEST_SELECTION




ABAP code using 7.40 inline data declarations to call FM CO_WORK_REQUEST_SELECTION

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
"SELECT single CPUDT FROM FUNREQ INTO @DATA(ld_i_cpudt_from).
 
"SELECT single CPUTM FROM FUNREQ INTO @DATA(ld_i_cputm_from).
 
"SELECT single CPUDT FROM FUNREQ INTO @DATA(ld_i_cpudt_to).
 
"SELECT single CPUTM FROM FUNREQ INTO @DATA(ld_i_cputm_to).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!