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

MF05AFGENJ SAP ABAP INCLUDE - documentation and ABAP source code







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

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 = bukrs_first IMPORTING schema = tax-kalsm.

LINEITEM_TAX_INDICATOR_DEFAULT CALL FUNCTION 'LINEITEM_TAX_INDICATOR_DEFAULT' EXPORTING i_kalsm = tax-kalsm i_koart = t020-koart i_glvor = 'RFBU' i_mwskz_kontext = acc_kontext-mwskz IMPORTING e_mwskz = bseg-mwskz.

FSKB_SUBSCREEN_ITEMS_IMP_PBO CALL FUNCTION 'FSKB_SUBSCREEN_ITEMS_IMP_PBO' EXPORTING i_bseg_kk = bseg i_buscs = rf05a-buscs i_scvtext = g_scvtext i_scvariant = acc_kontext-scvariant i_refresh = _refresh i_status = g_status i_lstml = t007a-lstml "Note205413 i_main_suppress_dialog = suppress_dialog "Note410289 i_document_exists = g_document_exists "Note434939 i_append = l_append "Note446825 i_existing_doc = g_existing_doc "Note447783 i_activetab = activetab "Note486418 i_komu = g_komu "Note568934 TABLES t_xbkpf = xbkpf t_xbseg = gl_items t_error = error_info.

FSKB_SUBSCREEN_ITEMS_EXP CALL FUNCTION 'FSKB_SUBSCREEN_ITEMS_EXP' IMPORTING e_picked_line = _buzei e_first_line = g_first_line "Note487375 e_last_line = g_last_line "Note487375 e_komu = g_komu "Note568934 TABLES t_xbkpf = xbkpf t_xbseg = gl_items t_error = error_info CHANGING "Note206755 c_egrel = eg-relevant "Note370542 c_okcode = ok-code "Note386041 c_suppress_dialog = suppress_dialog "Note206755 c_doc_item_texts_created = _doc_item_texts_created. "Note491708

J_1BSA_COMPONENT_ACTIVE CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE' EXPORTING bukrs = bkpf-bukrs component = '**' IMPORTING active_component = g_active_component EXCEPTIONS OTHERS = 1.

LINEITEM_GET_TEXT_FROM_CONTROL CALL FUNCTION 'LINEITEM_GET_TEXT_FROM_CONTROL' TABLES t_text = control_text EXCEPTIONS control_not_created = 4.

SAVE_TEXT CALL FUNCTION 'SAVE_TEXT' EXPORTING header = thead insert = 'X' savemode_direct = ' ' TABLES lines = save_text EXCEPTIONS OTHERS = 4.

SAVE_TEXT CALL FUNCTION 'SAVE_TEXT' EXPORTING header = thead savemode_direct = ' ' TABLES lines = save_text EXCEPTIONS OTHERS = 4.

COMMIT_TEXT CALL FUNCTION 'COMMIT_TEXT' EXPORTING object = thead-tdobject name = thead-tdname id = thead-tdid language = thead-tdspras.

FSKB_GET_TEMP_DOCUMENT CALL FUNCTION 'FSKB_GET_TEMP_DOCUMENT' IMPORTING e_tempd = _tempd.

POPUP_TO_CONFIRM_LOSS_OF_DATA CALL FUNCTION 'POPUP_TO_CONFIRM_LOSS_OF_DATA' EXPORTING textline1 = text-t02 titel = text-t01 IMPORTING answer = _answer.

READ_TEMP_DOCUMENT CALL FUNCTION 'READ_TEMP_DOCUMENT' EXPORTING i_uf05a = uf05a IMPORTING e_tmpbl = tmpbl TABLES * (del) t_bkpf = xbkpf "Note 365735 * (del) t_bseg = xbseg "Note 365735 * (del) t_bsec = xbsec "Note 365735 * (del) t_bsed = xbsed "Note 365735 * (del) t_bsez = xbsez "Note 365735 * (del) t_bset = xbset "Note 365735 t_bkpf = l_xbkpf "Note 365735 t_bseg = l_xbseg "Note 365735 t_bsec = l_xbsec "Note 365735 t_bsed = l_xbsed "Note 365735 t_bsez = l_xbsez "Note 365735 t_bset = l_xbset "Note 365735 t_acsplt = l_splttab "Note 376374 t_tiban = l_tiban "Note1033963 t_bnka = l_bnka "Note1033963 t_mandate = l_mandate "Note1611602 EXCEPTIONS not_found = 04.

ASSOCIATED_COMP_RETAIN CALL FUNCTION 'ASSOCIATED_COMP_RETAIN' EXPORTING account_type = ' ' company = tmpbl-vbund man_input = 'X' EXCEPTIONS others = 0.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' "Note424625 EXPORTING "Note424625 tcode = char "Note424625 EXCEPTIONS "Note424625 ok = 0 "Note424625 OTHERS = 4. "Note424625

AC_APAR_DIALOG_RESET CALL FUNCTION 'AC_APAR_DIALOG_RESET' "Note420718 EXPORTING "Note420718 i_lifnr = xbseg-lifnr. "Note420718

AC_APAR_DIALOG_RESET CALL FUNCTION 'AC_APAR_DIALOG_RESET'.

FSKB_DIALOG_RESET CALL FUNCTION 'FSKB_DIALOG_RESET'.

AC_APAR_DIALOG_OKCODE_SEND CALL FUNCTION 'AC_APAR_DIALOG_OKCODE_SEND' "Note440613 EXPORTING "Note440613 i_okcode = '9%GB'. "Note440613

FSKB_TRANSPORT_OKCODE





CALL FUNCTION 'FSKB_TRANSPORT_OKCODE' "Note440613 EXPORTING "Note440613 i_okcode = '9%GB'. "Note440613

REFRESH_TAX_TABLES CALL FUNCTION 'REFRESH_TAX_TABLES'.

GET_BSET_ITEM CALL FUNCTION 'GET_BSET_ITEM' "Note482367 TABLES "Note482367 t_bset = xbset. "Note482367

PP_ENJOY_TAX_CONTROL_DATA call function 'PP_ENJOY_TAX_CONTROL_DATA'. "N944752

DELETE_TEMP_DOCUMENT * call function 'DELETE_TEMP_DOCUMENT' * exporting * i_uf05a = uf05a.

ACC_CA_TREE_DELETE_NODE CALL FUNCTION 'ACC_CA_TREE_DELETE_NODE' EXPORTING i_node_key = _node_key i_no_flush = 'X' "Note 432950 EXCEPTIONS invalid_tree_number = 1 control_error = 2 OTHERS = 3.

RS_HDSYS_GET_SC_VARIANT CALL FUNCTION 'RS_HDSYS_GET_SC_VARIANT' EXPORTING progname = 'SAPLFSKB' dynpro = '0100' IMPORTING scvariant = _scvariant TABLES values_scvariant = tab_values_scvariant guixt_scripts = tab_guixt_scripts.

FSKB_GET_ASSIGNMENT_MODEL CALL FUNCTION 'FSKB_GET_ASSIGNMENT_MODEL' EXPORTING i_item = p_item i_t003 = t003 "Note499343 IMPORTING e_kmnam = _kmnam e_komu = g_komu "Note568934 TABLES t_xbseg = xbseg t_xbsez = xbsez "Note378594 EXCEPTIONS cancelled = 1.

RS_HDSYS_VALUES_SC_VARIANT CALL FUNCTION 'RS_HDSYS_VALUES_SC_VARIANT' EXPORTING i_progname = 'SAPLFSKB' i_dynpro = '0100' i_liste = ' ' texts_too = 'X' TABLES e_shdsvci = tab_shdsvci e_shdsvtxci = tab_shdsvtxci EXCEPTIONS cancelled = 1 no_variants = 2 OTHERS = 3.

FI_CHECK_SCVARIANT CALL FUNCTION 'FI_CHECK_SCVARIANT' EXPORTING i_progname = 'SAPLFSKB' i_dynpro = '0100' i_scvariant = _scvariant EXCEPTIONS not_found = 1 OTHERS = 2.

FSKB_GET_SCREEN_VARIANT CALL FUNCTION 'FSKB_GET_SCREEN_VARIANT' IMPORTING e_scname = _scvariant.

FI_TEXTS_DOC_ITEM_INITIALIZE CALL FUNCTION 'FI_TEXTS_DOC_ITEM_INITIALIZE'. "Note998218

PP_WRAP_DOCUMENT_ENJ CALL FUNCTION 'PP_WRAP_DOCUMENT_ENJ' EXPORTING i_belnr = parked_docs-belnr i_bukrs = parked_docs-ausbk i_gjahr = parked_docs-gjahr i_funcl = ls_t020-funcl "Note 424921 IMPORTING e_xwffr = g_xwffr e_xfrge = g_xfrge e_upddt = g_upddt e_reldt = g_reldt e_updtm = g_updtm e_reltm = g_reltm e_xprfg = g_xprfg e_pargb = rf05a-pargb "Note937527 tables t_xbkpf = xbkpf t_xbsec = xbsec t_xbseg = xbseg t_xbset = xbset t_xbsez = xbsez "Note 350142 t_splttab = splttab "Note481737 t_spltwt = spltwt "Note481737 EXCEPTIONS * (del) cancelled = 1. "Note 393245

REFRESH_TAX_TABLES CALL FUNCTION 'REFRESH_TAX_TABLES'.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' "Note 424921 EXPORTING "Note 424921 tcode = char "Note 424921 EXCEPTIONS "Note 424921 ok = 0 "Note 424921 OTHERS = 4. "Note 424921

FI_WT_READ_T001 CALL FUNCTION 'FI_WT_READ_T001' "Note 362872 EXPORTING "Note 362872 i_bukrs = xbseg-bukrs "Note 362872 IMPORTING "Note 362872 t_t001 = l_t001 "Note 362872 EXCEPTIONS "Note 362872 not_found = 1 "Note 362872 OTHERS = 2. "Note 362872

FI_WT_READ_WITH_ITEM CALL FUNCTION 'FI_WT_READ_WITH_ITEM' EXPORTING i_bukrs = xbseg-bukrs i_belnr = xbseg-belnr i_gjahr = xbseg-gjahr i_buzei = xbseg-buzei EXCEPTIONS with_info_already_in_memory = 1 not_found = 2 OTHERS = 3.

FI_SET_CPD CALL FUNCTION 'FI_SET_CPD' EXPORTING i_laufd = sy-tabix is_bsec = xbsec.

GET_BSET_ITEM CALL FUNCTION 'GET_BSET_ITEM' "Note482367 TABLES "Note482367 t_bset = xbset. "Note482367

AC_APAR_DIALOG_RESET CALL FUNCTION 'AC_APAR_DIALOG_RESET' "Note406777 EXPORTING "Note406777 i_gjahr = xbseg-gjahr "Note419812 i_belnr = xbseg-belnr "Note406777 i_lifnr = xbseg-lifnr. "Note420718




AC_APAR_DIALOG_OKCODE_SEND CALL FUNCTION 'AC_APAR_DIALOG_OKCODE_SEND' "Note440613 EXPORTING "Note440613 i_okcode = '9%PD'. "Note440613

FSKB_DIALOG_RESET CALL FUNCTION 'FSKB_DIALOG_RESET'.

FSKB_TRANSPORT_OKCODE CALL FUNCTION 'FSKB_TRANSPORT_OKCODE' "Note440613 EXPORTING "Note440613 i_okcode = '9%PD'. "Note440613

DOCHEADER_PERIOD_FIND_CHECK CALL FUNCTION 'DOCHEADER_PERIOD_FIND_CHECK' EXPORTING i_bukrs = bkpf-bukrs i_bldat = _bldat i_budat = bkpf-budat i_softcheck = l_softcheck "Note444834 i_ledger = g_group_ledger "/glflex/ i_ldgrp = bkpf-ldgrp * I_KOART = '+' * I_HKONT = '+' IMPORTING e_gjahr = bkpf-gjahr e_xrueb = bkpf-xrueb e_currj = bkp1-currj CHANGING c_monat = bkpf-monat.

DOCHEADER_PERIOD_FIND_CHECK CALL FUNCTION 'DOCHEADER_PERIOD_FIND_CHECK' EXPORTING i_bukrs = bkpf-bukrs i_bldat = _bldat i_budat = bkpf-budat i_softcheck = l_softcheck "Note444834 i_ledger = g_group_ledger "/glflex/ * I_KOART = '+' * I_HKONT = '+' IMPORTING e_gjahr = bkpf-gjahr e_xrueb = bkpf-xrueb e_currj = bkp1-currj CHANGING c_monat = bkpf-monat.

FSKB_GET_TEMP_DOCUMENT CALL FUNCTION 'FSKB_GET_TEMP_DOCUMENT' EXPORTING mode = 'D' " Deletion of document Note 0336805 IMPORTING e_tempd = _tempd.

DELETE_TEMP_DOCUMENT CALL FUNCTION 'DELETE_TEMP_DOCUMENT' EXPORTING i_uf05a = uf05a.

ACC_CA_TREE_DELETE_NODE CALL FUNCTION 'ACC_CA_TREE_DELETE_NODE' EXPORTING i_node_key = _node_key EXCEPTIONS invalid_tree_number = 1 control_error = 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 MF05AFGENJ or its description.