SAP Function Modules

ISU_DB_EVBS_SELECT_RANGE SAP Function module - INTERNAL: array select EVBS with range for VSTELLE, HAUS, LAGEVBS







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

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


Pattern for FM ISU_DB_EVBS_SELECT_RANGE - ISU DB EVBS SELECT RANGE





CALL FUNCTION 'ISU_DB_EVBS_SELECT_RANGE' "INTERNAL: array select EVBS with range for VSTELLE, HAUS, LAGEVBS
* EXPORTING
*   x_actual =                  " regen-actual  Indicator: do not read from buffer
*   x_maxrows =                 " regen-maxcount  Maximum number of records to be read
*   x_read_text =               " regen-kennzx  Indicator: read texts from EVBST
*   x_spras =                   " sy-langu      Language for text (default = SY-LANGU)
  IMPORTING
    y_count =                   " regen-maxcount  Number of records read
  TABLES
*   xt_vstelle =                " isu_ranges    Selection option: premise
*   xt_haus =                   " isu_ranges    Selection option: connection object
*   xt_strerg2 =                " isu_ranges    Selection option: location
*   xt_strerg4 =                " isu_ranges
*   xt_hausnum2 =               " isu_ranges
*   xt_floor =                  " isu_ranges
*   xt_roomnumber =             " isu_ranges
*   xt_wheretab =               " rsdswhere     Free selections
*   xt_eigent =                 " isu_ranges    Selection option: owner
    yt_evbs =                   " evbs          Table of records that were read
  EXCEPTIONS
    SYSTEM_ERROR = 1            "               Other error
    NOT_FOUND = 2               "               No records found
    .  "  ISU_DB_EVBS_SELECT_RANGE

ABAP code example for Function Module ISU_DB_EVBS_SELECT_RANGE





The ABAP code below is a full code listing to execute function module ISU_DB_EVBS_SELECT_RANGE 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_y_count  TYPE REGEN-MAXCOUNT ,
it_xt_vstelle  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_vstelle  LIKE LINE OF it_xt_vstelle ,
it_xt_haus  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_haus  LIKE LINE OF it_xt_haus ,
it_xt_strerg2  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_strerg2  LIKE LINE OF it_xt_strerg2 ,
it_xt_strerg4  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_strerg4  LIKE LINE OF it_xt_strerg4 ,
it_xt_hausnum2  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_hausnum2  LIKE LINE OF it_xt_hausnum2 ,
it_xt_floor  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_floor  LIKE LINE OF it_xt_floor ,
it_xt_roomnumber  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_roomnumber  LIKE LINE OF it_xt_roomnumber ,
it_xt_wheretab  TYPE STANDARD TABLE OF RSDSWHERE,"TABLES PARAM
wa_xt_wheretab  LIKE LINE OF it_xt_wheretab ,
it_xt_eigent  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_eigent  LIKE LINE OF it_xt_eigent ,
it_yt_evbs  TYPE STANDARD TABLE OF EVBS,"TABLES PARAM
wa_yt_evbs  LIKE LINE OF it_yt_evbs .


DATA(ld_x_actual) = some text here

DATA(ld_x_maxrows) = 123

DATA(ld_x_read_text) = some text here
DATA(ld_x_spras) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_vstelle to it_xt_vstelle.

"populate fields of struture and append to itab
append wa_xt_haus to it_xt_haus.

"populate fields of struture and append to itab
append wa_xt_strerg2 to it_xt_strerg2.

"populate fields of struture and append to itab
append wa_xt_strerg4 to it_xt_strerg4.

"populate fields of struture and append to itab
append wa_xt_hausnum2 to it_xt_hausnum2.

"populate fields of struture and append to itab
append wa_xt_floor to it_xt_floor.

"populate fields of struture and append to itab
append wa_xt_roomnumber to it_xt_roomnumber.

"populate fields of struture and append to itab
append wa_xt_wheretab to it_xt_wheretab.

"populate fields of struture and append to itab
append wa_xt_eigent to it_xt_eigent.

"populate fields of struture and append to itab
append wa_yt_evbs to it_yt_evbs. . CALL FUNCTION 'ISU_DB_EVBS_SELECT_RANGE' * EXPORTING * x_actual = ld_x_actual * x_maxrows = ld_x_maxrows * x_read_text = ld_x_read_text * x_spras = ld_x_spras IMPORTING y_count = ld_y_count TABLES * xt_vstelle = it_xt_vstelle * xt_haus = it_xt_haus * xt_strerg2 = it_xt_strerg2 * xt_strerg4 = it_xt_strerg4 * xt_hausnum2 = it_xt_hausnum2 * xt_floor = it_xt_floor * xt_roomnumber = it_xt_roomnumber * xt_wheretab = it_xt_wheretab * xt_eigent = it_xt_eigent yt_evbs = it_yt_evbs EXCEPTIONS SYSTEM_ERROR = 1 NOT_FOUND = 2 . " ISU_DB_EVBS_SELECT_RANGE
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 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_y_count  TYPE REGEN-MAXCOUNT ,
ld_x_actual  TYPE REGEN-ACTUAL ,
it_xt_vstelle  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_vstelle  LIKE LINE OF it_xt_vstelle,
ld_x_maxrows  TYPE REGEN-MAXCOUNT ,
it_xt_haus  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_haus  LIKE LINE OF it_xt_haus,
ld_x_read_text  TYPE REGEN-KENNZX ,
it_xt_strerg2  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_strerg2  LIKE LINE OF it_xt_strerg2,
ld_x_spras  TYPE SY-LANGU ,
it_xt_strerg4  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_strerg4  LIKE LINE OF it_xt_strerg4,
it_xt_hausnum2  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_hausnum2  LIKE LINE OF it_xt_hausnum2,
it_xt_floor  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_floor  LIKE LINE OF it_xt_floor,
it_xt_roomnumber  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_roomnumber  LIKE LINE OF it_xt_roomnumber,
it_xt_wheretab  TYPE STANDARD TABLE OF RSDSWHERE ,
wa_xt_wheretab  LIKE LINE OF it_xt_wheretab,
it_xt_eigent  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_eigent  LIKE LINE OF it_xt_eigent,
it_yt_evbs  TYPE STANDARD TABLE OF EVBS ,
wa_yt_evbs  LIKE LINE OF it_yt_evbs.


ld_x_actual = some text here

"populate fields of struture and append to itab
append wa_xt_vstelle to it_xt_vstelle.

ld_x_maxrows = 123

"populate fields of struture and append to itab
append wa_xt_haus to it_xt_haus.

ld_x_read_text = some text here

"populate fields of struture and append to itab
append wa_xt_strerg2 to it_xt_strerg2.
ld_x_spras = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_strerg4 to it_xt_strerg4.

"populate fields of struture and append to itab
append wa_xt_hausnum2 to it_xt_hausnum2.

"populate fields of struture and append to itab
append wa_xt_floor to it_xt_floor.

"populate fields of struture and append to itab
append wa_xt_roomnumber to it_xt_roomnumber.

"populate fields of struture and append to itab
append wa_xt_wheretab to it_xt_wheretab.

"populate fields of struture and append to itab
append wa_xt_eigent to it_xt_eigent.

"populate fields of struture and append to itab
append wa_yt_evbs to it_yt_evbs.

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