SAP Function Modules

ISU_DB_TE225H_SELECT SAP Function module







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

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


Pattern for FM ISU_DB_TE225H_SELECT - ISU DB TE225H SELECT





CALL FUNCTION 'ISU_DB_TE225H_SELECT' "
  EXPORTING
    x_country =                 " te225h-country
*   x_reglevel = SPACE          " te225h-reglevel
*   x_suplevel = SPACE          " te225h-suplevel
*   x_sort = 'K'                " regen-kz_sort
*   x_actual = SPACE            " regen-actual
  IMPORTING
    y_count =                   " regen-maxcount
    y_te225h =                  " te225h
* TABLES
*   t_te225h =                  " te225h
  EXCEPTIONS
    NOT_FOUND = 1               "
    .  "  ISU_DB_TE225H_SELECT

ABAP code example for Function Module ISU_DB_TE225H_SELECT





The ABAP code below is a full code listing to execute function module ISU_DB_TE225H_SELECT 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 ,
ld_y_te225h  TYPE TE225H ,
it_t_te225h  TYPE STANDARD TABLE OF TE225H,"TABLES PARAM
wa_t_te225h  LIKE LINE OF it_t_te225h .


SELECT single COUNTRY
FROM TE225H
INTO @DATA(ld_x_country).


SELECT single REGLEVEL
FROM TE225H
INTO @DATA(ld_x_reglevel).


SELECT single SUPLEVEL
FROM TE225H
INTO @DATA(ld_x_suplevel).


DATA(ld_x_sort) = some text here

DATA(ld_x_actual) = some text here

"populate fields of struture and append to itab
append wa_t_te225h to it_t_te225h. . CALL FUNCTION 'ISU_DB_TE225H_SELECT' EXPORTING x_country = ld_x_country * x_reglevel = ld_x_reglevel * x_suplevel = ld_x_suplevel * x_sort = ld_x_sort * x_actual = ld_x_actual IMPORTING y_count = ld_y_count y_te225h = ld_y_te225h * TABLES * t_te225h = it_t_te225h EXCEPTIONS NOT_FOUND = 1 . " ISU_DB_TE225H_SELECT
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_y_count  TYPE REGEN-MAXCOUNT ,
ld_x_country  TYPE TE225H-COUNTRY ,
it_t_te225h  TYPE STANDARD TABLE OF TE225H ,
wa_t_te225h  LIKE LINE OF it_t_te225h,
ld_y_te225h  TYPE TE225H ,
ld_x_reglevel  TYPE TE225H-REGLEVEL ,
ld_x_suplevel  TYPE TE225H-SUPLEVEL ,
ld_x_sort  TYPE REGEN-KZ_SORT ,
ld_x_actual  TYPE REGEN-ACTUAL .


SELECT single COUNTRY
FROM TE225H
INTO ld_x_country.


"populate fields of struture and append to itab
append wa_t_te225h to it_t_te225h.

SELECT single REGLEVEL
FROM TE225H
INTO ld_x_reglevel.


SELECT single SUPLEVEL
FROM TE225H
INTO ld_x_suplevel.


ld_x_sort = some text here

ld_x_actual = some text here

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