SAP Reports / Programs | Financial Accounting(FI) SAP FI

MF05AFCENJ SAP ABAP INCLUDE - documentation and ABAP source code







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


INCLUDES used within this REPORT MF05AFCENJ

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:

FIND_TAX_SPREADSHEET CALL FUNCTION 'FIND_TAX_SPREADSHEET' EXPORTING buchungskreis = t001-bukrs IMPORTING schema = t005-kalsm EXCEPTIONS not_found = 04.

DOCHEADER_CONVDATES_DETERMINE CALL FUNCTION 'DOCHEADER_CONVDATES_DETERMINE' EXPORTING i_budat = bkpf-budat i_bldat = bkpf-bldat i_umrd2 = bkpf-umrd2 i_umrd3 = bkpf-umrd3 i_wwert = bkpf-wwert IMPORTING e_wwer2 = wae_wwer2 e_wwer3 = wae_wwer3.

DOCHEADER_COMP_CODE_WITH_POPUP CALL FUNCTION 'DOCHEADER_COMP_CODE_WITH_POPUP' EXPORTING i_bukrs = bkpf-bukrs i_status = g_status IMPORTING e_bukrs = bkpf-bukrs EXCEPTIONS canceled = 1 OTHERS = 2.

FI_COMPANY_CODE_CHECK CALL FUNCTION 'FI_COMPANY_CODE_CHECK' "...

DOCHEADER_AUTHORITY_CHECK CALL FUNCTION 'DOCHEADER_AUTHORITY_CHECK' EXPORTING i_bukrs = bkpf-bukrs i_blart = space i_brgru = space i_status = g_status EXCEPTIONS error_message = 99.

DOCHEADER_COMP_CODE_WITH_POPUP CALL FUNCTION 'DOCHEADER_COMP_CODE_WITH_POPUP' EXPORTING i_bukrs = bkpf-bukrs i_status = g_status IMPORTING e_bukrs = bkpf-bukrs EXCEPTIONS canceled = 1 OTHERS = 2.

FIN_UI_DECO_CUSTOMIZED_MESSAGE CALL FUNCTION 'FIN_UI_DECO_CUSTOMIZED_MESSAGE' "Note568934 EXPORTING i_arbgb = 'F5A' i_dtype = 'I' i_msgnr = '088' i_var01 = p_text i_var02 = p_scvarname.

FI_DOCUMENT_TYPE_CHECK CALL FUNCTION 'FI_DOCUMENT_TYPE_CHECK' EXPORTING i_blart = bkpf-blart i_koart = koart x_dialog = dialog EXCEPTIONS OTHERS = 4.

FAGL_GET_NUMBER_RANGE_FOR_PN * CALL FUNCTION 'FAGL_GET_NUMBER_RANGE_FOR_PN' * EXPORTING * I_RLDNR = g_group_ledger * I_BLART = bkpf-blart * IMPORTING * ES_T003 = ls_t003.

FSKB_CHECK_STATE CALL FUNCTION 'FSKB_CHECK_STATE' EXPORTING i_fcode = fcode IMPORTING e_check_req = g_check_req.

PP_WF_CHECK_RELEVANT CALL FUNCTION 'PP_WF_CHECK_RELEVANT' EXPORTING "Note 385667 i_document_exists = g_document_exists "Note 385667 i_stsim = rf05a-stsim "Note454307 i_gener = t020-gener "Note524854 TABLES t_xbkpf = xbkpf t_xbseg = xbseg t_xbsec = xbsec CHANGING c_xwffr = p_xwffr EXCEPTIONS company_not_found = 1 OTHERS = 2.

SWO_QUERY_REQUESTER CALL FUNCTION 'SWO_QUERY_REQUESTER' TABLES requester = tab_requester EXCEPTIONS not_found = 1 OTHERS = 2.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = l_tcode EXCEPTIONS ok = 0 not_ok = 1 OTHERS = 2.

DOCHEADER_NUMBER_CHECK CALL FUNCTION 'DOCHEADER_NUMBER_CHECK' EXPORTING i_blart = bkpf-blart i_bukrs = bkpf-bukrs i_gjahr = bkpf-gjahr i_belnr = bkpf-belnr i_bstat = bkpf-bstat i_rldnr = g_group_ledger "/glflex Note1067552 EXCEPTIONS external_number_assignment = 1 internal_number_assignment = 2 number_already_assigned = 0 number_not_in_range = 4 other_error = 0 OTHERS = 0.

FI_CPD_EXISTS CALL FUNCTION 'FI_CPD_EXISTS' "Note516899 IMPORTING "Note516899 e_exists = warning. "Note516899

FI_COMPANY_CODE_DATA CALL FUNCTION 'FI_COMPANY_CODE_DATA' EXPORTING i_bukrs = buktab-bukrs IMPORTING e_t001 = t001.



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