SAP Reports / Programs | Financial Accounting | Asset Accounting | Line Item Settlement of AUC(FI-AA-AA-TR-SL) SAP FI

MA12BFXX SAP ABAP INCLUDE - Main routines for SAPMA12B







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


Text pool values


Title: Main routines for SAPMA12B
Text Symbol: 001 = ***GENERIC RETIREMENT***


INCLUDES used within this REPORT MA12BFXX

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:

POPUP_TO_CONFIRM_LOSS_OF_DATA CALL FUNCTION 'POPUP_TO_CONFIRM_LOSS_OF_DATA' EXPORTING titel = '' textline1 = text-009 textline2 = text-010 IMPORTING answer = flg_answer.

POPUP_TO_CONFIRM_LOSS_OF_DATA CALL FUNCTION 'POPUP_TO_CONFIRM_LOSS_OF_DATA' EXPORTING titel = '' textline1 = '' textline2 = '' IMPORTING answer = flg_answer.

ANLA_READ_MULTIPLE_INTO_ANTS CALL FUNCTION 'ANLA_READ_MULTIPLE_INTO_ANTS' EXPORTING i_bukrs = anla-bukrs i_anln1 = anla-anln1 i_anln2 = anla-anln2 i_lock = flg_anlloc TABLES t_ants = xants.

ANLA_READ_SINGLE CALL FUNCTION 'ANLA_READ_SINGLE' EXPORTING f_anla = anla i_lock = flg_anlloc i_error_if_found = ' ' IMPORTING f_anla = anla.

TABWV_READ CALL FUNCTION 'TABWV_READ' EXPORTING f_tabwv = tabwv IMPORTING f_tabwv = tabwv.

ANLB_READ_MULTIPLE_AFABE CALL FUNCTION 'ANLB_READ_MULTIPLE_AFABE' EXPORTING i_anln1 = xants-anln1 i_anln2 = xants-anln2 i_bukrs = xants-bukrs TABLES t_anlb = xanlb.

ANEKPV_READ_MULTIPLE_AFABE_ALL CALL FUNCTION 'ANEKPV_READ_MULTIPLE_AFABE_ALL' EXPORTING i_anln1 = xants-anln1 i_anln2 = xants-anln2 i_bukrs = xants-bukrs TABLES t_anlb = xanlb t_anekpv = yanekp.

ANLC_READ_MULTIPLE_AFABE CALL FUNCTION 'ANLC_READ_MULTIPLE_AFABE' EXPORTING i_anln1 = anla-anln1 i_anln2 = anla-anln2 i_bukrs = anla-bukrs i_gjahr = hlp_budat_gjahr TABLES t_anlc = xanlc.

ANEA_READ_MULTIPLE_GJAHR_ALL CALL FUNCTION 'ANEA_READ_MULTIPLE_GJAHR_ALL' EXPORTING i_anln1 = anla-anln1 i_anln2 = anla-anln2 i_bisgjahr = '9999' i_bukrs = anla-bukrs i_gjahr = '0000' TABLES t_anea = xanea t_anlb = xanlb EXCEPTIONS not_found = 1.

K_SETTLEMENT_REVERSE CALL FUNCTION 'K_SETTLEMENT_REVERSE' EXPORTING ak = auak IMPORTING ak = auak TABLES aa = xauaa ab = xauab ao = xauao as = xauas av = xauav ai = xauai EXCEPTIONS no_document_found = 01.

IM_DOCUMENT_CREATE CALL FUNCTION 'IM_DOCUMENT_CREATE' EXPORTING i_auak = auak i_awtyp = con_awtyp_aibu i_blart = *komk1-blart i_awref_rev = hlp_awref_rev i_aworg_rev = hlp_aworg_rev i_awsys = hlp_awsys i_aibu_add_info = ld_aibu_add_info IMPORTING et_faa_document = gt_faa_document TABLES t_auaa = xauaa t_auas = xauas t_acchd = yacchd t_accit = yaccit t_acccr = yacccr t_auai = xauai t_accda = yaccda t_anekp = xanekp.

ANLZ_READ_MULTIPLE_BDATU CALL FUNCTION 'ANLZ_READ_MULTIPLE_BDATU' EXPORTING i_adatu = anlz-adatu i_anln1 = anla-anln1 i_anln2 = anla-anln2 i_bdatu = anlz-bdatu i_bukrs = anla-bukrs IMPORTING e_anzahl = hlp_dbcnt TABLES t_anlz = xanlz EXCEPTIONS not_found = 1.

AUC_SETTLEMENT_AMOUNTS_CREATE CALL FUNCTION 'AUC_SETTLEMENT_AMOUNTS_CREATE' EXPORTING i_anln1 = anla-anln1 i_anln2 = anla-anln2 i_auak = auak i_bukrs = anla-bukrs i_gsber = xanlz-gsber IMPORTING e_auak = auak TABLES t_bela = xbela t_auaa = xauaa t_auas = xauas t_auai = xauai t_anepbr = xanepbr EXCEPTIONS receiver = 1.

IM_DOCUMENT_CREATE CALL FUNCTION 'IM_DOCUMENT_CREATE' EXPORTING i_auak = auak i_awtyp = con_awtyp_aibu i_aibu_add_info = ld_aibu_add_info * I_BLART = ' ' * I_BELNR = * I_AWREF_REV = * I_AWORG_REV = i_awsys = t000-logsys IMPORTING et_faa_document = gt_faa_document TABLES t_auaa = xauaa t_auas = xauas t_acchd = yacchd t_accit = yaccit t_acccr = yacccr t_auai = xauai * T_AUASI = t_accda = yaccda t_anekp = xanekp t_rece = xrece EXCEPTIONS no_bzdat = 1 OTHERS = 2.

ANEP_READ_MULTIPLE_AFABE CALL FUNCTION 'ANEP_READ_MULTIPLE_AFABE' EXPORTING i_anln1 = xanekp-anln1 i_anln2 = xanekp-anln2 i_bukrs = xanekp-bukrs i_gjahr = xanekp-gjahr i_lnran = xanekp-lnran TABLES t_anep = yanep t_anea = yanea "keine weitere Verwendung t_anlb = xanlb "keine weitere Verwendung EXCEPTIONS not_found = 1 OTHERS = 2.

AMBU_APPEND_LINES_OF_ITAB_AC CALL FUNCTION 'AMBU_APPEND_LINES_OF_ITAB_AC' TABLES t_anep = xanep.

ACC5_RETURN_APPEND_OR_CHECK CALL FUNCTION 'ACC5_RETURN_APPEND_OR_CHECK' EXPORTING i_refresh_return = 'X' "chg 578328 TABLES "ins 578328 t_return = lt_bapiret2. "ins 578328

AMBU_CALL_AC_DOCUMENT_CHECK CALL FUNCTION 'AMBU_CALL_AC_DOCUMENT_CHECK' TABLES t_accit = yaccit t_acccr = yacccr t_accda = yaccda t_acchd = yacchd t_return = lt_bapiret2.

AMDP_MESSAGE_SEND





CALL FUNCTION 'AMDP_MESSAGE_SEND' TABLES t_return = lt_bapiret2 EXCEPTIONS OTHERS = 4.

AMBU_ASSET_READ_FROM_BUFFER CALL FUNCTION 'AMBU_ASSET_READ_FROM_BUFFER' TABLES t_anepi = gt_anepi t_ants = gt_ants.

ACC5_RETURN_APPEND_OR_CHECK CALL FUNCTION 'ACC5_RETURN_APPEND_OR_CHECK' EXPORTING i_refresh_return = 'X' "chg 578328 TABLES "ins 578328 t_return = lt_bapiret2. "ins 578328

AMBU_CALL_AC_DOCUMENT_POST CALL FUNCTION 'AMBU_CALL_AC_DOCUMENT_POST' IMPORTING e_awref = hlp_awref e_aworg = hlp_aworg e_awtyp = hlp_awtyp e_awsys = hlp_awsys TABLES t_accit = yaccit t_acccr = yacccr t_accda = yaccda t_acchd = yacchd t_accdn = yaccdn t_return = lt_bapiret2.

AMDP_MESSAGE_SEND CALL FUNCTION 'AMDP_MESSAGE_SEND' TABLES t_return = lt_bapiret2 EXCEPTIONS OTHERS = 4.

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING i_bukrs = t001-bukrs IMPORTING e_x001 = x001.

AM_DOCUMENT_COMPLETE CALL FUNCTION 'AM_DOCUMENT_COMPLETE' TABLES t_abuz = yabuz t_bseg = ybseg.

AM_BELEGNUMMER_VERGEBEN CALL FUNCTION 'AM_BELEGNUMMER_VERGEBEN' EXPORTING i_bukrs = anla-bukrs i_gjahr = hlp_budat_gjahr IMPORTING e_belnr = hlp_awref.

AM_DOCUMENT_POST CALL FUNCTION 'AM_DOCUMENT_POST' EXPORTING i_awref = hlp_awref i_aworg = hlp_aworg i_awtyp = con_awtyp_aibu i_awsys = t000-logsys.

AC_DOCUMENT_CREATE CALL FUNCTION 'AC_DOCUMENT_CREATE' TABLES t_acchd = yacchd t_accit = yaccit t_acccr = yacccr t_accda = yaccda.

AM_BELEGNUMMER_VERGEBEN CALL FUNCTION 'AM_BELEGNUMMER_VERGEBEN' EXPORTING i_bukrs = anla-bukrs i_gjahr = hlp_budat_gjahr IMPORTING e_belnr = hlp_awref.

AC_DOCUMENT_POST CALL FUNCTION 'AC_DOCUMENT_POST' EXPORTING i_awref = hlp_awref i_aworg = hlp_aworg i_awtyp = con_awtyp_aibu i_awsys = t000-logsys.

ANEP_UPDATE_AUGLN CALL FUNCTION 'ANEP_UPDATE_AUGLN' IN UPDATE TASK TABLES t_anep = xanep.

AUC_DOCUMENT_POST CALL FUNCTION 'AUC_DOCUMENT_POST' EXPORTING i_auak = auak TABLES as = xauas av = xauav ai = xauai.

AM_FI_BELEGNUMMER_AUSGEBEN CALL FUNCTION 'AM_FI_BELEGNUMMER_AUSGEBEN' EXPORTING i_awsys = t000-logsys i_awtyp = con_awtyp_aibu i_aworg = hlp_aworg i_awref = hlp_awref EXCEPTIONS OTHERS = 1.

ANEP_READ_MULTIPLE_AFABE CALL FUNCTION 'ANEP_READ_MULTIPLE_AFABE' EXPORTING i_anln1 = xanekp-anln1 i_anln2 = xanekp-anln2 i_bukrs = xanekp-bukrs i_gjahr = xanekp-gjahr i_lnran = xanekp-lnran TABLES t_anep = yanep t_anea = yanea "keine weitere Verwendung t_anlb = xanlb "keine weitere Verwendung EXCEPTIONS not_found = 1 OTHERS = 2.

AMBU_APPEND_LINES_OF_ITAB_AC CALL FUNCTION 'AMBU_APPEND_LINES_OF_ITAB_AC' TABLES t_anep = xanep.

AMDS_DOCUMENT_SHOW CALL FUNCTION 'AMDS_DOCUMENT_SHOW' EXPORTING i_simu = lko74-testlauf i_display_only = 'X' IMPORTING e_ucomm = ld_ucomm * E_ACCIT_CHANGED = TABLES t_acchd = yacchd t_accit = yaccit t_acccr = yacccr t_accda = yaccda.

ACC5_RETURN_APPEND_OR_CHECK CALL FUNCTION 'ACC5_RETURN_APPEND_OR_CHECK' EXPORTING i_refresh_return = 'X' "chg 578328 TABLES "ins 578328 t_return = lt_bapiret2. "ins 578328

AMBU_CALL_AC_DOCUMENT_CHECK CALL FUNCTION 'AMBU_CALL_AC_DOCUMENT_CHECK' TABLES t_accit = yaccit t_acccr = yacccr t_accda = yaccda t_acchd = yacchd t_return = lt_bapiret2.




AMDP_MESSAGE_SEND CALL FUNCTION 'AMDP_MESSAGE_SEND' TABLES t_return = lt_bapiret2 EXCEPTIONS OTHERS = 4.

ACC5_RETURN_APPEND_OR_CHECK CALL FUNCTION 'ACC5_RETURN_APPEND_OR_CHECK' EXPORTING i_refresh_return = 'X' "chg 578328 TABLES "ins 578328 t_return = lt_bapiret2. "ins 578328

AMBU_CALL_AC_DOCUMENT_POST CALL FUNCTION 'AMBU_CALL_AC_DOCUMENT_POST' IMPORTING e_awref = hlp_awref e_aworg = hlp_aworg e_awtyp = hlp_awtyp e_awsys = hlp_awsys TABLES t_accit = yaccit t_acccr = yacccr t_accda = yaccda t_acchd = yacchd t_accdn = yaccdn t_return = lt_bapiret2.

AMDP_MESSAGE_SEND CALL FUNCTION 'AMDP_MESSAGE_SEND' TABLES t_return = lt_bapiret2 EXCEPTIONS OTHERS = 4.

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING i_bukrs = t001-bukrs IMPORTING e_x001 = x001.

AM_BELEGNUMMER_VERGEBEN CALL FUNCTION 'AM_BELEGNUMMER_VERGEBEN' EXPORTING i_bukrs = anla-bukrs i_gjahr = hlp_budat_gjahr IMPORTING e_belnr = hlp_awref.

AM_DOCUMENT_POST CALL FUNCTION 'AM_DOCUMENT_POST' EXPORTING i_awref = hlp_awref i_aworg = hlp_aworg i_awtyp = con_awtyp_aibu i_awsys = t000-logsys.

AMDS_DOCUMENT_SHOW CALL FUNCTION 'AMDS_DOCUMENT_SHOW' EXPORTING i_simu = lko74-testlauf i_display_only = space IMPORTING e_ucomm = ld_ucomm * E_ACCIT_CHANGED = TABLES t_acchd = yacchd t_accit = yaccit t_acccr = yacccr t_accda = yaccda.

AC_DOCUMENT_CREATE CALL FUNCTION 'AC_DOCUMENT_CREATE' TABLES t_acchd = yacchd t_accit = yaccit t_acccr = yacccr t_accda = yaccda.

AM_BELEGNUMMER_VERGEBEN CALL FUNCTION 'AM_BELEGNUMMER_VERGEBEN' EXPORTING i_bukrs = anla-bukrs i_gjahr = hlp_budat_gjahr IMPORTING e_belnr = hlp_awref.

AC_DOCUMENT_POST CALL FUNCTION 'AC_DOCUMENT_POST' EXPORTING i_awref = hlp_awref i_aworg = hlp_aworg i_awtyp = con_awtyp_aibu i_awsys = t000-logsys.

ANEP_CLEAR_AUGLN CALL FUNCTION 'ANEP_CLEAR_AUGLN' IN UPDATE TASK TABLES t_anep = xanep.

AUC_SETTLEMENT_POST CALL FUNCTION 'AUC_SETTLEMENT_POST' EXPORTING ak = auak TABLES aa = xauaa ab = xauab ao = xauao as = xauas av = xauav ai = xauai EXCEPTIONS error_occurred = 01.

AM_FI_BELEGNUMMER_AUSGEBEN CALL FUNCTION 'AM_FI_BELEGNUMMER_AUSGEBEN' EXPORTING i_awsys = t000-logsys i_awtyp = con_awtyp_aibu i_aworg = hlp_aworg i_awref = hlp_awref EXCEPTIONS OTHERS = 1.

ANLH_READ_SINGLE CALL FUNCTION 'ANLH_READ_SINGLE' EXPORTING f_anlh = anlh i_lock = 'X' " Sperren i_rfup = 'X' " for update i_wait = 'X' " mit warten IMPORTING f_anlh = anlh.

ANLH_UPDATE_LANEP CALL FUNCTION 'ANLH_UPDATE_LANEP' IN UPDATE TASK EXPORTING f_anlh = anlh.

FI_PERIOD_CHECK CALL FUNCTION 'FI_PERIOD_CHECK' EXPORTING i_bukrs = u_bukrs i_gjahr = u_gjahr i_koart = u_koart i_konto = u_hkont i_monat = l_perid.

AC_DOCUMENT_RECORD CALL FUNCTION 'AC_DOCUMENT_RECORD' EXPORTING i_awtyp = con_awtyp_aibu i_awref = hlp_awref_rev i_aworg = hlp_aworg_rev i_awsys = hlp_awsys x_dialog = ls_dialog TABLES t_documents = xdocuments EXCEPTIONS no_reference = 01 no_document = 02.

CONVERSION_EXIT_OBART_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_OBART_OUTPUT' EXPORTING input = xrece-emtyp IMPORTING txt20 = gt_abr_list-emtyt.

ANLA_READ_SINGLE CALL FUNCTION 'ANLA_READ_SINGLE' EXPORTING f_anla = ls_anla i_error_if_found = ' ' i_lock = ' ' IMPORTING f_anla = ls_anla EXCEPTIONS not_found = 1 selbst_gesperrt = 2.

READ_SACHKONTO_AND_TEXT CALL FUNCTION 'READ_SACHKONTO_AND_TEXT' EXPORTING buchungskreis = xauaa-bukrs sachkonto = xauaa-saknr sprache = sy-langu IMPORTING sachkonto_wa = skb1 text_wa = skat.

RK_KOSTL_READ CALL FUNCTION 'RK_KOSTL_READ' EXPORTING datum = hlp_budat kokrs = xauaa-kokrs kostl = xauaa-kostl spras = sy-langu IMPORTING ktext = ls_cskt-ktext.

K_ORDER_READ CALL FUNCTION 'K_ORDER_READ' EXPORTING aufnr = xauaa-aufnr no_buffer = 'X' " X - sonst kein text IMPORTING ktext = ls_empgx-emptx.

CJDW_PRPS_SELECT_SINGLE CALL FUNCTION 'CJDW_PRPS_SELECT_SINGLE' EXPORTING posnr = xauaa-pspnr IMPORTING e_prps = ls_prps EXCEPTIONS OTHERS = 1.

REMD_OBJNR_TO_EMPGE CALL FUNCTION 'REMD_OBJNR_TO_EMPGE' "ins 579182 EXPORTING "ins 579182 i_objnr = xauaa-coobjnr "ins 579182 IMPORTING "ins 579182 e_empge = ld_empge "ins 579182 e_text = sy-msgli. "ins 579182

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gc_repid i_internal_tabname = 'GT_ABR_LIST' CHANGING ct_fieldcat = gt_fieldcat_alv EXCEPTIONS OTHERS = 1.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = 'COBRB' fieldname = 'KONTY' lfieldname = 'KONTY' IMPORTING dfies_wa = ls_dfies EXCEPTIONS OTHERS = 1.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = 'DKOBR' fieldname = 'EMPGE' lfieldname = 'EMPGE' IMPORTING dfies_wa = ls_dfies EXCEPTIONS OTHERS = 1.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_interface_check = gd-debugging i_callback_program = gc_repid i_callback_pf_status_set = 'ALV_PF_STATUS_SET' i_callback_user_command = 'ALV_USER_COMMAND' i_callback_top_of_page = 'ALV_TOP_OF_PAGE' "ins 610618 i_callback_html_top_of_page = 'TOP_OF_PAGE_HTML' is_layout = gs_layout i_grid_settings = gs_grid_settings it_fieldcat = gt_fieldcat_alv[] it_excluding = gt_excluding it_sort = gt_sortinfo[] it_filter = gt_filter[] i_save = gd-save_variant is_variant = gs_disvariant it_events = gt_events[] it_event_exit = gt_event_exit[] is_print = gs_print TABLES t_outtab = gt_abr_list EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = gt_events.

AMDS_MULTIPLE_DOCUMENTS_SHOW CALL FUNCTION 'AMDS_MULTIPLE_DOCUMENTS_SHOW' EXPORTING it_faa_document = lt_faa_acc_doc.

AMDS_DOCUMENT_SHOW CALL FUNCTION 'AMDS_DOCUMENT_SHOW' EXPORTING i_simu = ld_simu i_display_only = ld_display_only IMPORTING e_ucomm = ld_ucomm * E_ACCIT_CHANGED = TABLES t_acchd = yacchd t_accit = yaccit t_acccr = yacccr t_accda = yaccda.

AMDP_TABLE_CONTROL_SHOW_ITEMS CALL FUNCTION 'AMDP_TABLE_CONTROL_SHOW_ITEMS' TABLES t_anepi = gt_anepi t_ants = gt_ants.

AMDP_TABLE_CONTROL_SHOW_ITEMS CALL FUNCTION 'AMDP_TABLE_CONTROL_SHOW_ITEMS' TABLES t_ants = lt_ants t_anepi = lt_anepi.



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