SAP Function Modules

ISU_DB_SELECT_MULTIPLE_BILL SAP Function module - Select Multiple Bill Documents (by BELNR/ERCH)







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

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


Pattern for FM ISU_DB_SELECT_MULTIPLE_BILL - ISU DB SELECT MULTIPLE BILL





CALL FUNCTION 'ISU_DB_SELECT_MULTIPLE_BILL' "Select Multiple Bill Documents (by BELNR/ERCH)
* EXPORTING
*   xt_erch_key =               " isuar_key_ierch
*   x_erch = 'X'                " c
*   x_ercho = 'X'               " c
*   x_erchp = 'X'               " c
*   x_erchc = 'X'               " c
*   x_dberchv = 'X'             " c
*   x_dberchz = 'X'             " c
*   x_dbercht = 'X'             " c
*   x_dberchr = 'X'             " c
*   x_dberchu = 'X'             " c
*   x_dberdtax = 'X'            " c
*   x_etaxerch = 'X'            " c
*   x_dberche = 'X'             " c
  IMPORTING
    y_bill_documents =          " isuar_idbbill_doc
  EXCEPTIONS
    PARAMETER_ERROR = 1         "
    NOT_FOUND = 2               "
    SYSTEM_ERROR = 3            "
    .  "  ISU_DB_SELECT_MULTIPLE_BILL

ABAP code example for Function Module ISU_DB_SELECT_MULTIPLE_BILL





The ABAP code below is a full code listing to execute function module ISU_DB_SELECT_MULTIPLE_BILL 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_bill_documents  TYPE ISUAR_IDBBILL_DOC .

DATA(ld_xt_erch_key) = 'Check type of data required'.
DATA(ld_x_erch) = 'Check type of data required'.
DATA(ld_x_ercho) = 'Check type of data required'.
DATA(ld_x_erchp) = 'Check type of data required'.
DATA(ld_x_erchc) = 'Check type of data required'.
DATA(ld_x_dberchv) = 'Check type of data required'.
DATA(ld_x_dberchz) = 'Check type of data required'.
DATA(ld_x_dbercht) = 'Check type of data required'.
DATA(ld_x_dberchr) = 'Check type of data required'.
DATA(ld_x_dberchu) = 'Check type of data required'.
DATA(ld_x_dberdtax) = 'Check type of data required'.
DATA(ld_x_etaxerch) = 'Check type of data required'.
DATA(ld_x_dberche) = 'Check type of data required'. . CALL FUNCTION 'ISU_DB_SELECT_MULTIPLE_BILL' * EXPORTING * xt_erch_key = ld_xt_erch_key * x_erch = ld_x_erch * x_ercho = ld_x_ercho * x_erchp = ld_x_erchp * x_erchc = ld_x_erchc * x_dberchv = ld_x_dberchv * x_dberchz = ld_x_dberchz * x_dbercht = ld_x_dbercht * x_dberchr = ld_x_dberchr * x_dberchu = ld_x_dberchu * x_dberdtax = ld_x_dberdtax * x_etaxerch = ld_x_etaxerch * x_dberche = ld_x_dberche IMPORTING y_bill_documents = ld_y_bill_documents EXCEPTIONS PARAMETER_ERROR = 1 NOT_FOUND = 2 SYSTEM_ERROR = 3 . " ISU_DB_SELECT_MULTIPLE_BILL
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_bill_documents  TYPE ISUAR_IDBBILL_DOC ,
ld_xt_erch_key  TYPE ISUAR_KEY_IERCH ,
ld_x_erch  TYPE C ,
ld_x_ercho  TYPE C ,
ld_x_erchp  TYPE C ,
ld_x_erchc  TYPE C ,
ld_x_dberchv  TYPE C ,
ld_x_dberchz  TYPE C ,
ld_x_dbercht  TYPE C ,
ld_x_dberchr  TYPE C ,
ld_x_dberchu  TYPE C ,
ld_x_dberdtax  TYPE C ,
ld_x_etaxerch  TYPE C ,
ld_x_dberche  TYPE C .

ld_xt_erch_key = 'Check type of data required'.
ld_x_erch = 'Check type of data required'.
ld_x_ercho = 'Check type of data required'.
ld_x_erchp = 'Check type of data required'.
ld_x_erchc = 'Check type of data required'.
ld_x_dberchv = 'Check type of data required'.
ld_x_dberchz = 'Check type of data required'.
ld_x_dbercht = 'Check type of data required'.
ld_x_dberchr = 'Check type of data required'.
ld_x_dberchu = 'Check type of data required'.
ld_x_dberdtax = 'Check type of data required'.
ld_x_etaxerch = 'Check type of data required'.
ld_x_dberche = '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_SELECT_MULTIPLE_BILL or its description.