SAP Function Modules

FMBD_READ_TOTALS SAP Function module - Data selection from summary table FMDBT







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

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


Pattern for FM FMBD_READ_TOTALS - FMBD READ TOTALS





CALL FUNCTION 'FMBD_READ_TOTALS' "Data selection from summary table FMDBT
  EXPORTING
    i_fm_area =                 " fikrs         Financial management area
*   i_f_dimtabs =               " fmku_s_dimtabs  FM dimension value tables
*   i_t_address =               " fmku_t_dimpart  Table with FM account  assignments
*   i_f_selcrittabs =           " buku_s_selcrittabs  Selection critiria tables for generic budgeting fields
*   i_flg_consider_update_buffer = SPACE  " xfeld  Consider values in update buffer? Yes/No
*   i_flg_incl_zero_records = SPACE  " xfeld    'X' = Also consider zero records
  IMPORTING
    e_t_fmbdt =                 " fmbd_t_t      Totals table FMBDT
  EXCEPTIONS
    SELECTION_ERROR = 1         "               Error occurs during FISL selection
    .  "  FMBD_READ_TOTALS

ABAP code example for Function Module FMBD_READ_TOTALS





The ABAP code below is a full code listing to execute function module FMBD_READ_TOTALS 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_t_fmbdt  TYPE FMBD_T_T .

DATA(ld_i_fm_area) = 'Check type of data required'.
DATA(ld_i_f_dimtabs) = 'Check type of data required'.
DATA(ld_i_t_address) = 'Check type of data required'.
DATA(ld_i_f_selcrittabs) = 'Check type of data required'.
DATA(ld_i_flg_consider_update_buffer) = 'Check type of data required'.
DATA(ld_i_flg_incl_zero_records) = 'Check type of data required'. . CALL FUNCTION 'FMBD_READ_TOTALS' EXPORTING i_fm_area = ld_i_fm_area * i_f_dimtabs = ld_i_f_dimtabs * i_t_address = ld_i_t_address * i_f_selcrittabs = ld_i_f_selcrittabs * i_flg_consider_update_buffer = ld_i_flg_consider_update_buffer * i_flg_incl_zero_records = ld_i_flg_incl_zero_records IMPORTING e_t_fmbdt = ld_e_t_fmbdt EXCEPTIONS SELECTION_ERROR = 1 . " FMBD_READ_TOTALS
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_t_fmbdt  TYPE FMBD_T_T ,
ld_i_fm_area  TYPE FIKRS ,
ld_i_f_dimtabs  TYPE FMKU_S_DIMTABS ,
ld_i_t_address  TYPE FMKU_T_DIMPART ,
ld_i_f_selcrittabs  TYPE BUKU_S_SELCRITTABS ,
ld_i_flg_consider_update_buffer  TYPE XFELD ,
ld_i_flg_incl_zero_records  TYPE XFELD .

ld_i_fm_area = 'Check type of data required'.
ld_i_f_dimtabs = 'Check type of data required'.
ld_i_t_address = 'Check type of data required'.
ld_i_f_selcrittabs = 'Check type of data required'.
ld_i_flg_consider_update_buffer = 'Check type of data required'.
ld_i_flg_incl_zero_records = '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 FMBD_READ_TOTALS or its description.