CR_WORKCENTER_SELECT 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 CR_WORKCENTER_SELECT into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
CRSL
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'CR_WORKCENTER_SELECT' "Select resource
* EXPORTING
* obj_plpo_plnty = " plpo-plnty Operation requirements - task list type
* obj_plpo_plnnr = " plpo-plnnr Operation requirements - task list number
* obj_plpo_plnkn = " plpo-plnkn Operation requirements - task list points
* date = SY-DATUM " sy-datum Key date
* network = " crhh-objid Resource network
* arbid_imp = " crhd-objid Current Resource of the Operation
* list = SPACE " sy-datar Manual selection
* order = " caufvd-aufnr Order (for display)
* operation = " plpo-vornr Operation (for display)
* after_rel = 'X' " sy-datar Only resources permitted after release
* check_imp = " sy-datar Only Test of Actual Resource
IMPORTING
arbid_sel = " crhd-objid Selected Resource
imp_not_in_network = " sy-datar Current Resource Contained in Resource Network
imp_not_selected = " sy-datar Current resource does not meet selection criteria
imp_not_after_rel = " sy-datar Current Resource Only Permitted to Release
* TABLES
* arbid_pre = " crid Work centers - predecessor
* arbid_suc = " crid Work centers - successor
* arbid_exp = " crid Allowed work centers
EXCEPTIONS
NO_SELECTION = 1 " No selection possible
. " CR_WORKCENTER_SELECT
The ABAP code below is a full code listing to execute function module CR_WORKCENTER_SELECT 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_arbid_sel | TYPE CRHD-OBJID , |
| ld_imp_not_in_network | TYPE SY-DATAR , |
| ld_imp_not_selected | TYPE SY-DATAR , |
| ld_imp_not_after_rel | TYPE SY-DATAR , |
| it_arbid_pre | TYPE STANDARD TABLE OF CRID,"TABLES PARAM |
| wa_arbid_pre | LIKE LINE OF it_arbid_pre , |
| it_arbid_suc | TYPE STANDARD TABLE OF CRID,"TABLES PARAM |
| wa_arbid_suc | LIKE LINE OF it_arbid_suc , |
| it_arbid_exp | TYPE STANDARD TABLE OF CRID,"TABLES PARAM |
| wa_arbid_exp | LIKE LINE OF it_arbid_exp . |
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_arbid_sel | TYPE CRHD-OBJID , |
| ld_obj_plpo_plnty | TYPE PLPO-PLNTY , |
| it_arbid_pre | TYPE STANDARD TABLE OF CRID , |
| wa_arbid_pre | LIKE LINE OF it_arbid_pre, |
| ld_imp_not_in_network | TYPE SY-DATAR , |
| ld_obj_plpo_plnnr | TYPE PLPO-PLNNR , |
| it_arbid_suc | TYPE STANDARD TABLE OF CRID , |
| wa_arbid_suc | LIKE LINE OF it_arbid_suc, |
| ld_imp_not_selected | TYPE SY-DATAR , |
| ld_obj_plpo_plnkn | TYPE PLPO-PLNKN , |
| it_arbid_exp | TYPE STANDARD TABLE OF CRID , |
| wa_arbid_exp | LIKE LINE OF it_arbid_exp, |
| ld_imp_not_after_rel | TYPE SY-DATAR , |
| ld_date | TYPE SY-DATUM , |
| ld_network | TYPE CRHH-OBJID , |
| ld_arbid_imp | TYPE CRHD-OBJID , |
| ld_list | TYPE SY-DATAR , |
| ld_order | TYPE CAUFVD-AUFNR , |
| ld_operation | TYPE PLPO-VORNR , |
| ld_after_rel | TYPE SY-DATAR , |
| ld_check_imp | TYPE SY-DATAR . |
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 CR_WORKCENTER_SELECT or its description.
CR_WORKCENTER_SELECT - Select resource CR_WORKCENTER_READ_INDEX_TAB - Read work center with index table from Manpower Planning II CR_WORKCENTER_READ_INDEX - Read work center with index from Manpower Planning II CR_WORKCENTER_READ_DIALOG_NAME - Work center - read online with names CR_WORKCENTER_READ_DIALOG - Work center - dialog maintenance table accesses CR_WORKCENTER_READ_COSTING - Read work center cost center allocation