SAP Function Modules

LXE_LOG_SELECTION SAP Function module







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

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


Pattern for FM LXE_LOG_SELECTION - LXE LOG SELECTION





CALL FUNCTION 'LXE_LOG_SELECTION' "
  EXPORTING
    custmnr = '999999'          " lxecustmnr
    targlng = 'enUS'            " lxeisolang
*   objtype =                   " lxeobjtype
*   uname =                     " syuname
*   start_date = '19000101'     " sydatum
*   end_date = SY-DATUM         " sydatum
*   start_time =                " syuzeit
*   end_time =                  " syuzeit
* TABLES
*   et_lxe_log =                " lxe_log
*   et_e071 =                   " e071
*   et_e071k =                  " e071k
*   et_lxe_log_err =            " lxe_log
  EXCEPTIONS
    UNKNOWN_LANGUAGE = 1        "
    UNKNOWN_CUSTOMER = 2        "
    NO_DATA_FOUND = 3           "
    .  "  LXE_LOG_SELECTION

ABAP code example for Function Module LXE_LOG_SELECTION





The ABAP code below is a full code listing to execute function module LXE_LOG_SELECTION 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_lxe_log  TYPE STANDARD TABLE OF LXE_LOG,"TABLES PARAM
wa_et_lxe_log  LIKE LINE OF it_et_lxe_log ,
it_et_e071  TYPE STANDARD TABLE OF E071,"TABLES PARAM
wa_et_e071  LIKE LINE OF it_et_e071 ,
it_et_e071k  TYPE STANDARD TABLE OF E071K,"TABLES PARAM
wa_et_e071k  LIKE LINE OF it_et_e071k ,
it_et_lxe_log_err  TYPE STANDARD TABLE OF LXE_LOG,"TABLES PARAM
wa_et_lxe_log_err  LIKE LINE OF it_et_lxe_log_err .

DATA(ld_custmnr) = 'Check type of data required'.
DATA(ld_targlng) = 'Check type of data required'.
DATA(ld_objtype) = 'Check type of data required'.
DATA(ld_uname) = 'some text here'.
DATA(ld_start_date) = '20210129'.
DATA(ld_end_date) = '20210129'.
DATA(ld_start_time) = 'Check type of data required'.
DATA(ld_end_time) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_lxe_log to it_et_lxe_log.

"populate fields of struture and append to itab
append wa_et_e071 to it_et_e071.

"populate fields of struture and append to itab
append wa_et_e071k to it_et_e071k.

"populate fields of struture and append to itab
append wa_et_lxe_log_err to it_et_lxe_log_err. . CALL FUNCTION 'LXE_LOG_SELECTION' EXPORTING custmnr = ld_custmnr targlng = ld_targlng * objtype = ld_objtype * uname = ld_uname * start_date = ld_start_date * end_date = ld_end_date * start_time = ld_start_time * end_time = ld_end_time * TABLES * et_lxe_log = it_et_lxe_log * et_e071 = it_et_e071 * et_e071k = it_et_e071k * et_lxe_log_err = it_et_lxe_log_err EXCEPTIONS UNKNOWN_LANGUAGE = 1 UNKNOWN_CUSTOMER = 2 NO_DATA_FOUND = 3 . " LXE_LOG_SELECTION
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 ELSEIF SY-SUBRC EQ 3. "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_custmnr  TYPE LXECUSTMNR ,
it_et_lxe_log  TYPE STANDARD TABLE OF LXE_LOG ,
wa_et_lxe_log  LIKE LINE OF it_et_lxe_log,
ld_targlng  TYPE LXEISOLANG ,
it_et_e071  TYPE STANDARD TABLE OF E071 ,
wa_et_e071  LIKE LINE OF it_et_e071,
ld_objtype  TYPE LXEOBJTYPE ,
it_et_e071k  TYPE STANDARD TABLE OF E071K ,
wa_et_e071k  LIKE LINE OF it_et_e071k,
ld_uname  TYPE SYUNAME ,
it_et_lxe_log_err  TYPE STANDARD TABLE OF LXE_LOG ,
wa_et_lxe_log_err  LIKE LINE OF it_et_lxe_log_err,
ld_start_date  TYPE SYDATUM ,
ld_end_date  TYPE SYDATUM ,
ld_start_time  TYPE SYUZEIT ,
ld_end_time  TYPE SYUZEIT .

ld_custmnr = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_lxe_log to it_et_lxe_log.
ld_targlng = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_e071 to it_et_e071.
ld_objtype = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_e071k to it_et_e071k.
ld_uname = 'some text here'.

"populate fields of struture and append to itab
append wa_et_lxe_log_err to it_et_lxe_log_err.
ld_start_date = '20210129'.
ld_end_date = '20210129'.
ld_start_time = 'Check type of data required'.
ld_end_time = '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 LXE_LOG_SELECTION or its description.