SAP Function Modules

ISU_ERCH_SELECT_RANGE_REMOTE SAP Function module - Selects Database Table ERCH with Range Cntrct, DocNo., StartBPer, EndBPe







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

Associated Function Group: ISU_IL_BICO_REMOTE
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM ISU_ERCH_SELECT_RANGE_REMOTE - ISU ERCH SELECT RANGE REMOTE





CALL FUNCTION 'ISU_ERCH_SELECT_RANGE_REMOTE' "Selects Database Table ERCH with Range Cntrct, DocNo., StartBPer, EndBPer.
  EXPORTING
*   x_actual =                  " e_actual      Consistent data
*   x_maxrows =                 " e_maxcount    Maximum number of devices to be selected
*   x_von =                     " begabrpe      Start of billing period
    x_bis =                     " endabrpe      End of billing period
  IMPORTING
    y_count =                   " e_maxcount    Maximum number of devices to be selected
    y_error =                   " kennzx        Indicators
    y_not_found =               " kennzx        Indicators
* TABLES
*   xt_vertrag =                " isu_ranges
*   xt_belnr =                  " isu_ranges
*   xt_wheretab =               " rsdswhere     Free selection
*   yt_erch =                   " erch
*   yt_return =                 " bapiret2      Return Parameter
    .  "  ISU_ERCH_SELECT_RANGE_REMOTE

ABAP code example for Function Module ISU_ERCH_SELECT_RANGE_REMOTE





The ABAP code below is a full code listing to execute function module ISU_ERCH_SELECT_RANGE_REMOTE 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 E_MAXCOUNT ,
ld_y_error  TYPE KENNZX ,
ld_y_not_found  TYPE KENNZX ,
it_xt_vertrag  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_vertrag  LIKE LINE OF it_xt_vertrag ,
it_xt_belnr  TYPE STANDARD TABLE OF ISU_RANGES,"TABLES PARAM
wa_xt_belnr  LIKE LINE OF it_xt_belnr ,
it_xt_wheretab  TYPE STANDARD TABLE OF RSDSWHERE,"TABLES PARAM
wa_xt_wheretab  LIKE LINE OF it_xt_wheretab ,
it_yt_erch  TYPE STANDARD TABLE OF ERCH,"TABLES PARAM
wa_yt_erch  LIKE LINE OF it_yt_erch ,
it_yt_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_yt_return  LIKE LINE OF it_yt_return .

DATA(ld_x_actual) = 'Check type of data required'.
DATA(ld_x_maxrows) = 'Check type of data required'.
DATA(ld_x_von) = 'Check type of data required'.
DATA(ld_x_bis) = 'Check type of data required'.

"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_belnr to it_xt_belnr.

"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_erch to it_yt_erch.

"populate fields of struture and append to itab
append wa_yt_return to it_yt_return. . CALL FUNCTION 'ISU_ERCH_SELECT_RANGE_REMOTE' EXPORTING * x_actual = ld_x_actual * x_maxrows = ld_x_maxrows * x_von = ld_x_von x_bis = ld_x_bis IMPORTING y_count = ld_y_count y_error = ld_y_error y_not_found = ld_y_not_found * TABLES * xt_vertrag = it_xt_vertrag * xt_belnr = it_xt_belnr * xt_wheretab = it_xt_wheretab * yt_erch = it_yt_erch * yt_return = it_yt_return . " ISU_ERCH_SELECT_RANGE_REMOTE
IF SY-SUBRC EQ 0. "All OK 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 E_MAXCOUNT ,
ld_x_actual  TYPE E_ACTUAL ,
it_xt_vertrag  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_vertrag  LIKE LINE OF it_xt_vertrag,
ld_y_error  TYPE KENNZX ,
ld_x_maxrows  TYPE E_MAXCOUNT ,
it_xt_belnr  TYPE STANDARD TABLE OF ISU_RANGES ,
wa_xt_belnr  LIKE LINE OF it_xt_belnr,
ld_y_not_found  TYPE KENNZX ,
ld_x_von  TYPE BEGABRPE ,
it_xt_wheretab  TYPE STANDARD TABLE OF RSDSWHERE ,
wa_xt_wheretab  LIKE LINE OF it_xt_wheretab,
ld_x_bis  TYPE ENDABRPE ,
it_yt_erch  TYPE STANDARD TABLE OF ERCH ,
wa_yt_erch  LIKE LINE OF it_yt_erch,
it_yt_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_yt_return  LIKE LINE OF it_yt_return.

ld_x_actual = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_vertrag to it_xt_vertrag.
ld_x_maxrows = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_belnr to it_xt_belnr.
ld_x_von = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_xt_wheretab to it_xt_wheretab.
ld_x_bis = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_yt_erch to it_yt_erch.

"populate fields of struture and append to itab
append wa_yt_return to it_yt_return.

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