BM_WRITE_RATIOS_RDB 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 BM_WRITE_RATIOS_RDB into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
AFWBM_MARKET
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'BM_WRITE_RATIOS_RDB' "Writing Ratio BM KF's to RDB
* EXPORTING
* i_start_date = " afw_keydate Auswertungsdatum
* i_end_date = " afw_keydate Auswertungsdatum
* i_tab_kfdefin = " afwkf_defin_t Kennzahldefinition (allgemeiner Teil)
* i_tab_bmid = " afwbm_bm_cate_t TRM: Tabelletyp zu GET_TAB_BM_PER_PH_VAR
* i_tab_bm_att = " afwbm_att_t TRM: BM Attribute wie in Transaktion AFWBM
* i_tab_kf_value = " afwbm_kf_ratio_value_t Table For Calc. of Key Figure Ratio Values for Benchmarks
CHANGING
c_tab_bm_calcadmin = " afwbm_calcadmin_work_t Tabellentyp
c_tab_bm_calc_prot = " afwbm_calc_prot_t Tabellentyp zu AFWBM_CALC_PROT
c_rc = " sy-subrc Rückgabewert von ABAP-Anweisungen
. " BM_WRITE_RATIOS_RDB
The ABAP code below is a full code listing to execute function module BM_WRITE_RATIOS_RDB 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_c_tab_bm_calcadmin) = 'Check type of data required'.
DATA(ld_c_tab_bm_calc_prot) = 'Check type of data required'.
DATA(ld_c_rc) = 'Check type of data required'.
DATA(ld_i_start_date) = 'Check type of data required'.
DATA(ld_i_end_date) = 'Check type of data required'.
DATA(ld_i_tab_kfdefin) = 'Check type of data required'.
DATA(ld_i_tab_bmid) = 'Check type of data required'.
DATA(ld_i_tab_bm_att) = 'Check type of data required'.
DATA(ld_i_tab_kf_value) = 'Check type of data required'. . CALL FUNCTION 'BM_WRITE_RATIOS_RDB' * EXPORTING * i_start_date = ld_i_start_date * i_end_date = ld_i_end_date * i_tab_kfdefin = ld_i_tab_kfdefin * i_tab_bmid = ld_i_tab_bmid * i_tab_bm_att = ld_i_tab_bm_att * i_tab_kf_value = ld_i_tab_kf_value CHANGING c_tab_bm_calcadmin = ld_c_tab_bm_calcadmin c_tab_bm_calc_prot = ld_c_tab_bm_calc_prot c_rc = ld_c_rc . " BM_WRITE_RATIOS_RDB
IF SY-SUBRC EQ 0. "All OK ENDIF.
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_c_tab_bm_calcadmin | TYPE AFWBM_CALCADMIN_WORK_T , |
| ld_i_start_date | TYPE AFW_KEYDATE , |
| ld_c_tab_bm_calc_prot | TYPE AFWBM_CALC_PROT_T , |
| ld_i_end_date | TYPE AFW_KEYDATE , |
| ld_c_rc | TYPE SY-SUBRC , |
| ld_i_tab_kfdefin | TYPE AFWKF_DEFIN_T , |
| ld_i_tab_bmid | TYPE AFWBM_BM_CATE_T , |
| ld_i_tab_bm_att | TYPE AFWBM_ATT_T , |
| ld_i_tab_kf_value | TYPE AFWBM_KF_RATIO_VALUE_T . |
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 BM_WRITE_RATIOS_RDB or its description.