SAP Function Modules

HRCM_INIT_NF_OBJECTMANAGER SAP Function module







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

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


Pattern for FM HRCM_INIT_NF_OBJECTMANAGER - HRCM INIT NF OBJECTMANAGER





CALL FUNCTION 'HRCM_INIT_NF_OBJECTMANAGER' "
  EXPORTING
    scenario =                  " omobjscen
    planversion =               " plvar
    transaction_start =         " flag
    changemode =                " omactmode
    timedependent =             " hromtimefl
    user_settings_exist =       " flag
  IMPORTING
    data_valid =                " flag
  TABLES
    search_criteria =           " omseaattab
    st_objects =                " objec_t
    st_structure =              " struc_t
  CHANGING
    lpnode =                    " omseanode
    searchtool =                " seoclsname
    show_launchpad =            " flag
    .  "  HRCM_INIT_NF_OBJECTMANAGER

ABAP code example for Function Module HRCM_INIT_NF_OBJECTMANAGER





The ABAP code below is a full code listing to execute function module HRCM_INIT_NF_OBJECTMANAGER 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_data_valid  TYPE FLAG ,
it_search_criteria  TYPE STANDARD TABLE OF OMSEAATTAB,"TABLES PARAM
wa_search_criteria  LIKE LINE OF it_search_criteria ,
it_st_objects  TYPE STANDARD TABLE OF OBJEC_T,"TABLES PARAM
wa_st_objects  LIKE LINE OF it_st_objects ,
it_st_structure  TYPE STANDARD TABLE OF STRUC_T,"TABLES PARAM
wa_st_structure  LIKE LINE OF it_st_structure .

DATA(ld_lpnode) = 'Check type of data required'.
DATA(ld_searchtool) = 'Check type of data required'.
DATA(ld_show_launchpad) = 'Check type of data required'.
DATA(ld_scenario) = 'Check type of data required'.
DATA(ld_planversion) = 'Check type of data required'.
DATA(ld_transaction_start) = 'Check type of data required'.
DATA(ld_changemode) = 'Check type of data required'.
DATA(ld_timedependent) = 'Check type of data required'.
DATA(ld_user_settings_exist) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_search_criteria to it_search_criteria.

"populate fields of struture and append to itab
append wa_st_objects to it_st_objects.

"populate fields of struture and append to itab
append wa_st_structure to it_st_structure. . CALL FUNCTION 'HRCM_INIT_NF_OBJECTMANAGER' EXPORTING scenario = ld_scenario planversion = ld_planversion transaction_start = ld_transaction_start changemode = ld_changemode timedependent = ld_timedependent user_settings_exist = ld_user_settings_exist IMPORTING data_valid = ld_data_valid TABLES search_criteria = it_search_criteria st_objects = it_st_objects st_structure = it_st_structure CHANGING lpnode = ld_lpnode searchtool = ld_searchtool show_launchpad = ld_show_launchpad . " HRCM_INIT_NF_OBJECTMANAGER
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_lpnode  TYPE OMSEANODE ,
ld_data_valid  TYPE FLAG ,
ld_scenario  TYPE OMOBJSCEN ,
it_search_criteria  TYPE STANDARD TABLE OF OMSEAATTAB ,
wa_search_criteria  LIKE LINE OF it_search_criteria,
ld_searchtool  TYPE SEOCLSNAME ,
ld_planversion  TYPE PLVAR ,
it_st_objects  TYPE STANDARD TABLE OF OBJEC_T ,
wa_st_objects  LIKE LINE OF it_st_objects,
ld_show_launchpad  TYPE FLAG ,
ld_transaction_start  TYPE FLAG ,
it_st_structure  TYPE STANDARD TABLE OF STRUC_T ,
wa_st_structure  LIKE LINE OF it_st_structure,
ld_changemode  TYPE OMACTMODE ,
ld_timedependent  TYPE HROMTIMEFL ,
ld_user_settings_exist  TYPE FLAG .

ld_lpnode = 'Check type of data required'.
ld_scenario = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_search_criteria to it_search_criteria.
ld_searchtool = 'Check type of data required'.
ld_planversion = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_st_objects to it_st_objects.
ld_show_launchpad = 'Check type of data required'.
ld_transaction_start = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_st_structure to it_st_structure.
ld_changemode = 'Check type of data required'.
ld_timedependent = 'Check type of data required'.
ld_user_settings_exist = '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 HRCM_INIT_NF_OBJECTMANAGER or its description.