SAP Function Modules

EM_OBJ_WM_GETLIST SAP Function module







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

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


Pattern for FM EM_OBJ_WM_GETLIST - EM OBJ WM GETLIST





CALL FUNCTION 'EM_OBJ_WM_GETLIST' "
  EXPORTING
    i_int_type = 8              " emeint_type
*   i_maxrecords = 100          " ddshmaxrec
  IMPORTING
    es_return =                 " bapiret2
* TABLES
*   it_sel_lgnum =              " shp_lgnum_range
*   it_sel_lgtyp =              " lwm_monitor_range_lgtyp
*   it_sel_lgber =              " lwm_monitor_range_lgtyp
*   et_wm_descr =               " ems_wm_descr
    .  "  EM_OBJ_WM_GETLIST

ABAP code example for Function Module EM_OBJ_WM_GETLIST





The ABAP code below is a full code listing to execute function module EM_OBJ_WM_GETLIST 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_es_return  TYPE BAPIRET2 ,
it_it_sel_lgnum  TYPE STANDARD TABLE OF SHP_LGNUM_RANGE,"TABLES PARAM
wa_it_sel_lgnum  LIKE LINE OF it_it_sel_lgnum ,
it_it_sel_lgtyp  TYPE STANDARD TABLE OF LWM_MONITOR_RANGE_LGTYP,"TABLES PARAM
wa_it_sel_lgtyp  LIKE LINE OF it_it_sel_lgtyp ,
it_it_sel_lgber  TYPE STANDARD TABLE OF LWM_MONITOR_RANGE_LGTYP,"TABLES PARAM
wa_it_sel_lgber  LIKE LINE OF it_it_sel_lgber ,
it_et_wm_descr  TYPE STANDARD TABLE OF EMS_WM_DESCR,"TABLES PARAM
wa_et_wm_descr  LIKE LINE OF it_et_wm_descr .

DATA(ld_i_int_type) = 'Check type of data required'.
DATA(ld_i_maxrecords) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_sel_lgnum to it_it_sel_lgnum.

"populate fields of struture and append to itab
append wa_it_sel_lgtyp to it_it_sel_lgtyp.

"populate fields of struture and append to itab
append wa_it_sel_lgber to it_it_sel_lgber.

"populate fields of struture and append to itab
append wa_et_wm_descr to it_et_wm_descr. . CALL FUNCTION 'EM_OBJ_WM_GETLIST' EXPORTING i_int_type = ld_i_int_type * i_maxrecords = ld_i_maxrecords IMPORTING es_return = ld_es_return * TABLES * it_sel_lgnum = it_it_sel_lgnum * it_sel_lgtyp = it_it_sel_lgtyp * it_sel_lgber = it_it_sel_lgber * et_wm_descr = it_et_wm_descr . " EM_OBJ_WM_GETLIST
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_es_return  TYPE BAPIRET2 ,
ld_i_int_type  TYPE EMEINT_TYPE ,
it_it_sel_lgnum  TYPE STANDARD TABLE OF SHP_LGNUM_RANGE ,
wa_it_sel_lgnum  LIKE LINE OF it_it_sel_lgnum,
ld_i_maxrecords  TYPE DDSHMAXREC ,
it_it_sel_lgtyp  TYPE STANDARD TABLE OF LWM_MONITOR_RANGE_LGTYP ,
wa_it_sel_lgtyp  LIKE LINE OF it_it_sel_lgtyp,
it_it_sel_lgber  TYPE STANDARD TABLE OF LWM_MONITOR_RANGE_LGTYP ,
wa_it_sel_lgber  LIKE LINE OF it_it_sel_lgber,
it_et_wm_descr  TYPE STANDARD TABLE OF EMS_WM_DESCR ,
wa_et_wm_descr  LIKE LINE OF it_et_wm_descr.

ld_i_int_type = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_sel_lgnum to it_it_sel_lgnum.
ld_i_maxrecords = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_sel_lgtyp to it_it_sel_lgtyp.

"populate fields of struture and append to itab
append wa_it_sel_lgber to it_it_sel_lgber.

"populate fields of struture and append to itab
append wa_et_wm_descr to it_et_wm_descr.

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