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

MF05AFHENJ SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

DOCHEADERFIELD_INIT CALL FUNCTION 'DOCHEADERFIELD_INIT' EXPORTING i_t020 = t020 i_firstcall = first_call i_koart = 'S' i_document_exists = g_document_exists CHANGING c_head = acgl_head.

FI_DOCUMENT_TYPE_DATA CALL FUNCTION 'FI_DOCUMENT_TYPE_DATA' EXPORTING i_blart = acgl_head-blart i_koart = 'S' i_langu = sy-langu IMPORTING e_t003 = t003 e_ltext = _txt EXCEPTIONS error_message = 01.

DOCHEADERFIELD_MODIFY CALL FUNCTION 'DOCHEADERFIELD_MODIFY' EXPORTING i_bkpf = bkpf i_sgroup2 = screen-group2 i_sgroup3 = screen-group3 i_sgroup4 = screen-group4 i_param = rfopt i_parame = rfopte i_t020 = t020 i_name = fieldname i_firstcall = first_call i_anzbz = rf05a-anzbz i_document_exists = g_document_exists i_status = g_status i_headvalch = x_headvalch "Note1078655 IMPORTING e_screeninput = screen-input e_screenoutput = screen-output e_screenrequired = screen-required e_screeninvisible = screen-invisible e_changed = changed.

CHECK_PLANTS_ABROAD_ACTIVE CALL FUNCTION 'CHECK_PLANTS_ABROAD_ACTIVE' EXPORTING i_land1 = t001-land1 IMPORTING e_fi_isactive = xwia.

FI_VALIDATION_HEADER CALL FUNCTION 'FI_VALIDATION_HEADER' EXPORTING i_bkpf = bkpf EXCEPTIONS error_message = 1.

HEADERVALIDATION_CHECKED CALL FUNCTION 'HEADERVALIDATION_CHECKED'. "Note 654401

FI_VALIDATION_HEADER CALL FUNCTION 'FI_VALIDATION_HEADER' "Note 754620 EXPORTING "Note 754620 i_bkpf = bkpf. "Note 754620

HEADERVALIDATION_CHECKED CALL FUNCTION 'HEADERVALIDATION_CHECKED'. "Note 654401

LINEITEM_READ_TTXD CALL FUNCTION 'LINEITEM_READ_TTXD' "Note 212989 EXPORTING "Note 212989 i_kalsm = tax-kalsm "Note 212989 IMPORTING "Note 212989 e_ttxd = ttxd. "Note 212989

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = 'SHD0' EXCEPTIONS ok = 1 not_ok = 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 MF05AFHENJ or its description.