SAP Function Modules

ISU_DB_EUI_SELECT_IN_RANGE SAP Function module - INTERNAL: Array Select EUI* for Div. Range Areas & Dyn. WHERE Clause







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

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


Pattern for FM ISU_DB_EUI_SELECT_IN_RANGE - ISU DB EUI SELECT IN RANGE





CALL FUNCTION 'ISU_DB_EUI_SELECT_IN_RANGE' "INTERNAL: Array Select EUI* for Div. Range Areas & Dyn. WHERE Clause
  EXPORTING
    x_maxcount =                " regen-maxcount  Maximum Number of Objects to be Selected
*   x_keydate =                 " isu_timesl-abgrenztag  Proration Day
  IMPORTING
    y_count =                   " sy-dbcnt      DB Operations, Number of Table Lines Processed
* TABLES
*   xt_ext_ui =                 " isu_ranges
*   xt_anlage =                 " isu_ranges
*   xt_vstelle =                " isu_ranges
*   xt_sparte =                 " isu_ranges
*   xt_wheretab =               " rsdswhere     Line for WHERE Clauses (Dynamic Selections)
*   yt_euitrans =               " euitrans      Transformation of Internal/External Point of Delivery No.
  EXCEPTIONS
    NOT_QUALIFIED = 1           "
    NOT_FOUND = 2               "               Record does not exist
    SYSTEM_ERROR = 3            "               Other Error
    .  "  ISU_DB_EUI_SELECT_IN_RANGE

ABAP code example for Function Module ISU_DB_EUI_SELECT_IN_RANGE





The ABAP code below is a full code listing to execute function module ISU_DB_EUI_SELECT_IN_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 SY-DBCNT ,
it_xt_ext_ui  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_ext_ui  LIKE LINE OF it_xt_ext_ui ,
it_xt_anlage  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_anlage  LIKE LINE OF it_xt_anlage ,
it_xt_vstelle  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_vstelle  LIKE LINE OF it_xt_vstelle ,
it_xt_sparte  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_sparte  LIKE LINE OF it_xt_sparte ,
it_xt_wheretab  TYPE STANDARD TABLE OF RSDSWHERE,"TABLES PARAM
wa_xt_wheretab  LIKE LINE OF it_xt_wheretab ,
it_yt_euitrans  TYPE STANDARD TABLE OF EUITRANS,"TABLES PARAM
wa_yt_euitrans  LIKE LINE OF it_yt_euitrans .


DATA(ld_x_maxcount) = 123

DATA(ld_x_keydate) = 20210129

"populate fields of struture and append to itab
append wa_xt_ext_ui to it_xt_ext_ui.

"populate fields of struture and append to itab
append wa_xt_anlage to it_xt_anlage.

"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_sparte to it_xt_sparte.

"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_yt_euitrans to it_yt_euitrans. . CALL FUNCTION 'ISU_DB_EUI_SELECT_IN_RANGE' EXPORTING x_maxcount = ld_x_maxcount * x_keydate = ld_x_keydate IMPORTING y_count = ld_y_count * TABLES * xt_ext_ui = it_xt_ext_ui * xt_anlage = it_xt_anlage * xt_vstelle = it_xt_vstelle * xt_sparte = it_xt_sparte * xt_wheretab = it_xt_wheretab * yt_euitrans = it_yt_euitrans EXCEPTIONS NOT_QUALIFIED = 1 NOT_FOUND = 2 SYSTEM_ERROR = 3 . " ISU_DB_EUI_SELECT_IN_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 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_y_count  TYPE SY-DBCNT ,
ld_x_maxcount  TYPE REGEN-MAXCOUNT ,
it_xt_ext_ui  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_ext_ui  LIKE LINE OF it_xt_ext_ui,
ld_x_keydate  TYPE ISU_TIMESL-ABGRENZTAG ,
it_xt_anlage  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_anlage  LIKE LINE OF it_xt_anlage,
it_xt_vstelle  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_vstelle  LIKE LINE OF it_xt_vstelle,
it_xt_sparte  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_sparte  LIKE LINE OF it_xt_sparte,
it_xt_wheretab  TYPE STANDARD TABLE OF RSDSWHERE ,
wa_xt_wheretab  LIKE LINE OF it_xt_wheretab,
it_yt_euitrans  TYPE STANDARD TABLE OF EUITRANS ,
wa_yt_euitrans  LIKE LINE OF it_yt_euitrans.


ld_x_maxcount = 123

"populate fields of struture and append to itab
append wa_xt_ext_ui to it_xt_ext_ui.

ld_x_keydate = 20210129

"populate fields of struture and append to itab
append wa_xt_anlage to it_xt_anlage.

"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_sparte to it_xt_sparte.

"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_yt_euitrans to it_yt_euitrans.

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