SAP Function Modules

HR_ECM_HANDLE_PROCESS_DATA SAP Function module - "PAI" for Compensation administration (MSS)







HR_ECM_HANDLE_PROCESS_DATA 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 HR_ECM_HANDLE_PROCESS_DATA into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: HRECM00HANDLER
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM HR_ECM_HANDLE_PROCESS_DATA - HR ECM HANDLE PROCESS DATA





CALL FUNCTION 'HR_ECM_HANDLE_PROCESS_DATA' ""PAI" for Compensation administration (MSS)
  EXPORTING
    pernr_selected_tab =        " hrecm00pernr_selected_tab  Table of Selected Persons in Compensation Scenario
    comp_update_tab =           " hrecm00comp_update_tab  Table of HRECM00COMP_UPDATE (sorted by PERNR)
    function =                  " syucomm       Screens, function code triggered by PAI
*   desired_curre =             " waers         Currency Key
    message_handler =           " if_hrpa_message_handler  HR Master Data: Messages
  IMPORTING
    proc_planned_tab =          " hrecm00proc_info_tab  Table of compensation processes planned in current review
    proc_admin_tab =            " hrecm00proc_admin_tab  Table of administration data for compensation processes
    budget_link_tab =           " hrecm00budget_link_tab  Table of links between employee and budget unit (sorted)
    budget_admin_tab =          " hrecm00budget_admin_tab  Table of budget data for Compensation Administration
    plan_tab =                  " hrecm00comp_plan_tab  Table of compensation plan data
    xexit_without_confirm =     " boole_d       Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
    is_ok =                     " boole_d       Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
    .  "  HR_ECM_HANDLE_PROCESS_DATA

ABAP code example for Function Module HR_ECM_HANDLE_PROCESS_DATA





The ABAP code below is a full code listing to execute function module HR_ECM_HANDLE_PROCESS_DATA 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_proc_planned_tab  TYPE HRECM00PROC_INFO_TAB ,
ld_proc_admin_tab  TYPE HRECM00PROC_ADMIN_TAB ,
ld_budget_link_tab  TYPE HRECM00BUDGET_LINK_TAB ,
ld_budget_admin_tab  TYPE HRECM00BUDGET_ADMIN_TAB ,
ld_plan_tab  TYPE HRECM00COMP_PLAN_TAB ,
ld_xexit_without_confirm  TYPE BOOLE_D ,
ld_is_ok  TYPE BOOLE_D .

DATA(ld_pernr_selected_tab) = 'Check type of data required'.
DATA(ld_comp_update_tab) = 'Check type of data required'.
DATA(ld_function) = 'some text here'.
DATA(ld_desired_curre) = 'some text here'.
DATA(ld_message_handler) = 'some text here'. . CALL FUNCTION 'HR_ECM_HANDLE_PROCESS_DATA' EXPORTING pernr_selected_tab = ld_pernr_selected_tab comp_update_tab = ld_comp_update_tab function = ld_function * desired_curre = ld_desired_curre message_handler = ld_message_handler IMPORTING proc_planned_tab = ld_proc_planned_tab proc_admin_tab = ld_proc_admin_tab budget_link_tab = ld_budget_link_tab budget_admin_tab = ld_budget_admin_tab plan_tab = ld_plan_tab xexit_without_confirm = ld_xexit_without_confirm is_ok = ld_is_ok . " HR_ECM_HANDLE_PROCESS_DATA
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_proc_planned_tab  TYPE HRECM00PROC_INFO_TAB ,
ld_pernr_selected_tab  TYPE HRECM00PERNR_SELECTED_TAB ,
ld_proc_admin_tab  TYPE HRECM00PROC_ADMIN_TAB ,
ld_comp_update_tab  TYPE HRECM00COMP_UPDATE_TAB ,
ld_budget_link_tab  TYPE HRECM00BUDGET_LINK_TAB ,
ld_function  TYPE SYUCOMM ,
ld_budget_admin_tab  TYPE HRECM00BUDGET_ADMIN_TAB ,
ld_desired_curre  TYPE WAERS ,
ld_plan_tab  TYPE HRECM00COMP_PLAN_TAB ,
ld_message_handler  TYPE IF_HRPA_MESSAGE_HANDLER ,
ld_xexit_without_confirm  TYPE BOOLE_D ,
ld_is_ok  TYPE BOOLE_D .

ld_pernr_selected_tab = 'some text here'.
ld_comp_update_tab = 'some text here'.
ld_function = 'some text here'.
ld_desired_curre = 'some text here'.
ld_message_handler = 'some text here'.

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 HR_ECM_HANDLE_PROCESS_DATA or its description.