SAP Function Modules

ISU_DB_EABP_SELECT_RANGE_ACTIV SAP Function module - INTERNAL: Array Select EABP: All Active BB Plans Found







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

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


Pattern for FM ISU_DB_EABP_SELECT_RANGE_ACTIV - ISU DB EABP SELECT RANGE ACTIV





CALL FUNCTION 'ISU_DB_EABP_SELECT_RANGE_ACTIV' "INTERNAL: Array Select EABP: All Active BB Plans Found
* EXPORTING
*   x_maxrows =                 " regen-maxcount
*   x_edatum =                  " sy-datum      Date and Time, Current (Application Server) Date
*   x_waers =                   " t001-waers
  IMPORTING
    y_count =                   " regen-maxcount  Number of records read
* TABLES
*   xt_vertrag =                " isu_ranges
*   xt_opbel =                  " isu_ranges
*   xt_gpart =                  " isu_ranges    Business Partner
*   xt_vkonto =                 " isu_ranges    Contract Account
*   xt_portion =                " isu_ranges    Portion
*   yt_eabp =                   " eabp
  EXCEPTIONS
    SYSTEM_ERROR = 1            "               Other Error
    NOT_FOUND = 2               "               No records found
    WAERS_DIFFERENT = 3         "
    .  "  ISU_DB_EABP_SELECT_RANGE_ACTIV

ABAP code example for Function Module ISU_DB_EABP_SELECT_RANGE_ACTIV





The ABAP code below is a full code listing to execute function module ISU_DB_EABP_SELECT_RANGE_ACTIV 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_vertrag  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_vertrag  LIKE LINE OF it_xt_vertrag ,
it_xt_opbel  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_opbel  LIKE LINE OF it_xt_opbel ,
it_xt_gpart  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_gpart  LIKE LINE OF it_xt_gpart ,
it_xt_vkonto  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_vkonto  LIKE LINE OF it_xt_vkonto ,
it_xt_portion  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_portion  LIKE LINE OF it_xt_portion ,
it_yt_eabp  TYPE STANDARD TABLE OF EABP,"TABLES PARAM
wa_yt_eabp  LIKE LINE OF it_yt_eabp .


DATA(ld_x_maxrows) = 123
DATA(ld_x_edatum) = '20210129'.

SELECT single WAERS
FROM T001
INTO @DATA(ld_x_waers).


"populate fields of struture and append to itab
append wa_xt_vertrag to it_xt_vertrag.

"populate fields of struture and append to itab
append wa_xt_opbel to it_xt_opbel.

"populate fields of struture and append to itab
append wa_xt_gpart to it_xt_gpart.

"populate fields of struture and append to itab
append wa_xt_vkonto to it_xt_vkonto.

"populate fields of struture and append to itab
append wa_xt_portion to it_xt_portion.

"populate fields of struture and append to itab
append wa_yt_eabp to it_yt_eabp. . CALL FUNCTION 'ISU_DB_EABP_SELECT_RANGE_ACTIV' * EXPORTING * x_maxrows = ld_x_maxrows * x_edatum = ld_x_edatum * x_waers = ld_x_waers IMPORTING y_count = ld_y_count * TABLES * xt_vertrag = it_xt_vertrag * xt_opbel = it_xt_opbel * xt_gpart = it_xt_gpart * xt_vkonto = it_xt_vkonto * xt_portion = it_xt_portion * yt_eabp = it_yt_eabp EXCEPTIONS SYSTEM_ERROR = 1 NOT_FOUND = 2 WAERS_DIFFERENT = 3 . " ISU_DB_EABP_SELECT_RANGE_ACTIV
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 REGEN-MAXCOUNT ,
ld_x_maxrows  TYPE REGEN-MAXCOUNT ,
it_xt_vertrag  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_vertrag  LIKE LINE OF it_xt_vertrag,
ld_x_edatum  TYPE SY-DATUM ,
it_xt_opbel  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_opbel  LIKE LINE OF it_xt_opbel,
ld_x_waers  TYPE T001-WAERS ,
it_xt_gpart  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_gpart  LIKE LINE OF it_xt_gpart,
it_xt_vkonto  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_vkonto  LIKE LINE OF it_xt_vkonto,
it_xt_portion  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_portion  LIKE LINE OF it_xt_portion,
it_yt_eabp  TYPE STANDARD TABLE OF EABP ,
wa_yt_eabp  LIKE LINE OF it_yt_eabp.


ld_x_maxrows = 123

"populate fields of struture and append to itab
append wa_xt_vertrag to it_xt_vertrag.
ld_x_edatum = '20210129'.

"populate fields of struture and append to itab
append wa_xt_opbel to it_xt_opbel.

SELECT single WAERS
FROM T001
INTO ld_x_waers.


"populate fields of struture and append to itab
append wa_xt_gpart to it_xt_gpart.

"populate fields of struture and append to itab
append wa_xt_vkonto to it_xt_vkonto.

"populate fields of struture and append to itab
append wa_xt_portion to it_xt_portion.

"populate fields of struture and append to itab
append wa_yt_eabp to it_yt_eabp.

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