SAP Function Modules

FI_ITEMS_LDB_SELECTIONS SAP Function module







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

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


Pattern for FM FI_ITEMS_LDB_SELECTIONS - FI ITEMS LDB SELECTIONS





CALL FUNCTION 'FI_ITEMS_LDB_SELECTIONS' "
  EXPORTING
    radio_open =                " c             Open Items
    radio_cleared =             " c             Cleared Items
    radio_all =                 " c             All Items
    stida =                     " sy-datum      Date and Time, Current (Application Server) Date
  IMPORTING
    opopt =                     " c
    apopt =                     " c
    stida_ret =                 " sy-datum
  TABLES
    augdt_in =                  " range_date    Structure of a Range Table for a Date
    budat_in =                  " range_date    Structure of a Range Table for a Date
    augdt_ret =                 " range_date    Structure of a Range Table for a Date
    budat_ret =                 " range_date    Structure of a Range Table for a Date
  EXCEPTIONS
    RADIO_ERROR = 1             "
    .  "  FI_ITEMS_LDB_SELECTIONS

ABAP code example for Function Module FI_ITEMS_LDB_SELECTIONS





The ABAP code below is a full code listing to execute function module FI_ITEMS_LDB_SELECTIONS 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_opopt  TYPE C ,
ld_apopt  TYPE C ,
ld_stida_ret  TYPE SY-DATUM ,
it_augdt_in  TYPE STANDARD TABLE OF RANGE_DATE,"TABLES PARAM
wa_augdt_in  LIKE LINE OF it_augdt_in ,
it_budat_in  TYPE STANDARD TABLE OF RANGE_DATE,"TABLES PARAM
wa_budat_in  LIKE LINE OF it_budat_in ,
it_augdt_ret  TYPE STANDARD TABLE OF RANGE_DATE,"TABLES PARAM
wa_augdt_ret  LIKE LINE OF it_augdt_ret ,
it_budat_ret  TYPE STANDARD TABLE OF RANGE_DATE,"TABLES PARAM
wa_budat_ret  LIKE LINE OF it_budat_ret .

DATA(ld_radio_open) = 'Check type of data required'.
DATA(ld_radio_cleared) = 'Check type of data required'.
DATA(ld_radio_all) = 'Check type of data required'.
DATA(ld_stida) = '20210129'.

"populate fields of struture and append to itab
append wa_augdt_in to it_augdt_in.

"populate fields of struture and append to itab
append wa_budat_in to it_budat_in.

"populate fields of struture and append to itab
append wa_augdt_ret to it_augdt_ret.

"populate fields of struture and append to itab
append wa_budat_ret to it_budat_ret. . CALL FUNCTION 'FI_ITEMS_LDB_SELECTIONS' EXPORTING radio_open = ld_radio_open radio_cleared = ld_radio_cleared radio_all = ld_radio_all stida = ld_stida IMPORTING opopt = ld_opopt apopt = ld_apopt stida_ret = ld_stida_ret TABLES augdt_in = it_augdt_in budat_in = it_budat_in augdt_ret = it_augdt_ret budat_ret = it_budat_ret EXCEPTIONS RADIO_ERROR = 1 . " FI_ITEMS_LDB_SELECTIONS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_opopt  TYPE C ,
ld_radio_open  TYPE C ,
it_augdt_in  TYPE STANDARD TABLE OF RANGE_DATE ,
wa_augdt_in  LIKE LINE OF it_augdt_in,
ld_apopt  TYPE C ,
ld_radio_cleared  TYPE C ,
it_budat_in  TYPE STANDARD TABLE OF RANGE_DATE ,
wa_budat_in  LIKE LINE OF it_budat_in,
ld_stida_ret  TYPE SY-DATUM ,
ld_radio_all  TYPE C ,
it_augdt_ret  TYPE STANDARD TABLE OF RANGE_DATE ,
wa_augdt_ret  LIKE LINE OF it_augdt_ret,
ld_stida  TYPE SY-DATUM ,
it_budat_ret  TYPE STANDARD TABLE OF RANGE_DATE ,
wa_budat_ret  LIKE LINE OF it_budat_ret.

ld_radio_open = '20210129'.

"populate fields of struture and append to itab
append wa_augdt_in to it_augdt_in.
ld_radio_cleared = '20210129'.

"populate fields of struture and append to itab
append wa_budat_in to it_budat_in.
ld_radio_all = '20210129'.

"populate fields of struture and append to itab
append wa_augdt_ret to it_augdt_ret.
ld_stida = '20210129'.

"populate fields of struture and append to itab
append wa_budat_ret to it_budat_ret.

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