SAP Reports / Programs | Financial Accounting | General Ledger Accounting(FI-GL) SAP FI

FAGL_MIG_DATA_PROCESSING SAP ABAP INCLUDE - FAGLMIGDATAPROCESSING







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

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:

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = 'FAGL_S_MIG_ASGMT' TABLES x031l_tab = lt_x031l_asgmt.

FI_DOC_TO_ACC_TRANSFORM CALL FUNCTION 'FI_DOC_TO_ACC_TRANSFORM' TABLES t_bkpf = lt_bkpf_transform t_bseg = lt_bseg_transform t_acchd = lt_acchd t_accit = lt_accit t_acccr = lt_acccr EXCEPTIONS system_error = 1 OTHERS = 2.

ENQUEUE_EFAGL_OPITEM CALL FUNCTION 'ENQUEUE_EFAGL_OPITEM' EXPORTING mode_fagl_mig_opitems = 'S' mandt = sy-mandt.

FAGL_SPLINFO_DELETE * CALL FUNCTION 'FAGL_SPLINFO_DELETE' IN UPDATE TASK * EXPORTING * id_bukrs = ls_accit-bukrs * id_gjahr = ls_accit-gjahr * id_belnr = ls_accit-belnr * id_buzei = ls_accit-buzei * id_subsequent = 'X' "um EXCEPTION zu verhindern * EXCEPTIONS * records_not_found = 1 * error_occured = 2 * OTHERS = 3.

FAGL_SPLINFO_INSERT CALL FUNCTION 'FAGL_SPLINFO_INSERT' EXPORTING is_acchd = ls_acchd it_accit = lt_accit it_acccr = lt_acccr it_accit_ext = lt_accit_ext EXCEPTIONS error_status_new = 1 invalid_glvor = 2 OTHERS = 3.

K_COBL_CHECK CALL FUNCTION 'K_COBL_CHECK' EXPORTING i_cobl = ls_cobl_in i_comb_check = 'X' IMPORTING e_cobl = ls_cobl_out.

FAGL_SEGMENT_FOR_ASSET CALL FUNCTION 'FAGL_SEGMENT_FOR_ASSET' EXPORTING i_cobl = ls_cobl_out IMPORTING e_cobl = ls_cobl_out EXCEPTIONS error_message = 1.

FAGL_GET_APPLICATION CALL FUNCTION 'FAGL_GET_APPLICATION' IMPORTING es_appl = ls_application.

FAGL_SEGMENT_DERIVATION CALL FUNCTION 'FAGL_SEGMENT_DERIVATION' EXPORTING id_segevent = '3' ib_migration = lb_migration TABLES t_acchd = lt_acchd_hlp t_accit = lt_accit_hlp EXCEPTIONS error_message = 1.

FAGL_MIG_OPITEMS_UPDATE CALL FUNCTION 'FAGL_MIG_OPITEMS_UPDATE' IN UPDATE TASK EXPORTING its_opitems = ut_open_items ir_running_mgpln = gr_running_mgpln i_update_all = 'X'. "all docs, independent from MGPLN, have to be updated!!

K_COIN_SUBSEQUENT_POSTING_SET CALL FUNCTION 'K_COIN_SUBSEQUENT_POSTING_SET' EXPORTING i_activate = 'X' EXCEPTIONS status_already_set = 1 wrong_input = 2 OTHERS = 3.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXCEPTIONS log_not_active = 1 wrong_identification = 2 OTHERS = 3.

K_COIN_SUBSEQUENT_POSTING_SET CALL FUNCTION 'K_COIN_SUBSEQUENT_POSTING_SET' EXPORTING i_activate = ' ' EXCEPTIONS status_already_set = 1 wrong_input = 2 OTHERS = 3.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS a_message = 1 e_message = 2 OTHERS = 3.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = ct_messages_from_handler.

KOKRS_GET_FROM_BUKRS CALL FUNCTION 'KOKRS_GET_FROM_BUKRS' EXPORTING i_bukrs = us_accit_work_area-bukrs IMPORTING e_kokrs = ld_kokrs EXCEPTIONS no_kokrs_found = 1 OTHERS = 2.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = ld_kokrs IMPORTING e_tka01 = ls_tka01 EXCEPTIONS not_found = 1 not_found_gjahr = 2 OTHERS = 3.

FAGL_GET_DATA_FOR_MGPLN CALL FUNCTION 'FAGL_GET_DATA_FOR_MGPLN' EXPORTING i_mgpln = lsd_mgpln IMPORTING * ET_FAGL_MIG_001 = e_migdt = lsd_migdt EXCEPTIONS mgpln_not_found = 1 OTHERS = 2.

FUNC_AREA_CONVERSION_OUTBOUND





CALL FUNCTION 'FUNC_AREA_CONVERSION_OUTBOUND' EXPORTING i_func_area_long = -fkber IMPORTING e_func_area = ls_bseg-fkber e_func_area_long = ls_bseg-fkber_long.

FI_DOC_TO_ACC_TRANSFORM CALL FUNCTION 'FI_DOC_TO_ACC_TRANSFORM' TABLES t_bkpf = lt_bkpf_single_invoice t_bseg = lt_bseg_single_invoice t_acchd = lt_ri_invoice_acchd t_accit = lt_hlp_accit t_acccr = lt_ri_invoice_acccr_single EXCEPTIONS system_error = 1 OTHERS = 2.

FAGL_SPLINFO_DELETE CALL FUNCTION 'FAGL_SPLINFO_DELETE' IN UPDATE TASK EXPORTING id_bukrs = -bukrs id_gjahr = -gjahr id_belnr = -belnr id_buzei = -buzei id_subsequent = 'X' "um EXCEPTION zu verhindern exceptions records_not_found = 1 error_occured = 2 OTHERS = 3.

FAGL_SPLINFO_INSERT CALL FUNCTION 'FAGL_SPLINFO_INSERT' EXPORTING is_acchd = ls_acchd it_accit = lt_ri_invoice_accit_single it_acccr = lt_ri_invoice_acccr_single it_accit_ext = lt_ri_invoice_accit_ext_single EXCEPTIONS error_status_new = 1 invalid_glvor = 2 OTHERS = 3.

FI_GL_ACCOUNT_DATA CALL FUNCTION 'FI_GL_ACCOUNT_DATA' EXPORTING i_bukrs = is_bseg-bukrs i_saknr = is_bseg-hkont IMPORTING e_sako = ls_sako EXCEPTIONS account = 1 OTHERS = 2.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = abap_true i_msgty = ls_msg-type i_arbgb = ls_msg-id i_txtnr = ls_msg-number i_msgv1 = ls_msg-message_v1 i_msgv2 = ls_msg-message_v2 i_msgv3 = ls_msg-message_v3 i_msgv4 = ls_msg-message_v4.

G_BEB_CHECK_MANDATORY_FIELDS CALL FUNCTION 'G_BEB_CHECK_MANDATORY_FIELDS' EXPORTING is_acchd = cs_acchd i_ledger = cl_fagl_split_services=>gc_rldnr it_accit_ex = lt_accit_glt0 id_baldoc_used = abap_false EXCEPTIONS field_is_initial = 1 OTHERS = 2.

G_MESS_APPEND_OBJECT CALL FUNCTION 'G_MESS_APPEND_OBJECT' EXPORTING i_error = abap_true i_msgty = sy-msgty i_arbgb = sy-msgid i_txtnr = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

G_BEB_CHECK_MANDATORY_FIELDS CALL FUNCTION 'G_BEB_CHECK_MANDATORY_FIELDS' EXPORTING is_acchd = cs_acchd i_ledger = cl_fagl_split_services=>gc_rldnr it_accit_ex = lt_accit_glt0 id_baldoc_used = abap_false EXCEPTIONS field_is_initial = 1 OTHERS = 2.

JV_BUKRS_ACTIVE CALL FUNCTION 'JV_BUKRS_ACTIVE' EXPORTING bukrs = iv_bukrs IMPORTING active = cv_act.



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