SAP Function Modules

ISU_DB_ERCH_SELECT_REMOTE SAP Function module - INTERNAL: Read ERCH (Mass Access) Bill Document







ISU_DB_ERCH_SELECT_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_DB_ERCH_SELECT_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_DB_ERCH_SELECT_REMOTE - ISU DB ERCH SELECT REMOTE





CALL FUNCTION 'ISU_DB_ERCH_SELECT_REMOTE' "INTERNAL: Read ERCH (Mass Access) Bill Document
  EXPORTING
*   x_vertrag =                 " ever-vertrag  Contract
*   x_ab =                      " erch-begabrpe  From-Date
*   x_sparte =                  " erch-sparte   Division
*   x_portion =                 " erch-portion  Portion
*   x_simulation =              " erch-simulation
*   x_bukrs =                   " erch-bukrs    Company Code
    x_sort =                    " regen-kz_sort  Sort Sequence
*   x_storno =                  " regen-kennzx
*   x_no_abrvorg_06 =           " kennzx
  IMPORTING
    y_error =                   " kennzx        Indicators
* TABLES
*   t_erch =                    " erch
*   yt_return =                 " bapiret2      Return Parameter
    .  "  ISU_DB_ERCH_SELECT_REMOTE

ABAP code example for Function Module ISU_DB_ERCH_SELECT_REMOTE





The ABAP code below is a full code listing to execute function module ISU_DB_ERCH_SELECT_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_error  TYPE KENNZX ,
it_t_erch  TYPE STANDARD TABLE OF ERCH,"TABLES PARAM
wa_t_erch  LIKE LINE OF it_t_erch ,
it_yt_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_yt_return  LIKE LINE OF it_yt_return .


SELECT single VERTRAG
FROM EVER
INTO @DATA(ld_x_vertrag).


SELECT single BEGABRPE
FROM ERCH
INTO @DATA(ld_x_ab).


SELECT single SPARTE
FROM ERCH
INTO @DATA(ld_x_sparte).


SELECT single PORTION
FROM ERCH
INTO @DATA(ld_x_portion).


SELECT single SIMULATION
FROM ERCH
INTO @DATA(ld_x_simulation).


SELECT single BUKRS
FROM ERCH
INTO @DATA(ld_x_bukrs).


DATA(ld_x_sort) = some text here

DATA(ld_x_storno) = some text here
DATA(ld_x_no_abrvorg_06) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_erch to it_t_erch.

"populate fields of struture and append to itab
append wa_yt_return to it_yt_return. . CALL FUNCTION 'ISU_DB_ERCH_SELECT_REMOTE' EXPORTING * x_vertrag = ld_x_vertrag * x_ab = ld_x_ab * x_sparte = ld_x_sparte * x_portion = ld_x_portion * x_simulation = ld_x_simulation * x_bukrs = ld_x_bukrs x_sort = ld_x_sort * x_storno = ld_x_storno * x_no_abrvorg_06 = ld_x_no_abrvorg_06 IMPORTING y_error = ld_y_error * TABLES * t_erch = it_t_erch * yt_return = it_yt_return . " ISU_DB_ERCH_SELECT_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_error  TYPE KENNZX ,
ld_x_vertrag  TYPE EVER-VERTRAG ,
it_t_erch  TYPE STANDARD TABLE OF ERCH ,
wa_t_erch  LIKE LINE OF it_t_erch,
ld_x_ab  TYPE ERCH-BEGABRPE ,
it_yt_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_yt_return  LIKE LINE OF it_yt_return,
ld_x_sparte  TYPE ERCH-SPARTE ,
ld_x_portion  TYPE ERCH-PORTION ,
ld_x_simulation  TYPE ERCH-SIMULATION ,
ld_x_bukrs  TYPE ERCH-BUKRS ,
ld_x_sort  TYPE REGEN-KZ_SORT ,
ld_x_storno  TYPE REGEN-KENNZX ,
ld_x_no_abrvorg_06  TYPE KENNZX .


SELECT single VERTRAG
FROM EVER
INTO ld_x_vertrag.


"populate fields of struture and append to itab
append wa_t_erch to it_t_erch.

SELECT single BEGABRPE
FROM ERCH
INTO ld_x_ab.


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

SELECT single SPARTE
FROM ERCH
INTO ld_x_sparte.


SELECT single PORTION
FROM ERCH
INTO ld_x_portion.


SELECT single SIMULATION
FROM ERCH
INTO ld_x_simulation.


SELECT single BUKRS
FROM ERCH
INTO ld_x_bukrs.


ld_x_sort = some text here

ld_x_storno = some text here
ld_x_no_abrvorg_06 = '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_ERCH_SELECT_REMOTE or its description.