SAP Function Modules

EM_GET_REQUESTS_IN_SYSTEM SAP Function module







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

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


Pattern for FM EM_GET_REQUESTS_IN_SYSTEM - EM GET REQUESTS IN SYSTEM





CALL FUNCTION 'EM_GET_REQUESTS_IN_SYSTEM' "
  EXPORTING
    iv_startdate =              " e070-as4date
*   iv_starttime = '000000'     " e070-as4time
    iv_enddate =                " e070-as4date
*   iv_endtime = '000000'       " e070-as4time
    iv_sids =                   " mergeparam-mcomment
  TABLES
    et_e070 =                   " e070
    et_e07t =                   " e07t
    .  "  EM_GET_REQUESTS_IN_SYSTEM

ABAP code example for Function Module EM_GET_REQUESTS_IN_SYSTEM





The ABAP code below is a full code listing to execute function module EM_GET_REQUESTS_IN_SYSTEM 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:
it_et_e070  TYPE STANDARD TABLE OF E070,"TABLES PARAM
wa_et_e070  LIKE LINE OF it_et_e070 ,
it_et_e07t  TYPE STANDARD TABLE OF E07T,"TABLES PARAM
wa_et_e07t  LIKE LINE OF it_et_e07t .


SELECT single AS4DATE
FROM E070
INTO @DATA(ld_iv_startdate).


SELECT single AS4TIME
FROM E070
INTO @DATA(ld_iv_starttime).


SELECT single AS4DATE
FROM E070
INTO @DATA(ld_iv_enddate).


SELECT single AS4TIME
FROM E070
INTO @DATA(ld_iv_endtime).


DATA(ld_iv_sids) = some text here

"populate fields of struture and append to itab
append wa_et_e070 to it_et_e070.

"populate fields of struture and append to itab
append wa_et_e07t to it_et_e07t. . CALL FUNCTION 'EM_GET_REQUESTS_IN_SYSTEM' EXPORTING iv_startdate = ld_iv_startdate * iv_starttime = ld_iv_starttime iv_enddate = ld_iv_enddate * iv_endtime = ld_iv_endtime iv_sids = ld_iv_sids TABLES et_e070 = it_et_e070 et_e07t = it_et_e07t . " EM_GET_REQUESTS_IN_SYSTEM
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_iv_startdate  TYPE E070-AS4DATE ,
it_et_e070  TYPE STANDARD TABLE OF E070 ,
wa_et_e070  LIKE LINE OF it_et_e070,
ld_iv_starttime  TYPE E070-AS4TIME ,
it_et_e07t  TYPE STANDARD TABLE OF E07T ,
wa_et_e07t  LIKE LINE OF it_et_e07t,
ld_iv_enddate  TYPE E070-AS4DATE ,
ld_iv_endtime  TYPE E070-AS4TIME ,
ld_iv_sids  TYPE MERGEPARAM-MCOMMENT .


SELECT single AS4DATE
FROM E070
INTO ld_iv_startdate.


"populate fields of struture and append to itab
append wa_et_e070 to it_et_e070.

SELECT single AS4TIME
FROM E070
INTO ld_iv_starttime.


"populate fields of struture and append to itab
append wa_et_e07t to it_et_e07t.

SELECT single AS4DATE
FROM E070
INTO ld_iv_enddate.


SELECT single AS4TIME
FROM E070
INTO ld_iv_endtime.


ld_iv_sids = 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 EM_GET_REQUESTS_IN_SYSTEM or its description.