SAP Function Modules

MM_ARRANG_SELECTION_EBAB SAP Function module







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

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


Pattern for FM MM_ARRANG_SELECTION_EBAB - MM ARRANG SELECTION EBAB





CALL FUNCTION 'MM_ARRANG_SELECTION_EBAB' "
  IMPORTING
    e_read_tabix =              " sy-tabix
    e_read_subrc =              " sy-subrc
  TABLES
*   t_abrlf =                   " abrlf_ran
*   t_knuma =                   " knuma_ran
*   t_ernam =                   " ernam_ran
*   t_erdat =                   " bldat_ran
*   t_abrdate =                 " bldat_ran
*   t_budate =                  " bldat_ran
*   t_bldate =                  " bldat_ran
    t_ebab =                    " ebab
  EXCEPTIONS
    NO_ENTRY_FOUND = 1          "
    .  "  MM_ARRANG_SELECTION_EBAB

ABAP code example for Function Module MM_ARRANG_SELECTION_EBAB





The ABAP code below is a full code listing to execute function module MM_ARRANG_SELECTION_EBAB 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_e_read_tabix  TYPE SY-TABIX ,
ld_e_read_subrc  TYPE SY-SUBRC ,
it_t_abrlf  TYPE STANDARD TABLE OF ABRLF_RAN,"TABLES PARAM
wa_t_abrlf  LIKE LINE OF it_t_abrlf ,
it_t_knuma  TYPE STANDARD TABLE OF KNUMA_RAN,"TABLES PARAM
wa_t_knuma  LIKE LINE OF it_t_knuma ,
it_t_ernam  TYPE STANDARD TABLE OF ERNAM_RAN,"TABLES PARAM
wa_t_ernam  LIKE LINE OF it_t_ernam ,
it_t_erdat  TYPE STANDARD TABLE OF BLDAT_RAN,"TABLES PARAM
wa_t_erdat  LIKE LINE OF it_t_erdat ,
it_t_abrdate  TYPE STANDARD TABLE OF BLDAT_RAN,"TABLES PARAM
wa_t_abrdate  LIKE LINE OF it_t_abrdate ,
it_t_budate  TYPE STANDARD TABLE OF BLDAT_RAN,"TABLES PARAM
wa_t_budate  LIKE LINE OF it_t_budate ,
it_t_bldate  TYPE STANDARD TABLE OF BLDAT_RAN,"TABLES PARAM
wa_t_bldate  LIKE LINE OF it_t_bldate ,
it_t_ebab  TYPE STANDARD TABLE OF EBAB,"TABLES PARAM
wa_t_ebab  LIKE LINE OF it_t_ebab .


"populate fields of struture and append to itab
append wa_t_abrlf to it_t_abrlf.

"populate fields of struture and append to itab
append wa_t_knuma to it_t_knuma.

"populate fields of struture and append to itab
append wa_t_ernam to it_t_ernam.

"populate fields of struture and append to itab
append wa_t_erdat to it_t_erdat.

"populate fields of struture and append to itab
append wa_t_abrdate to it_t_abrdate.

"populate fields of struture and append to itab
append wa_t_budate to it_t_budate.

"populate fields of struture and append to itab
append wa_t_bldate to it_t_bldate.

"populate fields of struture and append to itab
append wa_t_ebab to it_t_ebab. . CALL FUNCTION 'MM_ARRANG_SELECTION_EBAB' IMPORTING e_read_tabix = ld_e_read_tabix e_read_subrc = ld_e_read_subrc TABLES * t_abrlf = it_t_abrlf * t_knuma = it_t_knuma * t_ernam = it_t_ernam * t_erdat = it_t_erdat * t_abrdate = it_t_abrdate * t_budate = it_t_budate * t_bldate = it_t_bldate t_ebab = it_t_ebab EXCEPTIONS NO_ENTRY_FOUND = 1 . " MM_ARRANG_SELECTION_EBAB
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_e_read_tabix  TYPE SY-TABIX ,
it_t_abrlf  TYPE STANDARD TABLE OF ABRLF_RAN ,
wa_t_abrlf  LIKE LINE OF it_t_abrlf,
ld_e_read_subrc  TYPE SY-SUBRC ,
it_t_knuma  TYPE STANDARD TABLE OF KNUMA_RAN ,
wa_t_knuma  LIKE LINE OF it_t_knuma,
it_t_ernam  TYPE STANDARD TABLE OF ERNAM_RAN ,
wa_t_ernam  LIKE LINE OF it_t_ernam,
it_t_erdat  TYPE STANDARD TABLE OF BLDAT_RAN ,
wa_t_erdat  LIKE LINE OF it_t_erdat,
it_t_abrdate  TYPE STANDARD TABLE OF BLDAT_RAN ,
wa_t_abrdate  LIKE LINE OF it_t_abrdate,
it_t_budate  TYPE STANDARD TABLE OF BLDAT_RAN ,
wa_t_budate  LIKE LINE OF it_t_budate,
it_t_bldate  TYPE STANDARD TABLE OF BLDAT_RAN ,
wa_t_bldate  LIKE LINE OF it_t_bldate,
it_t_ebab  TYPE STANDARD TABLE OF EBAB ,
wa_t_ebab  LIKE LINE OF it_t_ebab.


"populate fields of struture and append to itab
append wa_t_abrlf to it_t_abrlf.

"populate fields of struture and append to itab
append wa_t_knuma to it_t_knuma.

"populate fields of struture and append to itab
append wa_t_ernam to it_t_ernam.

"populate fields of struture and append to itab
append wa_t_erdat to it_t_erdat.

"populate fields of struture and append to itab
append wa_t_abrdate to it_t_abrdate.

"populate fields of struture and append to itab
append wa_t_budate to it_t_budate.

"populate fields of struture and append to itab
append wa_t_bldate to it_t_bldate.

"populate fields of struture and append to itab
append wa_t_ebab to it_t_ebab.

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