FMIT_READ_TOTALS_WITH_RANGES 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 FMIT_READ_TOTALS_WITH_RANGES 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
CALL FUNCTION 'FMIT_READ_TOTALS_WITH_RANGES' "Read FMIT for large ranges
EXPORTING
i_fmarea = " fikrs Financial Management Area
IMPORTING
e_t_fmit = " fmit_t Totals Table for Funds Management
* TABLES
* i_t_rrcty = " range_c1 Ranges Table for Structure with Char1
* i_t_rldnr = " bapi_0051_selbudcat Selection criteria for budget category
* i_t_rfundstr_packet = " fmku_t_fundsctr_packet Use for building packet of range of Fund center
* i_t_rcmmtitem_packet = " fmku_t_cmmtitem_packet Use for building packet of range of Commitment Items
* i_t_rfund = " bapi_0051_selfund Structure of a Range Table for a (10) Character Field
* i_t_rfuncarea = " bapi_0051_selfuncarea Selection criteria for functionnal area
* i_t_rmeasure = " bapi_0051_selmeasure Selection criteria for funded program
* i_t_rbudget_pd = " bapi_0051_selbudget_pd Selection criteria for budget period
* i_t_rgrant_nbr = " bapi_0051_selgrant_nbr Selection criteria for grant
* i_t_rwrttp = " ifm_range_wrttp Funds Management: Range for Value Type
* i_t_rfiscyear = " bapi_0051_selfiscyear Selection criteria for fiscal year
* i_t_ruserdim = " range_c10 Structure of a Range Table for a (10) Character Field
. " FMIT_READ_TOTALS_WITH_RANGES
The ABAP code below is a full code listing to execute function module FMIT_READ_TOTALS_WITH_RANGES 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).
| ld_e_t_fmit | TYPE FMIT_T , |
| it_i_t_rrcty | TYPE STANDARD TABLE OF RANGE_C1,"TABLES PARAM |
| wa_i_t_rrcty | LIKE LINE OF it_i_t_rrcty , |
| it_i_t_rldnr | TYPE STANDARD TABLE OF BAPI_0051_SELBUDCAT,"TABLES PARAM |
| wa_i_t_rldnr | LIKE LINE OF it_i_t_rldnr , |
| it_i_t_rfundstr_packet | TYPE STANDARD TABLE OF FMKU_T_FUNDSCTR_PACKET,"TABLES PARAM |
| wa_i_t_rfundstr_packet | LIKE LINE OF it_i_t_rfundstr_packet , |
| it_i_t_rcmmtitem_packet | TYPE STANDARD TABLE OF FMKU_T_CMMTITEM_PACKET,"TABLES PARAM |
| wa_i_t_rcmmtitem_packet | LIKE LINE OF it_i_t_rcmmtitem_packet , |
| it_i_t_rfund | TYPE STANDARD TABLE OF BAPI_0051_SELFUND,"TABLES PARAM |
| wa_i_t_rfund | LIKE LINE OF it_i_t_rfund , |
| it_i_t_rfuncarea | TYPE STANDARD TABLE OF BAPI_0051_SELFUNCAREA,"TABLES PARAM |
| wa_i_t_rfuncarea | LIKE LINE OF it_i_t_rfuncarea , |
| it_i_t_rmeasure | TYPE STANDARD TABLE OF BAPI_0051_SELMEASURE,"TABLES PARAM |
| wa_i_t_rmeasure | LIKE LINE OF it_i_t_rmeasure , |
| it_i_t_rbudget_pd | TYPE STANDARD TABLE OF BAPI_0051_SELBUDGET_PD,"TABLES PARAM |
| wa_i_t_rbudget_pd | LIKE LINE OF it_i_t_rbudget_pd , |
| it_i_t_rgrant_nbr | TYPE STANDARD TABLE OF BAPI_0051_SELGRANT_NBR,"TABLES PARAM |
| wa_i_t_rgrant_nbr | LIKE LINE OF it_i_t_rgrant_nbr , |
| it_i_t_rwrttp | TYPE STANDARD TABLE OF IFM_RANGE_WRTTP,"TABLES PARAM |
| wa_i_t_rwrttp | LIKE LINE OF it_i_t_rwrttp , |
| it_i_t_rfiscyear | TYPE STANDARD TABLE OF BAPI_0051_SELFISCYEAR,"TABLES PARAM |
| wa_i_t_rfiscyear | LIKE LINE OF it_i_t_rfiscyear , |
| it_i_t_ruserdim | TYPE STANDARD TABLE OF RANGE_C10,"TABLES PARAM |
| wa_i_t_ruserdim | LIKE LINE OF it_i_t_ruserdim . |
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_fmit | TYPE FMIT_T , |
| ld_i_fmarea | TYPE FIKRS , |
| it_i_t_rrcty | TYPE STANDARD TABLE OF RANGE_C1 , |
| wa_i_t_rrcty | LIKE LINE OF it_i_t_rrcty, |
| it_i_t_rldnr | TYPE STANDARD TABLE OF BAPI_0051_SELBUDCAT , |
| wa_i_t_rldnr | LIKE LINE OF it_i_t_rldnr, |
| it_i_t_rfundstr_packet | TYPE STANDARD TABLE OF FMKU_T_FUNDSCTR_PACKET , |
| wa_i_t_rfundstr_packet | LIKE LINE OF it_i_t_rfundstr_packet, |
| it_i_t_rcmmtitem_packet | TYPE STANDARD TABLE OF FMKU_T_CMMTITEM_PACKET , |
| wa_i_t_rcmmtitem_packet | LIKE LINE OF it_i_t_rcmmtitem_packet, |
| it_i_t_rfund | TYPE STANDARD TABLE OF BAPI_0051_SELFUND , |
| wa_i_t_rfund | LIKE LINE OF it_i_t_rfund, |
| it_i_t_rfuncarea | TYPE STANDARD TABLE OF BAPI_0051_SELFUNCAREA , |
| wa_i_t_rfuncarea | LIKE LINE OF it_i_t_rfuncarea, |
| it_i_t_rmeasure | TYPE STANDARD TABLE OF BAPI_0051_SELMEASURE , |
| wa_i_t_rmeasure | LIKE LINE OF it_i_t_rmeasure, |
| it_i_t_rbudget_pd | TYPE STANDARD TABLE OF BAPI_0051_SELBUDGET_PD , |
| wa_i_t_rbudget_pd | LIKE LINE OF it_i_t_rbudget_pd, |
| it_i_t_rgrant_nbr | TYPE STANDARD TABLE OF BAPI_0051_SELGRANT_NBR , |
| wa_i_t_rgrant_nbr | LIKE LINE OF it_i_t_rgrant_nbr, |
| it_i_t_rwrttp | TYPE STANDARD TABLE OF IFM_RANGE_WRTTP , |
| wa_i_t_rwrttp | LIKE LINE OF it_i_t_rwrttp, |
| it_i_t_rfiscyear | TYPE STANDARD TABLE OF BAPI_0051_SELFISCYEAR , |
| wa_i_t_rfiscyear | LIKE LINE OF it_i_t_rfiscyear, |
| it_i_t_ruserdim | TYPE STANDARD TABLE OF RANGE_C10 , |
| wa_i_t_ruserdim | LIKE LINE OF it_i_t_ruserdim. |
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 FMIT_READ_TOTALS_WITH_RANGES or its description.