SAP C_VALID_WORKCENTER_CAPACITIES Function Module for NOTRANSL: Kapazitätsarten eines Arbeitsplatzes









C_VALID_WORKCENTER_CAPACITIES is a standard c valid workcenter capacities SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Kapazitätsarten eines Arbeitsplatzes 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 c valid workcenter capacities FM, simply by entering the name C_VALID_WORKCENTER_CAPACITIES into the relevant SAP transaction such as SE37 or SE38.

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



Function C_VALID_WORKCENTER_CAPACITIES 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 'C_VALID_WORKCENTER_CAPACITIES'"NOTRANSL: Kapazitätsarten eines Arbeitsplatzes
EXPORTING
* ARBPL = "Work Center
* WERKS = "Plant
* ARBID = "Object ID of the resource
* KAPAR_PER = '*' "Indicator: People possible as individual capacities

IMPORTING
KAPAR = "Capacity cat.
KAPID = "Capacity ID
.



IMPORTING Parameters details for C_VALID_WORKCENTER_CAPACITIES

ARBPL - Work Center

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

WERKS - Plant

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

ARBID - Object ID of the resource

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

KAPAR_PER - Indicator: People possible as individual capacities

Data type: TC26-PER
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for C_VALID_WORKCENTER_CAPACITIES

KAPAR - Capacity cat.

Data type: KAKO-KAPAR
Optional: No
Call by Reference: No ( called with pass by value option)

KAPID - Capacity ID

Data type: KAKO-KAPID
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for C_VALID_WORKCENTER_CAPACITIES 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_arbpl  TYPE CRHD-ARBPL, "   
lv_kapar  TYPE KAKO-KAPAR, "   
lv_kapid  TYPE KAKO-KAPID, "   
lv_werks  TYPE CRHD-WERKS, "   
lv_arbid  TYPE CRHD-OBJID, "   
lv_kapar_per  TYPE TC26-PER. "   '*'

  CALL FUNCTION 'C_VALID_WORKCENTER_CAPACITIES'  "NOTRANSL: Kapazitätsarten eines Arbeitsplatzes
    EXPORTING
         ARBPL = lv_arbpl
         WERKS = lv_werks
         ARBID = lv_arbid
         KAPAR_PER = lv_kapar_per
    IMPORTING
         KAPAR = lv_kapar
         KAPID = lv_kapid
. " C_VALID_WORKCENTER_CAPACITIES




ABAP code using 7.40 inline data declarations to call FM C_VALID_WORKCENTER_CAPACITIES

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 ARBPL FROM CRHD INTO @DATA(ld_arbpl).
 
"SELECT single KAPAR FROM KAKO INTO @DATA(ld_kapar).
 
"SELECT single KAPID FROM KAKO INTO @DATA(ld_kapid).
 
"SELECT single WERKS FROM CRHD INTO @DATA(ld_werks).
 
"SELECT single OBJID FROM CRHD INTO @DATA(ld_arbid).
 
"SELECT single PER FROM TC26 INTO @DATA(ld_kapar_per).
DATA(ld_kapar_per) = '*'.
 


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!