SAP Function Modules

HRCM_MULTINFO_CREATE SAP Function module







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

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


Pattern for FM HRCM_MULTINFO_CREATE - HRCM MULTINFO CREATE





CALL FUNCTION 'HRCM_MULTINFO_CREATE' "
  EXPORTING
    scenario =                  " hromscen
    class_key =                 " omclasskey
*   overview_service =          " omservice
    main_object =               " objec
    relat_object =              " objec
*   additional_data =           " omadddata
    date =                      " sy-datum
    fuzzy_begda =               " sy-datum
    fuzzy_endda =               " sy-datum
    changemode =                " omactmode
  IMPORTING
    dynnr =                     " sy-dynnr
    repid =                     " sy-repid
  EXCEPTIONS
    OBJECT_ALREADY_EXISTS = 1   "
    CNTL_ERROR = 2              "
    .  "  HRCM_MULTINFO_CREATE

ABAP code example for Function Module HRCM_MULTINFO_CREATE





The ABAP code below is a full code listing to execute function module HRCM_MULTINFO_CREATE 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_dynnr  TYPE SY-DYNNR ,
ld_repid  TYPE SY-REPID .

DATA(ld_scenario) = 'Check type of data required'.
DATA(ld_class_key) = 'Check type of data required'.
DATA(ld_overview_service) = 'Check type of data required'.
DATA(ld_main_object) = 'Check type of data required'.
DATA(ld_relat_object) = 'Check type of data required'.
DATA(ld_additional_data) = 'Check type of data required'.
DATA(ld_date) = '20210129'.
DATA(ld_fuzzy_begda) = '20210129'.
DATA(ld_fuzzy_endda) = '20210129'.
DATA(ld_changemode) = '20210129'. . CALL FUNCTION 'HRCM_MULTINFO_CREATE' EXPORTING scenario = ld_scenario class_key = ld_class_key * overview_service = ld_overview_service main_object = ld_main_object relat_object = ld_relat_object * additional_data = ld_additional_data date = ld_date fuzzy_begda = ld_fuzzy_begda fuzzy_endda = ld_fuzzy_endda changemode = ld_changemode IMPORTING dynnr = ld_dynnr repid = ld_repid EXCEPTIONS OBJECT_ALREADY_EXISTS = 1 CNTL_ERROR = 2 . " HRCM_MULTINFO_CREATE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_dynnr  TYPE SY-DYNNR ,
ld_scenario  TYPE HROMSCEN ,
ld_repid  TYPE SY-REPID ,
ld_class_key  TYPE OMCLASSKEY ,
ld_overview_service  TYPE OMSERVICE ,
ld_main_object  TYPE OBJEC ,
ld_relat_object  TYPE OBJEC ,
ld_additional_data  TYPE OMADDDATA ,
ld_date  TYPE SY-DATUM ,
ld_fuzzy_begda  TYPE SY-DATUM ,
ld_fuzzy_endda  TYPE SY-DATUM ,
ld_changemode  TYPE OMACTMODE .

ld_scenario = '20210129'.
ld_class_key = '20210129'.
ld_overview_service = '20210129'.
ld_main_object = '20210129'.
ld_relat_object = '20210129'.
ld_additional_data = '20210129'.
ld_date = '20210129'.
ld_fuzzy_begda = '20210129'.
ld_fuzzy_endda = '20210129'.
ld_changemode = '20210129'.

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