SAP Reports / Programs | Public Sector Management | Funds Management(PSM-FM) SAP PSM

RFFMCHAN SAP ABAP Report - Selection for suppl.acct asst







RFFMCHAN is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program supplies the documents from other components that you want to transfer to Funds Management with a complete FM account assignment (commitment item, funds center and, if necessary, fund and functional area) and saves the data in a worklist...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RFFMCHAN 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

FMCN - Reassignment: Supplement.Acct Assgt


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 RFFMCHAN. "Basic submit
SUBMIT RFFMCHAN AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMCHAN 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: S_KBLNR = D .
Selection Text: S_GJAHRP = D .
Selection Text: S_GJAHR = D .
Selection Text: S_EBELN = D .
Selection Text: S_BELNRP = D .
Selection Text: S_BELNR = D .
Selection Text: S_BANFN = D .
Selection Text: P_XPRFG = D .
Selection Text: P_SIMUL = D .
Selection Text: P_OVERW = D .
Selection Text: P_NOFIST = D .
Selection Text: P_MEASUR = D .
Selection Text: P_GRANT = D .
Selection Text: P_FONDS = D .
Selection Text: P_FISTL = D .
Selection Text: P_FAREA = D .
Selection Text: P_ERROR = D .
Selection Text: P_BUKRS = D .
Selection Text: P_BUDPER = D .
Title: Selection for suppl.acct asst
Text Symbol: 056 = Parked Documents
Text Symbol: 055 = -
Text Symbol: 054 = Accrual Earmarked Funds
Text Symbol: 053 = Default account assignment
Text Symbol: 052 = MM document selection
Text Symbol: 051 = Financial Accounting selection
Text Symbol: 050 = Control
Text Symbol: 013 = Company code


INCLUDES used within this REPORT RFFMCHAN

No INCLUDES are used within this REPORT code!


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:

FMALE_READ_CUST CALL FUNCTION 'FMALE_READ_CUST' IMPORTING central_system = g_central_system EXCEPTIONS central_system_not_defined = 1 OTHERS = 2.

OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING own_logical_system = g_own_system.

FMCA_GET_INIT_INFO CALL FUNCTION 'FMCA_GET_INIT_INFO' EXPORTING i_bukrs = p_bukrs CHANGING c_f_control_data = g_f_control_data.

FM_AUTH_CHECK_FM_AREA CALL FUNCTION 'FM_AUTH_CHECK_FM_AREA' EXPORTING i_fikrs = g_f_control_data-fikrs i_actvt = fmau_ac_ini i_msgty = 'E'.

KOKRS_GET_FROM_BUKRS CALL FUNCTION 'KOKRS_GET_FROM_BUKRS' EXPORTING i_bukrs = p_bukrs IMPORTING e_kokrs = g_kokrs EXCEPTIONS no_kokrs_found = 1 OTHERS = 2. "#EC *

FMFCTR_READ_QUICK CALL FUNCTION 'FMFCTR_READ_QUICK' EXPORTING ip_gjahr = sy-datum(4) ip_fictr = p_fistl ip_fikrs = g_f_control_data-fikrs.

FINCODE_READ CALL FUNCTION 'FINCODE_READ' EXPORTING ip_fikrs = g_f_control_data-fikrs ip_fincode = p_fonds.

FM_BUDGET_PERIOD_READ CALL FUNCTION 'FM_BUDGET_PERIOD_READ' EXPORTING i_budget_period = p_budper.

AC_FAREA_EXISTENCE_CHECK CALL FUNCTION 'AC_FAREA_EXISTENCE_CHECK' EXPORTING id_func_area = p_farea.

FM_MEASURE_READ CALL FUNCTION 'FM_MEASURE_READ' EXPORTING i_fmarea = g_f_control_data-fikrs i_measure = p_measur i_fisc_year = sy-datum(4).

GM_GET_GRANT_SINGLE CALL FUNCTION 'GM_GET_GRANT_SINGLE' EXPORTING i_grant_nbr = p_grant.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

FM_CHANGE_AA_TABWO_WRITE CALL FUNCTION 'FM_CHANGE_AA_TABWO_WRITE' TABLES t_fmcha1 = l_t_fmcha1.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

FM_COM_ITEM_READ CALL FUNCTION 'FM_COM_ITEM_READ' EXPORTING i_fikrs = u_fikrs i_gjahr = u_gjahr i_fipex = u_fipex i_flg_buffer_all = 'X' IMPORTING e_f_fmci = l_f_fmci.

FM3R_GET_POSIT_FROM_ACCOUNT CALL FUNCTION 'FM3R_GET_POSIT_FROM_ACCOUNT' EXPORTING i_bukrs = u_t_itread-bukrs i_saknr = u_t_itread-saknr i_flg_buffer_all = con_on IMPORTING e_fipos = u_t_itread-fipos EXCEPTIONS OTHERS = 1.

FM_FIPEX_GET_FROM_FIPOS CALL FUNCTION 'FM_FIPEX_GET_FROM_FIPOS' EXPORTING i_fipos = l_fipos IMPORTING e_fipex = u_t_fmcha1-sfipex.

FM_FIPEX_GET_FROM_FIPOS CALL FUNCTION 'FM_FIPEX_GET_FROM_FIPOS' EXPORTING i_fipos = c_f_cobl-fipos IMPORTING e_fipex = c_f_fmcha1-sfipex EXCEPTIONS OTHERS = 1.

FM_ACCOUNT_GET_COBL





CALL FUNCTION 'FM_ACCOUNT_GET_COBL' EXPORTING i_f_accit = u_f_accit i_flg_buffer_all = con_on i_appl_ca_active = con_on CHANGING c_cobl = c_f_cobl c_subrc = c_subrc EXCEPTIONS OTHERS = 1.

FM_ACCOUNT_GET_COBL CALL FUNCTION 'FM_ACCOUNT_GET_COBL' EXPORTING * i_f_accit = lf_accit i_flg_buffer_all = con_on i_appl_ca_active = con_on CHANGING c_cobl = c_f_cobl c_subrc = c_subrc EXCEPTIONS OTHERS = 1.

AC_FAREA_EXISTENCE_CHECK CALL FUNCTION 'AC_FAREA_EXISTENCE_CHECK' EXPORTING id_func_area = c_f_cobl-fkber EXCEPTIONS func_area_not_existing = 1 OTHERS = 2.

GM_CODING_BLOCK_CHECK CALL FUNCTION 'GM_CODING_BLOCK_CHECK' EXPORTING i_cobl = c_f_cobl IMPORTING e_cobl = c_f_cobl EXCEPTIONS error_message = 1 OTHERS = 2.

FM_FIPEX_GET_FROM_FIPOS CALL FUNCTION 'FM_FIPEX_GET_FROM_FIPOS' EXPORTING i_fipos = c_f_cobl-fipos IMPORTING e_fipex = c_f_fmcha1-efipex EXCEPTIONS OTHERS = 1.

FM_FIKRS_CHECK_FAREA_ACTIVE CALL FUNCTION 'FM_FIKRS_CHECK_FAREA_ACTIVE' EXPORTING i_fikrs = g_f_control_data-fikrs EXCEPTIONS not_farea_active = 1.

FM_GET_FICTR_FIPOS_FROM_BUKRS CALL FUNCTION 'FM_GET_FICTR_FIPOS_FROM_BUKRS' EXPORTING i_bukrs = l_t_fmcha1-bukrs IMPORTING o_fictr = l_t_fmcha1-efistl EXCEPTIONS OTHERS = 1.

K_WERKS_OF_BUKRS_FIND CALL FUNCTION 'K_WERKS_OF_BUKRS_FIND' EXPORTING bukrs = p_bukrs TABLES itab_001w = l_t_001w EXCEPTIONS no_entry_in_t001k = 1 no_entry_in_t001w = 2 OTHERS = 3.

FM_GET_FICTR_FIPOS_FROM_BUKRS CALL FUNCTION 'FM_GET_FICTR_FIPOS_FROM_BUKRS' EXPORTING i_bukrs = l_t_fmcha1-bukrs IMPORTING o_fictr = l_t_fmcha1-efistl EXCEPTIONS OTHERS = 1.

DETERMIN_BWKEY_BUKRS_FOR_PLANT CALL FUNCTION 'DETERMIN_BWKEY_BUKRS_FOR_PLANT' EXPORTING werk = l_t_eban-werks IMPORTING bukrs = g_f_cobl-bukrs EXCEPTIONS OTHERS = 1.

FM_CHANGE_AA_TABWO_DISPLAY CALL FUNCTION 'FM_CHANGE_AA_TABWO_DISPLAY' EXPORTING i_eron = p_error i_alv_callback_prog = 'RFFMCHAN' TABLES t_fmcha1 = u_t_fmcha1 t_fmcha1_out = g_t_fmcha1_out "Note 1386411 t_fmout_fmch_old = g_t_errors.

FM_AUTO_ACCOUNT_GET_MM * CALL FUNCTION 'FM_AUTO_ACCOUNT_GET_MM' * EXPORTING * i_bklas = mbew-bklas * CHANGING * c_f_cobl = c_f_cobl * EXCEPTIONS * OTHERS = 1.

MR_ACCOUNT_ASSIGNMENT CALL FUNCTION 'MR_ACCOUNT_ASSIGNMENT' EXPORTING bewertungsklasse = mbew-bklas bewertung_modif = t001k-bwmod kontenplan = g_f_t001-ktopl soll_haben_kennzeichen = 'S' vorgangsschluessel = 'BSX' IMPORTING konto = c_f_cobl-hkont EXCEPTIONS OTHERS = 1.

FM_FIPEX_GET_FROM_FIPOS CALL FUNCTION 'FM_FIPEX_GET_FROM_FIPOS' EXPORTING i_fipos = u_f_itread-fipos IMPORTING e_fipex = c_t_errors-sfipex.

FM_CHANGE_AA_TABWO_HEADER CALL FUNCTION 'FM_CHANGE_AA_TABWO_HEADER' EXPORTING i_error = l_error i_test = p_simul IMPORTING e_f_lh_attributes = g_f_lh_attributes e_f_action_info = g_f_action_info TABLES e_t_top_data = g_t_top_data c_t_fmcha1 = g_t_fmcha1.

FM_DOCUMENT_DISPLAY CALL FUNCTION 'FM_DOCUMENT_DISPLAY' EXPORTING i_belnr = l_belnr i_bukrs = l_bukrs i_gjahr = l_gjahr i_wrttp = l_wrttp.

FM_FIKRS_CHECK_FAREA_ACTIVE CALL FUNCTION 'FM_FIKRS_CHECK_FAREA_ACTIVE' EXCEPTIONS not_farea_active = 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 RFFMCHAN or its description.