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

SAPFFMFA SAP ABAP Report - RW Formlibrary for Table FMRFA







SAPFFMFA 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 SAPFFMFA into the relevant SAP transactions such as SE38 or SE80


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 SAPFFMFA. "Basic submit
SUBMIT SAPFFMFA AND RETURN. "Return to original report after report execution complete
SUBMIT SAPFFMFA VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: RW Formlibrary for Table FMRFA


INCLUDES used within this REPORT SAPFFMFA

INCLUDE FFMRFAF01.


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:

FM_SUBSTRING_GET_DESCRIPTION * CALL FUNCTION 'FM_SUBSTRING_GET_DESCRIPTION' * EXPORTING * I_MASDATID = '1' * I_STRID = l_strid * I_SUB1 = l_valuesub ** I_SUB2 = ** I_SUB3 = ** I_SUB4 = ** I_SUB5 = * IMPORTING * E_DESC1_SH = esb_shtxt * E_DESC1_LO = esb_lotxt ** E_DESC2_SH = ** E_DESC2_LO = ** E_DESC3_SH = ** E_DESC3_LO = ** E_DESC4_SH = ** E_DESC4_LO = ** E_DESC5_SH = ** E_DESC5_LO = * .

G_READ_TEXT CALL FUNCTION 'G_READ_TEXT' EXPORTING DATE_VALID = l_DATE FIELD = l_FIELD *" RECORD_KEY = l_RECORD_KEY RECORD_KEY = TABLE = l_table VALUE = l_VALUE LANGU = l_LANGU IMPORTING STEXT = e01_shorttext LTEXT = e01_longtext EXCEPTIONS NOT_FOUND = 4 OTHERS = 8.

FMRP_AUTHORITY_ROLE CALL FUNCTION 'FMRP_AUTHORITY_ROLE' EXPORTING I_USNAME = sy-uname I_SELOBJECT = l_sel_object IMPORTING E_OLD = l_auth_check-auth_o E_AUTH_ON = l_auth_check-auth.

FMRP_AUTHORITY_CHECK CALL FUNCTION 'FMRP_AUTHORITY_CHECK' EXPORTING I_FMAUTH_KONTO = l_t_FMAUTH_KONTO I_FIKRS = fmrfa-fikrs I_GJAHR = fmrfa-ryear IMPORTING E_FMAUTH_KONTO = l_t_e_FMAUTH_KONTO.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = l_f_adate FOREIGN_AMOUNT = i_f_amount FOREIGN_CURRENCY = i_f_curr LOCAL_CURRENCY = e_f_curr TYPE_OF_RATE = con_repctype IMPORTING LOCAL_AMOUNT = l_f_AMOUNT EXCEPTIONS others = 1.

G_RW_PROGRAM_GET_INFO CALL FUNCTION 'G_RW_PROGRAM_GET_INFO' EXPORTING I_PROGRAM_NAME = SY-CPROG IMPORTING E_REPORT_GROUP = l_f_RGS_RGJNR EXCEPTIONS INVALID_PROGRAM_NAME = 1 INVALID_PROGRAM_CLASS = 2 NO_RESULT = 3 OTHERS = 4.

G_RW_REPORT_GROUP_GET_FIELDTAB CALL FUNCTION 'G_RW_REPORT_GROUP_GET_FIELDTAB' EXPORTING I_REPORT_GROUP = l_f_RGS_RGJNR I_NOT_BUFFERED = con_on TABLES E_T_FIELDS = D_RW_SELTAB EXCEPTIONS REPORT_GROUP_NOT_FOUND = 1 DATA_NOT_FOUND = 2 OTHERS = 3.

FMFK_FIKRS_READ CALL FUNCTION 'FMFK_FIKRS_READ' EXPORTING * IP_APPLICATION_DATA = ' ' IP_FIKRS = l_f_fikrs * IP_FMA_OBJNR = ' ' * IP_LANGUAGE = ' ' * IP_TEXT = ' ' * IP_BUFFER_RESET = ' ' * IP_APPLC = ' ' IMPORTING F_FM01 = fm01 * F_FM01A = * F_FM01T = * F_FM01D = EXCEPTIONS * INPUT_ERROR = 1 * NOT_FOUND = 2 OTHERS = 3.

FI_COMPANY_CODE_DATA CALL FUNCTION 'FI_COMPANY_CODE_DATA' EXPORTING I_BUKRS = l_f_bukrs IMPORTING E_T001 = t001 EXCEPTIONS OTHERS = 1.

OBJECT_IDENTIFICATION_GET call function 'OBJECT_IDENTIFICATION_GET' EXPORTING objnr = u_objnrz text_wanted = con_on IMPORTING e_ionra = l_f_ionra e_text = l_sav_text EXCEPTIONS OTHERS = 1.

CJPN_INTERN_TO_EXTERN_CONV call function 'CJPN_INTERN_TO_EXTERN_CONV' EXPORTING edit_imp = space int_num = l_f_ionra-pspnr IMPORTING ext_num = ionra-posid EXCEPTIONS others = 1.

FINCODE_READ CALL FUNCTION 'FINCODE_READ' EXPORTING IP_FIKRS = u_f_fikrs IP_FINCODE = u_f_fincode IMPORTING F_FMFINCODE = fmfincode EXCEPTIONS OTHERS = 1.

FM_FIPEX_GET_FROM_POSIT CALL FUNCTION 'FM_FIPEX_GET_FROM_POSIT' EXPORTING I_FIKRS = u_f_fikrs I_POSIT = u_f_posit IMPORTING E_FIPEX = fmposit-fipex EXCEPTIONS INPUT_ERROR = 1 DATA_NOT_FOUND = 2 OTHERS = 3.

KOKRS_GET_FROM_BUKRS CALL FUNCTION 'KOKRS_GET_FROM_BUKRS' EXPORTING I_BUKRS = uf_bukrs IMPORTING E_KOKRS = lf_kokrs EXCEPTIONS NO_KOKRS_FOUND = 1 OTHERS = 2.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING KOKRS = lf_kokrs IMPORTING E_TKA01 = tka01 EXCEPTIONS NOT_FOUND = 1 NOT_FOUND_GJAHR = 2 OTHERS = 3.

FM_COM_ITEM_READ_SINGLE_DATA CALL FUNCTION 'FM_COM_ITEM_READ_SINGLE_DATA' EXPORTING I_FIKRS = u_fikrs * I_VARNT = '000' I_GJAHR = u_gjahr I_FIPEX = u_fipex * I_FLG_TEXT = ' ' * I_FLG_HIERARCHY = ' ' IMPORTING E_F_FMCI = u_fmci * E_F_FMCIT = * E_F_FMHICI = EXCEPTIONS MASTER_DATA_NOT_FOUND = 1 HIERARCHY_DATA_NOT_FOUND = 2 INPUT_ERROR = 3 OTHERS = 4.

KBPR_READ_DATA_RANGE CALL FUNCTION 'KBPR_READ_DATA_RANGE' EXPORTING I_FIKRS = fm01-fikrs I_FIKRS_CA_PERIV = con_on *{ REPLACE PI7K002496 1 *\ I_FIKRS_PERIV = fm01-periv * I_FIKRS_PERIV = fm01-periv * *} REPLACE I_INIT = con_on * I_NEW_LEDGER = ' ' I_YEAR_END = l_f_year_end I_YEAR_START = l_f_year_start I_READ_BPGE = l_flg_bpge I_READ_BPJA = l_flg_bpja I_READ_BPPE = l_flg_bppe IMPORTING E_SUBRC = g_f_subrc TABLES T_BP_GE = l_t_bpge T_BP_JA = l_t_bpja T_BP_PE = l_t_bppe TT_ACTIVITY = r_vorga TT_OBJNR = l_r_objnr TT_POSIT = l_t_posit * TT_TRGKZ = '' TT_VALUE = r_rwrttp TT_VERSN = r_versn TT_GEBER = r_rfonds TT_FAREA = r_rfarea EXCEPTIONS OTHERS = 1.

FM_COM_ITEM_READ_SINGLE_DATA * CALL FUNCTION 'FM_COM_ITEM_READ_SINGLE_DATA' * EXPORTING * I_FIKRS = u_t_FMRFA-fikrs ** I_VARNT = '000' * I_GJAHR = u_t_FMRFA-ryear * I_FIPEX = u_t_FMRFA-rfipex * IMPORTING * E_F_FMCI = fmci ** EXCEPTIONS ** MASTER_DATA_NOT_FOUND = 1 ** HIERARCHY_DATA_NOT_FOUND = 2 ** INPUT_ERROR = 3 ** OTHERS = 4 * .

G_INTERVAL_GET_NEXT





CALL FUNCTION 'G_INTERVAL_GET_NEXT' EXPORTING control_block = l_cb index = l_index NO_VARIABLES_REPLACEMENT = 'X' IMPORTING entry = l_entry header = l_header formula = l_formula EXCEPTIONS end_of_intervals = 1 invalid_index = 2 OTHERS = 3.

G_INTERVAL_READ_VARIABLES CALL FUNCTION 'G_INTERVAL_READ_VARIABLES' EXPORTING INDEX = l_entry-seqnr NO_INTERNAL_VARIABLE = space IMPORTING VARIABLE_FROM = l_from VARIABLE_TO = l_to EXCEPTIONS INVALID_INDEX = 01 NO_VARIABLE_USED = 02.

G_RW_PROGRAM_GET_INFO CALL FUNCTION 'G_RW_PROGRAM_GET_INFO' EXPORTING i_program_name = sy-cprog IMPORTING e_report_group = l_rep_group e_program_version = l_prog_version.

G_RW_READ_TABLE_VARIABLES CALL FUNCTION 'G_RW_READ_TABLE_VARIABLES' EXPORTING report_group = l_rep_group i_versn = l_prog_version TABLES variables = l_t_var.

G_VARIABLE_READ_T802G CALL FUNCTION 'G_VARIABLE_READ_T802G' EXPORTING VARIABLE = lt_var-variable+1 BYPASS_BUFFER = con_off IMPORTING T802G_READ = l_f_field EXCEPTIONS VARIABLE_NOT_FOUND = 1 OTHERS = 2.

G_VARIABLE_READ_T802G CALL FUNCTION 'G_VARIABLE_READ_T802G' EXPORTING VARIABLE = l_f_seltab-selname+1 BYPASS_BUFFER = con_off IMPORTING T802G_READ = l_f_field EXCEPTIONS VARIABLE_NOT_FOUND = 1 OTHERS = 2.

G_SET_INSERT CALL FUNCTION 'G_SET_INSERT' EXPORTING SETNAME = u_f_seltab-low MAINTENANCE = con_on IMPORTING HEADER = l_f_SET_HEADER INDEX = l_f_SET_INDEX EXCEPTIONS SET_NOT_FOUND = 01.

G_INTERVAL_GET_NEXT CALL FUNCTION 'G_INTERVAL_GET_NEXT' EXPORTING CONTROL_BLOCK = 1 INDEX = l_f_SET_INDEX IMPORTING ENTRY = l_f_SET_ENTRY EXCEPTIONS END_OF_INTERVALS = 1 INVALID_INDEX = 2.

FIKRS_GET_FROM_BUKRS_RANGES CALL FUNCTION 'FIKRS_GET_FROM_BUKRS_RANGES' TABLES I_T_BUKRS = r_rbukrs O_T_FIKRS = lt_fm01 EXCEPTIONS NO_FIKRS_FOUND = 1 OTHERS = 2.

FIKRS_READ_WITH_OPTIONS CALL FUNCTION 'FIKRS_READ_WITH_OPTIONS' TABLES T_FIKRS = r_fikrs T_FM01 = lt_fm01 EXCEPTIONS OTHERS = 1.

FM_BUKRS_GET_FROM_FIKRS_RANGES CALL FUNCTION 'FM_BUKRS_GET_FROM_FIKRS_RANGES' TABLES T_FIKRS = gr_fikrs T_T001 = lt_t001 EXCEPTIONS OTHERS = 1.

FMRW_CHECK_SELSCREEN_INPUT call function 'FMRW_CHECK_SELSCREEN_INPUT' exporting i_t801k = i_t801k i_rgjnr = i_rgjnr i_rname = i_rname i_dsource = i_dsource i_x_rri_active = i_x_rri_active tables it_seltab = i_t_seltab it_dim_s = it_dim_s it_dim = it_dim EXCEPTIONS ERROR = 1 OTHERS = 2.

MESSAGES_ACTIVE call function 'MESSAGES_ACTIVE' exceptions not_active = 1 others = 2.

MESSAGES_INITIALIZE call function 'MESSAGES_INITIALIZE'.

MESSAGE_STORE call function 'MESSAGE_STORE' exporting arbgb = i_arbgb msgty = i_msgty msgv1 = i_msgv1 msgv2 = i_msgv2 msgv3 = i_msgv3 msgv4 = i_msgv4 txtnr = i_txtnr zeile = i_zeile exceptions message_type_not_valid = 1 not_active = 2 others = 3.



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 SAPFFMFA or its description.