SAP Function Modules

HR_ECM_HANDLE_NEW_CURRE SAP Function module - Convert currency of compensation data







HR_ECM_HANDLE_NEW_CURRE 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_NEW_CURRE 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_NEW_CURRE - HR ECM HANDLE NEW CURRE





CALL FUNCTION 'HR_ECM_HANDLE_NEW_CURRE' "Convert currency of compensation data
  EXPORTING
*   desired_curre =             " waers         Currency. If initial: Convert back to ee specific currency
    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)
    message_handler =           " if_hrpa_message_handler  HR Master Data: Messages
  IMPORTING
    is_ok =                     " boole_d       Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
  CHANGING
    person_info_tab =           " hrecm00person_info_tab  Table of HRECM00PERSON_INFO (sorted)
*   comp_update_tab =           " hrecm00comp_update_tab  Compensation data changed since last call of process handler
    proc_planned_tab =          " hrecm00proc_info_tab  Table of compensation processes planned in current review
    guideline_tab =             " hrecm00guideline_tab  Table of guideline information (sorted)
    budget_admin_tab =          " hrecm00budget_admin_tab
    .  "  HR_ECM_HANDLE_NEW_CURRE

ABAP code example for Function Module HR_ECM_HANDLE_NEW_CURRE





The ABAP code below is a full code listing to execute function module HR_ECM_HANDLE_NEW_CURRE 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_is_ok  TYPE BOOLE_D .

DATA(ld_person_info_tab) = 'Check type of data required'.
DATA(ld_comp_update_tab) = 'Check type of data required'.
DATA(ld_proc_planned_tab) = 'Check type of data required'.
DATA(ld_guideline_tab) = 'Check type of data required'.
DATA(ld_budget_admin_tab) = 'Check type of data required'.
DATA(ld_desired_curre) = 'Check type of data required'.
DATA(ld_proc_admin_tab) = 'Check type of data required'.
DATA(ld_budget_link_tab) = 'Check type of data required'.
DATA(ld_message_handler) = 'Check type of data required'. . CALL FUNCTION 'HR_ECM_HANDLE_NEW_CURRE' EXPORTING * desired_curre = ld_desired_curre proc_admin_tab = ld_proc_admin_tab budget_link_tab = ld_budget_link_tab message_handler = ld_message_handler IMPORTING is_ok = ld_is_ok CHANGING person_info_tab = ld_person_info_tab * comp_update_tab = ld_comp_update_tab proc_planned_tab = ld_proc_planned_tab guideline_tab = ld_guideline_tab budget_admin_tab = ld_budget_admin_tab . " HR_ECM_HANDLE_NEW_CURRE
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_person_info_tab  TYPE HRECM00PERSON_INFO_TAB ,
ld_is_ok  TYPE BOOLE_D ,
ld_desired_curre  TYPE WAERS ,
ld_comp_update_tab  TYPE HRECM00COMP_UPDATE_TAB ,
ld_proc_admin_tab  TYPE HRECM00PROC_ADMIN_TAB ,
ld_proc_planned_tab  TYPE HRECM00PROC_INFO_TAB ,
ld_budget_link_tab  TYPE HRECM00BUDGET_LINK_TAB ,
ld_guideline_tab  TYPE HRECM00GUIDELINE_TAB ,
ld_message_handler  TYPE IF_HRPA_MESSAGE_HANDLER ,
ld_budget_admin_tab  TYPE HRECM00BUDGET_ADMIN_TAB .

ld_person_info_tab = 'Check type of data required'.
ld_desired_curre = 'Check type of data required'.
ld_comp_update_tab = 'Check type of data required'.
ld_proc_admin_tab = 'Check type of data required'.
ld_proc_planned_tab = 'Check type of data required'.
ld_budget_link_tab = 'Check type of data required'.
ld_guideline_tab = 'Check type of data required'.
ld_message_handler = 'Check type of data required'.
ld_budget_admin_tab = 'Check type of data required'.

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