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

MF05AFPENJ SAP ABAP INCLUDE - documentation and ABAP source code







MF05AFPENJ 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 MF05AFPENJ 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 MF05AFPENJ. "Basic submit
SUBMIT MF05AFPENJ AND RETURN. "Return to original report after report execution complete
SUBMIT MF05AFPENJ 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 MF05AFPENJ

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:

FAGL_CHECK_GLFLEX_ACTIVE CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIVE' EXPORTING ID_BUKRS = BKPF-BUKRS "Comp code activation IMPORTING e_glflex_active = gd_glflex_active.

FAGL_MGPLN_IN_CLIENT CALL FUNCTION 'FAGL_MGPLN_IN_CLIENT' IMPORTING e_migpln_exist = sb_mig_active.

RS_HDSYS_GET_TCODE CALL FUNCTION 'RS_HDSYS_GET_TCODE' IMPORTING param_tcode = ld_tcode rc = ld_rc.

OPEN_FI_PERFORM_00001080_E CALL FUNCTION 'OPEN_FI_PERFORM_00001080_E' "DMC EXPORTING "DMC i_aktyp = g_aktyp "DMC i_dyncl = t020-dyncl "DMC IMPORTING "DMC e_abez = ofiwa-xtext "DMC TABLES "DMC t_ftexts = ftextstab. "DMC

RS_HDSYS_GET_TCODE CALL FUNCTION 'RS_HDSYS_GET_TCODE' "Note 421236 IMPORTING "Note 421236 rc = rcode. "Note 421236

RS_HDSYS_GET_SC_VARIANT CALL FUNCTION 'RS_HDSYS_GET_SC_VARIANT' "Note 331997 EXPORTING "Note 331997 progname = 'SAPLFSKB' "Note 331997 dynpro = '0100' "Note 331997 IMPORTING "Note 331997 scvariant = g_scvariant "Note 331997 TABLES "Note 331997 values_scvariant = tab_values_scvariant "Note 331997 guixt_scripts = tab_guixt_scripts. "Note 331997

BDC_RUNNING CALL FUNCTION 'BDC_RUNNING' "Note420164 IMPORTING "Note420164 bi_info = bi "Note420164 EXCEPTIONS "Note420164 OTHERS = 0. "Note420164

OPEN_FI_PERFORM_00001085_E CALL FUNCTION 'OPEN_FI_PERFORM_00001085_E' "DMC EXPORTING "DMC i_koart = t020-koart "DMC i_shkzg = 'S' "DMC i_aktyp = t020-aktyp "DMC i_dyncl = t020-dyncl "DMC i_bkpf = bkpf "ERP05 i_bseg = xbseg "Note1100417 TABLES "DMC t_ftexts = ftextstab. "DMC

OPEN_FI_PERFORM_00001085_E CALL FUNCTION 'OPEN_FI_PERFORM_00001085_E' "DMC EXPORTING "DMC i_koart = t020-koart "DMC i_shkzg = 'H' "DMC i_aktyp = t020-aktyp "DMC i_dyncl = t020-dyncl "DMC i_bkpf = bkpf "ERP05 i_bseg = xbseg "Note1100417 TABLES "DMC t_ftexts = ftextstab. "DMC

DOCHEADER_DOCTYPE_DEFAULT_READ CALL FUNCTION 'DOCHEADER_DOCTYPE_DEFAULT_READ' EXPORTING i_koart = t020-koart i_buscs = rf05a-buscs i_bukrs = bkpf-bukrs IMPORTING e_blart = bkpf-blart.

DOCHEADER_CROSSCOMP CALL FUNCTION 'DOCHEADER_CROSSCOMP' EXPORTING crosscomp = g_crosscomp.

FM00_CHECK_ISPS CALL FUNCTION 'FM00_CHECK_ISPS' "Retrofit IS-PS IMPORTING * E_DA_ACTIV = * E_EU_ACTIV = * E_KOM_ACTIV = e_flg_isps_not_active = g_act_component_isps * E_FUNCTION_ACTIVE = * E_FUND_ACTIVE = * E_GRANT_ACTIVE = * E_PS_US_ACTIVE = .

DOCHEADER_NUMBER_GET_INFO * (del) call function 'DOCHEADER_NUMBER_GET_INFO' "Note416081 * (del) exporting "Note416081 * (del) i_numkr = p_numkr "Note416081 * (del) i_bukrs = xbkpf-bukrs "Note416081 * (del) i_gjahr = xbkpf-gjahr "Note416081 * (del) importing "Note416081 * (del) e_nriv = nriv "Note416081 * (del) exceptions "Note416081 * (del) number_range_not_found = 1 "Note416081 * (del) others = 2. "Note416081



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