SAP Function Modules

ISU_DB_EGPL_SELECT_RANGE SAP Function module - INTERNAL: Array Select EGPL mith Range HAUS, VSTELLE, STORT







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

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


Pattern for FM ISU_DB_EGPL_SELECT_RANGE - ISU DB EGPL SELECT RANGE





CALL FUNCTION 'ISU_DB_EGPL_SELECT_RANGE' "INTERNAL: Array Select EGPL mith Range HAUS, VSTELLE, STORT
* EXPORTING
*   x_actual =                  " regen-actual  Indicator: do not read from buffer
*   x_maxrows =                 " regen-maxcount
*   x_fill_stortzus =           " regen-kennzx
*   x_fill_pltxt =              " regen-kennzx
*   x_fill_alltxt =             " regen-kennzx
*   x_spras =                   " sy-langu
  IMPORTING
    y_count =                   " regen-maxcount  Number of records read
  TABLES
*   xt_devloc =                 " isu_ranges
*   xt_haus =                   " isu_ranges
*   xt_stort =                  " isu_ranges
*   xt_wheretab =               " rsdswhere     Custom Selections
    yt_egpl =                   " egpl
  EXCEPTIONS
    SYSTEM_ERROR = 1            "               Other Error
    NOT_FOUND = 2               "               No Record Found
    .  "  ISU_DB_EGPL_SELECT_RANGE

ABAP code example for Function Module ISU_DB_EGPL_SELECT_RANGE





The ABAP code below is a full code listing to execute function module ISU_DB_EGPL_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_devloc  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_devloc  LIKE LINE OF it_xt_devloc ,
it_xt_haus  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_haus  LIKE LINE OF it_xt_haus ,
it_xt_stort  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_stort  LIKE LINE OF it_xt_stort ,
it_xt_wheretab  TYPE STANDARD TABLE OF RSDSWHERE,"TABLES PARAM
wa_xt_wheretab  LIKE LINE OF it_xt_wheretab ,
it_yt_egpl  TYPE STANDARD TABLE OF EGPL,"TABLES PARAM
wa_yt_egpl  LIKE LINE OF it_yt_egpl .


DATA(ld_x_actual) = some text here

DATA(ld_x_maxrows) = 123

DATA(ld_x_fill_stortzus) = some text here

DATA(ld_x_fill_pltxt) = some text here

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

"populate fields of struture and append to itab
append wa_xt_devloc to it_xt_devloc.

"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_stort to it_xt_stort.

"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_egpl to it_yt_egpl. . CALL FUNCTION 'ISU_DB_EGPL_SELECT_RANGE' * EXPORTING * x_actual = ld_x_actual * x_maxrows = ld_x_maxrows * x_fill_stortzus = ld_x_fill_stortzus * x_fill_pltxt = ld_x_fill_pltxt * x_fill_alltxt = ld_x_fill_alltxt * x_spras = ld_x_spras IMPORTING y_count = ld_y_count TABLES * xt_devloc = it_xt_devloc * xt_haus = it_xt_haus * xt_stort = it_xt_stort * xt_wheretab = it_xt_wheretab yt_egpl = it_yt_egpl EXCEPTIONS SYSTEM_ERROR = 1 NOT_FOUND = 2 . " ISU_DB_EGPL_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_devloc  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_devloc  LIKE LINE OF it_xt_devloc,
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_fill_stortzus  TYPE REGEN-KENNZX ,
it_xt_stort  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_stort  LIKE LINE OF it_xt_stort,
ld_x_fill_pltxt  TYPE REGEN-KENNZX ,
it_xt_wheretab  TYPE STANDARD TABLE OF RSDSWHERE ,
wa_xt_wheretab  LIKE LINE OF it_xt_wheretab,
ld_x_fill_alltxt  TYPE REGEN-KENNZX ,
it_yt_egpl  TYPE STANDARD TABLE OF EGPL ,
wa_yt_egpl  LIKE LINE OF it_yt_egpl,
ld_x_spras  TYPE SY-LANGU .


ld_x_actual = some text here

"populate fields of struture and append to itab
append wa_xt_devloc to it_xt_devloc.

ld_x_maxrows = 123

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

ld_x_fill_stortzus = some text here

"populate fields of struture and append to itab
append wa_xt_stort to it_xt_stort.

ld_x_fill_pltxt = some text here

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

ld_x_fill_alltxt = some text here

"populate fields of struture and append to itab
append wa_yt_egpl to it_yt_egpl.
ld_x_spras = '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 ISU_DB_EGPL_SELECT_RANGE or its description.