SAP HRCM_ADMINISTRATION Function Module for









HRCM_ADMINISTRATION is a standard hrcm administration SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 hrcm administration FM, simply by entering the name HRCM_ADMINISTRATION into the relevant SAP transaction such as SE37 or SE38.

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



Function HRCM_ADMINISTRATION 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 'HRCM_ADMINISTRATION'"
EXPORTING
PLVAR = "
CYEAR = "
CPROC = "
* CPLAN = ' ' "
* CSTAT = ' ' "
* RESTRICT_PERNR = ' ' "
* ACODE = ' ' "
* REACTION = "

TABLES
PERNR_TABLE = "
* ERROR_TAB = "

EXCEPTIONS
UNKNOWN_PLAN_PERIOD = 1 NO_EMPLOYEES_FOUND = 2 NO_ADJUSTMENT_TYPES_FOUND = 3
.



IMPORTING Parameters details for HRCM_ADMINISTRATION

PLVAR -

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

CYEAR -

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

CPROC -

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

CPLAN -

Data type: T71CA-CPLAN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CSTAT -

Data type: P0380-CSTAT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESTRICT_PERNR -

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

ACODE -

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

REACTION -

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

TABLES Parameters details for HRCM_ADMINISTRATION

PERNR_TABLE -

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

ERROR_TAB -

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

EXCEPTIONS details

UNKNOWN_PLAN_PERIOD -

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

NO_EMPLOYEES_FOUND -

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

NO_ADJUSTMENT_TYPES_FOUND -

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

Copy and paste ABAP code example for HRCM_ADMINISTRATION 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_plvar  TYPE T778P-PLVAR, "   
lt_pernr_table  TYPE STANDARD TABLE OF HRPERNR, "   
lv_unknown_plan_period  TYPE HRPERNR, "   
lv_cyear  TYPE T71C4-PYEAR, "   
lt_error_tab  TYPE STANDARD TABLE OF RPBENERR, "   
lv_no_employees_found  TYPE RPBENERR, "   
lv_cproc  TYPE T71C8-CPROC, "   
lv_no_adjustment_types_found  TYPE T71C8, "   
lv_cplan  TYPE T71CA-CPLAN, "   SPACE
lv_cstat  TYPE P0380-CSTAT, "   SPACE
lv_restrict_pernr  TYPE C, "   SPACE
lv_acode  TYPE C, "   SPACE
lv_reaction  TYPE SY-MSGTY. "   

  CALL FUNCTION 'HRCM_ADMINISTRATION'  "
    EXPORTING
         PLVAR = lv_plvar
         CYEAR = lv_cyear
         CPROC = lv_cproc
         CPLAN = lv_cplan
         CSTAT = lv_cstat
         RESTRICT_PERNR = lv_restrict_pernr
         ACODE = lv_acode
         REACTION = lv_reaction
    TABLES
         PERNR_TABLE = lt_pernr_table
         ERROR_TAB = lt_error_tab
    EXCEPTIONS
        UNKNOWN_PLAN_PERIOD = 1
        NO_EMPLOYEES_FOUND = 2
        NO_ADJUSTMENT_TYPES_FOUND = 3
. " HRCM_ADMINISTRATION




ABAP code using 7.40 inline data declarations to call FM HRCM_ADMINISTRATION

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 PLVAR FROM T778P INTO @DATA(ld_plvar).
 
 
 
"SELECT single PYEAR FROM T71C4 INTO @DATA(ld_cyear).
 
 
 
"SELECT single CPROC FROM T71C8 INTO @DATA(ld_cproc).
 
 
"SELECT single CPLAN FROM T71CA INTO @DATA(ld_cplan).
DATA(ld_cplan) = ' '.
 
"SELECT single CSTAT FROM P0380 INTO @DATA(ld_cstat).
DATA(ld_cstat) = ' '.
 
DATA(ld_restrict_pernr) = ' '.
 
DATA(ld_acode) = ' '.
 
"SELECT single MSGTY FROM SY INTO @DATA(ld_reaction).
 


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!