SAP Function Modules

OM_GM_CALL_DETAIL_FUNCTION SAP Function module







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

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


Pattern for FM OM_GM_CALL_DETAIL_FUNCTION - OM GM CALL DETAIL FUNCTION





CALL FUNCTION 'OM_GM_CALL_DETAIL_FUNCTION' "
  EXPORTING
    detail_object =             " omclasskey
    call_function =             " char40
*   scenario =                  " hromscen
*   main_object =               " objec
*   relat_object =              " objec
*   date =                      " sy-datum
*   fuzzy_begda =               " sy-datum
*   fuzzy_endda =               " sy-datum
*   changemode =                " omactmode
*   ok_code =                   " sy-ucomm      Screens, Function Code Triggered by PAI
  IMPORTING
    leave_screen =              " flag          General Flag
  TABLES
    detail_interface =          " omdetint
* CHANGING
*   detail_tabtype =            " hrtabtype
*   dynnr =                     " sy-dynnr
*   repid =                     " sy-repid
    .  "  OM_GM_CALL_DETAIL_FUNCTION

ABAP code example for Function Module OM_GM_CALL_DETAIL_FUNCTION





The ABAP code below is a full code listing to execute function module OM_GM_CALL_DETAIL_FUNCTION 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_leave_screen  TYPE FLAG ,
it_detail_interface  TYPE STANDARD TABLE OF OMDETINT,"TABLES PARAM
wa_detail_interface  LIKE LINE OF it_detail_interface .

DATA(ld_detail_tabtype) = 'Check type of data required'.
DATA(ld_dynnr) = 'some text here'.
DATA(ld_repid) = 'some text here'.
DATA(ld_detail_object) = 'some text here'.
DATA(ld_call_function) = 'some text here'.
DATA(ld_scenario) = 'some text here'.
DATA(ld_main_object) = 'some text here'.
DATA(ld_relat_object) = 'some text here'.
DATA(ld_date) = '20210129'.
DATA(ld_fuzzy_begda) = '20210129'.
DATA(ld_fuzzy_endda) = '20210129'.
DATA(ld_changemode) = '20210129'.
DATA(ld_ok_code) = 'some text here'.

"populate fields of struture and append to itab
append wa_detail_interface to it_detail_interface. . CALL FUNCTION 'OM_GM_CALL_DETAIL_FUNCTION' EXPORTING detail_object = ld_detail_object call_function = ld_call_function * scenario = ld_scenario * main_object = ld_main_object * relat_object = ld_relat_object * date = ld_date * fuzzy_begda = ld_fuzzy_begda * fuzzy_endda = ld_fuzzy_endda * changemode = ld_changemode * ok_code = ld_ok_code IMPORTING leave_screen = ld_leave_screen TABLES detail_interface = it_detail_interface * CHANGING * detail_tabtype = ld_detail_tabtype * dynnr = ld_dynnr * repid = ld_repid . " OM_GM_CALL_DETAIL_FUNCTION
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_detail_tabtype  TYPE HRTABTYPE ,
ld_leave_screen  TYPE FLAG ,
ld_detail_object  TYPE OMCLASSKEY ,
it_detail_interface  TYPE STANDARD TABLE OF OMDETINT ,
wa_detail_interface  LIKE LINE OF it_detail_interface,
ld_dynnr  TYPE SY-DYNNR ,
ld_call_function  TYPE CHAR40 ,
ld_repid  TYPE SY-REPID ,
ld_scenario  TYPE HROMSCEN ,
ld_main_object  TYPE OBJEC ,
ld_relat_object  TYPE OBJEC ,
ld_date  TYPE SY-DATUM ,
ld_fuzzy_begda  TYPE SY-DATUM ,
ld_fuzzy_endda  TYPE SY-DATUM ,
ld_changemode  TYPE OMACTMODE ,
ld_ok_code  TYPE SY-UCOMM .

ld_detail_tabtype = 'some text here'.
ld_detail_object = 'some text here'.

"populate fields of struture and append to itab
append wa_detail_interface to it_detail_interface.
ld_dynnr = 'some text here'.
ld_call_function = 'some text here'.
ld_repid = 'some text here'.
ld_scenario = 'some text here'.
ld_main_object = 'some text here'.
ld_relat_object = 'some text here'.
ld_date = '20210129'.
ld_fuzzy_begda = '20210129'.
ld_fuzzy_endda = '20210129'.
ld_changemode = '20210129'.
ld_ok_code = '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 OM_GM_CALL_DETAIL_FUNCTION or its description.