SAP Reports / Programs

RFFMMDD2 SAP ABAP Report - Deleting all Funds Centers in an FM Area and All Hierarchy Variants







RFFMMDD2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RFFMMDD2 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

OFDF - Delete Funds Centers in FM Area


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RFFMMDD2. "Basic submit
SUBMIT RFFMMDD2 AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMMDD2 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_TEST = Test run
Selection Text: P_FIKRS = FM area
Selection Text: P_CDOC = Delete change documents
Title: Deleting all Funds Centers in an FM Area and All Hierarchy Variants
Text Symbol: 106 = Delete funds centers
Text Symbol: 105 = Exit
Text Symbol: 104 = Delete
Text Symbol: 103 = Delete or Exit
Text Symbol: 102 = Choose between
Text Symbol: 101 = Funds centers being deleted
Text Symbol: 012 = deleted
Text Symbol: 011 = Table entries
Text Symbol: 005 = Test run
Text Symbol: 004 = Upd. run
Text Symbol: 003 = Ctrl parameters
Text Symbol: 002 = Delete all funds centers in
Text Symbol: 001 = FM area


INCLUDES used within this REPORT RFFMMDD2

INCLUDE LFMAUEQU.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

OBJECT_NUMBER_DELETE_FS CALL FUNCTION 'OBJECT_NUMBER_DELETE_FS' EXPORTING objnr = u_t_fmfctr-ctr_objnr EXCEPTIONS wrong_obart = 1 OTHERS = 2.

DELETE_TEXT CALL FUNCTION 'DELETE_TEXT' EXPORTING * CLIENT = SY-MANDT id = 'FS*' language = '*' name = l_name object = 'FMMD' savemode_direct = 'X' * TEXTMEMORY_ONLY = ' ' EXCEPTIONS not_found = 1 OTHERS = 2.

CLFM_DELETE_CLASSIFICATION CALL FUNCTION 'CLFM_DELETE_CLASSIFICATION' EXPORTING echt_lauf = 'X' object = l_object table = 'FMFCTR' * TYPE = ' ' classtype = '041' * CHANGE_SERVICE_NUMBER = * DATE_OF_CHANGE = * OBJ_HAS_CHANGE_SERVICE = ' ' IMPORTING anz_ausp = l_anz_ausp anz_kssk = l_anz_kssk EXCEPTIONS * foreign_lock = 1 * not_deleted = 2 * system_failure = 3 * table_not_found = 4 * date_not_allowed = 5 OTHERS = 6.

FM_AUTH_CHECK_FM_AREA CALL FUNCTION 'FM_AUTH_CHECK_FM_AREA' EXPORTING i_fikrs = u_fikrs i_actvt = fmau_ac_ini i_msgty = 'E'.

FMBD_CHECK_BUDGET_EXISTENCY CALL FUNCTION 'FMBD_CHECK_BUDGET_EXISTENCY' EXPORTING i_fm_area = u_fikrs * I_FISCYEAR = * I_VERSION = * I_F_ADDRESS = * I_FUND = * I_FUNDSCTR = * I_CMMTITEM = * I_FUNCAREA = * I_GRANT_NBR = * I_MEASURE = * I_USERDIM = IMPORTING e_flg_budget = l_flg_budget EXCEPTIONS too_many_parameters = 1 OTHERS = 2 .

FM20_BUDGET_GET_INFO_FOR_MDATA CALL FUNCTION 'FM20_BUDGET_GET_INFO_FOR_MDATA' EXPORTING i_del_all_fictr_chk = 'X' i_fikrs = u_fikrs IMPORTING e_subrc = l_subrc e_err_fictr = l_err_fictr.

FM13_CARR_GET_INFO_FOR_MDATA CALL FUNCTION 'FM13_CARR_GET_INFO_FOR_MDATA' EXPORTING i_del_all_fictr_chk = 'X' i_fikrs = u_fikrs IMPORTING e_subrc = l_subrc e_err_fictr = l_err_fictr.

FM_ACTUALS_CHECK CALL FUNCTION 'FM_ACTUALS_CHECK' EXPORTING i_fikrs = u_fikrs ** I_GJAHR_AB = U_GJAHR ** I_GJAHR_BIS = U_GJAHR i_flg_only_ca = 'X' IMPORTING e_flg_actuals_found = l_flg_actuals_found.

POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING textline1 = text-101 textline2 = text-102 textline3 = text-103 text_option1 = text-104 text_option2 = text-105 titel = text-106 IMPORTING answer = c_answer.

ENQUEUE_EFMHISV CALL FUNCTION 'ENQUEUE_EFMHISV' EXPORTING mode_fmhisv = 'E' mandt = sy-mandt fikrs = u_fikrs.

VIEW_ENQUEUE CALL FUNCTION 'VIEW_ENQUEUE' EXPORTING action = 'E' enqueue_mode = 'S' view_name = 'V_FM01H' enqueue_range = 'X' TABLES sellist = l_t_sellist EXCEPTIONS client_reference = 1 foreign_lock = 2 system_failure = 5 table_not_found = 6 OTHERS = 7.

ENQUEUE_EFMFCTR CALL FUNCTION 'ENQUEUE_EFMFCTR' EXPORTING mode_fmfctr = 'E' mandt = sy-mandt fikrs = u_fikrs.

FM_FISTL_SET_CHANGE_DOCUMENT CALL FUNCTION 'FM_FISTL_SET_CHANGE_DOCUMENT' EXPORTING i_oldnew = 'O' * I_REFRESH = ' ' i_f_fmmd_fistl_all = l_f_fmmd_fistl_all EXCEPTIONS neither_old_nor_new = 1 OTHERS = 2.

FM_FISTL_CALL_CHANGE_DOCUMENT CALL FUNCTION 'FM_FISTL_CALL_CHANGE_DOCUMENT' TABLES t_fmmd_fmfctr = l_t_fmmd_fmfctr t_fmmd_fmfctrt = l_t_fmmd_fmfctrt EXCEPTIONS OTHERS = 1.

CHANGEDOCUMENT_DELETE CALL FUNCTION 'CHANGEDOCUMENT_DELETE' EXPORTING client = sy-mandt objectclass = 'FMFCTR' objectid = l_objectid up_to_date = sy-datum with_commit = ' ' IMPORTING number_of_deleted_headers = l_cnt_headers EXCEPTIONS no_authority = 1 no_changes_found = 2 OTHERS = 3.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = xs_log IMPORTING e_log_handle = es_log_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.

BAL_LOG_MSG_ADD_FREE_TEXT CALL FUNCTION 'BAL_LOG_MSG_ADD_FREE_TEXT' EXPORTING i_log_handle = gs_log_handle i_msgty = gc_i i_probclass = gc_4 i_text = iv_text EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = is_display_profile EXCEPTIONS OTHERS = 1.

BAL_DSP_LOG_PRINT





CALL FUNCTION 'BAL_DSP_LOG_PRINT' EXPORTING i_s_list_append = 'X' i_s_display_profile = is_display_profile i_t_log_handle = gt_log_handle EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 5.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = is_log_handle i_s_msg = ls_msg EXCEPTIONS log_not_found = 0 OTHERS = 1.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RFFMMDD2 or its description.