SAP Function Modules

HR_ECM_UI_GET_PROC_PREP_DATA SAP Function module - Evaluate process preparation data in format for user interface







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

Associated Function Group: HRECM00UI
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM HR_ECM_UI_GET_PROC_PREP_DATA - HR ECM UI GET PROC PREP DATA





CALL FUNCTION 'HR_ECM_UI_GET_PROC_PREP_DATA' "Evaluate process preparation data in format for user interface
  EXPORTING
    compensation_review =       " ecm_crevi     Compensation Review
    pernr_tab =                 " hrecm00pernr_tab  List of PERNR to Be Processed in Compensation Scenario
*   desired_currency =          " waers         Currency Key
*   x_approval_scenario = ' '   " ecm_xaprv     Indicates if approval step is processed
  IMPORTING
    plan_tab =                  " hrecm00comp_plan_tab  Table of compensation plan data
    budget_tab =                " hrecm00budget_tab  Table of Budget Data Passed to User Interface
    comp_data_tab =             " hrecm00comp_data_tab  Table of Compensation Data Passed to User Interface
    status_tab =                " hrecm00cstat_tab  Table of Possible Status Values and Texts
    frequency_tab =             " hrecm00frequ_tab  Table of Possible Frequency Values and Texts
    message_tab =               " hrecm00adm_message_tab  Table of Messages with Comp. Administration Context
    is_ok =                     " boole_d       Indicates if scenario can be performed at all
    .  "  HR_ECM_UI_GET_PROC_PREP_DATA

ABAP code example for Function Module HR_ECM_UI_GET_PROC_PREP_DATA





The ABAP code below is a full code listing to execute function module HR_ECM_UI_GET_PROC_PREP_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_plan_tab  TYPE HRECM00COMP_PLAN_TAB ,
ld_budget_tab  TYPE HRECM00BUDGET_TAB ,
ld_comp_data_tab  TYPE HRECM00COMP_DATA_TAB ,
ld_status_tab  TYPE HRECM00CSTAT_TAB ,
ld_frequency_tab  TYPE HRECM00FREQU_TAB ,
ld_message_tab  TYPE HRECM00ADM_MESSAGE_TAB ,
ld_is_ok  TYPE BOOLE_D .

DATA(ld_compensation_review) = 'Check type of data required'.
DATA(ld_pernr_tab) = 'Check type of data required'.
DATA(ld_desired_currency) = 'Check type of data required'.
DATA(ld_x_approval_scenario) = 'Check type of data required'. . CALL FUNCTION 'HR_ECM_UI_GET_PROC_PREP_DATA' EXPORTING compensation_review = ld_compensation_review pernr_tab = ld_pernr_tab * desired_currency = ld_desired_currency * x_approval_scenario = ld_x_approval_scenario IMPORTING plan_tab = ld_plan_tab budget_tab = ld_budget_tab comp_data_tab = ld_comp_data_tab status_tab = ld_status_tab frequency_tab = ld_frequency_tab message_tab = ld_message_tab is_ok = ld_is_ok . " HR_ECM_UI_GET_PROC_PREP_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_plan_tab  TYPE HRECM00COMP_PLAN_TAB ,
ld_compensation_review  TYPE ECM_CREVI ,
ld_budget_tab  TYPE HRECM00BUDGET_TAB ,
ld_pernr_tab  TYPE HRECM00PERNR_TAB ,
ld_comp_data_tab  TYPE HRECM00COMP_DATA_TAB ,
ld_desired_currency  TYPE WAERS ,
ld_status_tab  TYPE HRECM00CSTAT_TAB ,
ld_x_approval_scenario  TYPE ECM_XAPRV ,
ld_frequency_tab  TYPE HRECM00FREQU_TAB ,
ld_message_tab  TYPE HRECM00ADM_MESSAGE_TAB ,
ld_is_ok  TYPE BOOLE_D .

ld_compensation_review = 'Check type of data required'.
ld_pernr_tab = 'Check type of data required'.
ld_desired_currency = 'Check type of data required'.
ld_x_approval_scenario = '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_UI_GET_PROC_PREP_DATA or its description.