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

FOT_B2A_ADMIN_COMM SAP ABAP INCLUDE - FOTB2AADMINCOMM







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

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 CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-004 text_question = ld_text text_button_1 = text-001 icon_button_1 = 'ICON_OKAY' text_button_2 = text-002 icon_button_2 = 'ICON_CANCEL' display_cancel_button = con_space start_column = 25 start_row = 6 popup_type = ld_icon IMPORTING answer = ld_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

RKE_TIMESTAMP_CONVERT_INPUT CALL FUNCTION 'RKE_TIMESTAMP_CONVERT_INPUT' EXPORTING i_date = ld_send_date i_dayst = sy-dayst i_time = ld_send_time i_tzone = sy-tzone IMPORTING e_timestmp = ld_send_tstmp EXCEPTIONS OTHERS = 2.

FOT_FOTETAXC_READ_SINGLE CALL FUNCTION 'FOT_FOTETAXC_READ_SINGLE' EXPORTING id_decl_type = ld_decl_type id_tbukrs = sav_tbukrs id_decl_ctry = -decl_ctry IMPORTING ed_sendbcxi = ld_sendbcxi EXCEPTIONS no_items_found = 1 OTHERS = 2.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

BAL_LOG_CREATE * CALL FUNCTION 'BAL_LOG_CREATE' * EXPORTING * i_s_log = lv_s_log * IMPORTING * e_log_handle = g_log_handle1 * EXCEPTIONS * log_header_inconsistent = 1 * OTHERS = 2.

BAL_LOG_MSG_ADD * CALL FUNCTION 'BAL_LOG_MSG_ADD' * EXPORTING * i_s_msg = l_s_msg * i_log_handle = g_log_handle1 * EXCEPTIONS * log_not_found = 0 * OTHERS = 1.

BAL_LOG_MSG_ADD_FREE_TEXT * CALL FUNCTION 'BAL_LOG_MSG_ADD_FREE_TEXT' * EXPORTING * i_log_handle = g_log_handle1 * i_msgty = 'W' * i_text = lv_text * EXCEPTIONS * log_not_found = 1 * msg_inconsistent = 2 * log_is_full = 3 * OTHERS = 4.

BAL_LOG_MSG_ADD_FREE_TEXT * CALL FUNCTION 'BAL_LOG_MSG_ADD_FREE_TEXT' * EXPORTING * i_log_handle = g_log_handle1 * i_msgty = 'W' * i_text = lv_text * EXCEPTIONS * log_not_found = 1 * msg_inconsistent = 2 * log_is_full = 3 * OTHERS = 4.

BAL_LOG_MSG_ADD_FREE_TEXT * CALL FUNCTION 'BAL_LOG_MSG_ADD_FREE_TEXT' * EXPORTING * i_log_handle = g_log_handle1 * i_msgty = 'W' * i_text = lv_text * EXCEPTIONS * log_not_found = 1 * msg_inconsistent = 2 * log_is_full = 3 * OTHERS = 4.

BAL_DSP_PROFILE_NO_TREE_GET * CALL FUNCTION 'BAL_DSP_PROFILE_NO_TREE_GET' * IMPORTING * e_s_display_profile = gs_prof.

FOT_B2A_SEND CALL FUNCTION 'FOT_B2A_SEND' EXPORTING ic_sendtype = ld_sendbcxi ic_ctry = pa_ctry ic_tbukrs = sav_tbukrs it_xml_in = lt_xmlfile is_deky = ls_deky IMPORTING et_protocol = lt_protocol ec_rc = ls_rc ec_rc_text = ls_rc_text ec_rc_reference_id = ls_rc_reference_id ec_creation_date = ls_rc_creation_date.

FOT_FOTETAXC_READ_SINGLE CALL FUNCTION 'FOT_FOTETAXC_READ_SINGLE' EXPORTING id_decl_type = sav_type id_tbukrs = sav_tbukrs id_decl_ctry = -decl_ctry IMPORTING es_fotetaxc = ls_fotetaxc EXCEPTIONS no_items_found = 1 OTHERS = 2.

FOT_B2A_XML CALL FUNCTION 'FOT_B2A_XML' EXPORTING it_declkey = et_declkey ix_sendtst = id_test ix_testsys = id_test_system IMPORTING et_declkey = et_declkey et_xmlfile = et_xmlfile.

CONVERT_DATE_TO_EXTERNAL CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL' EXPORTING date_internal = ld_date IMPORTING date_external = ext_date EXCEPTIONS date_internal_is_invalid = 1 OTHERS = 2.

RKE_TIMESTAMP_CONVERT_INPUT CALL FUNCTION 'RKE_TIMESTAMP_CONVERT_INPUT' EXPORTING i_date = ld_date_ack i_dayst = sy-dayst i_time = ld_time_ack i_tzone = sy-tzone IMPORTING e_timestmp = ld_fotdeclsta-prottstmp EXCEPTIONS OTHERS = 2.

FOT_DCLITM_READ_ONE_VERS CALL FUNCTION 'FOT_DCLITM_READ_ONE_VERS' EXPORTING id_decl_type = p_declkey-decl_type id_tbukrs = p_declkey-tbukrs id_decl_ctry = p_declkey-decl_ctry id_decl_year = p_declkey-decl_year id_decl_per = p_declkey-decl_per id_decl_runid = p_declkey-decl_runid id_decl_vers = p_declkey-decl_vers * ID_BYPASSING_BUFFER = IMPORTING et_dclitm = lt_fottdclitm EXCEPTIONS no_items_found = 1 OTHERS = 2.

FOT_DCLNOT_READ_ONE_VERS CALL FUNCTION 'FOT_DCLNOT_READ_ONE_VERS' EXPORTING id_decl_type = p_declkey-decl_type id_tbukrs = p_declkey-tbukrs id_decl_ctry = p_declkey-decl_ctry id_decl_year = p_declkey-decl_year id_decl_per = p_declkey-decl_per id_decl_runid = p_declkey-decl_runid id_decl_vers = p_declkey-decl_vers * ID_BYPASSING_BUFFER = IMPORTING et_dclnot = lt_fottdclnot EXCEPTIONS no_items_found = 1 OTHERS = 2.

FOT_TBUKRS_READ_ONE_VERS CALL FUNCTION 'FOT_TBUKRS_READ_ONE_VERS' EXPORTING id_decl_type = p_declkey-decl_type id_tbukrs = p_declkey-tbukrs id_decl_ctry = p_declkey-decl_ctry id_decl_year = p_declkey-decl_year id_decl_per = p_declkey-decl_per id_decl_runid = p_declkey-decl_runid id_decl_vers = p_declkey-decl_vers * ID_BYPASSING_BUFFER = IMPORTING et_fottbukrs = lt_fottbukrs EXCEPTIONS no_items_found = 1 OTHERS = 2.

DB_COMMIT





CALL FUNCTION 'DB_COMMIT'.

DMEE_HANDLE_XML_DOCUMENT CALL FUNCTION 'DMEE_HANDLE_XML_DOCUMENT' EXPORTING i_display = 'X'.

GUI_FILE_SAVE_DIALOG CALL FUNCTION 'GUI_FILE_SAVE_DIALOG' EXPORTING default_extension = 'XML' with_encoding = 'X' IMPORTING filename = l_filename path = l_path fullpath = l_fullpath user_action = l_user_action file_encoding = l_file_encoding.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = l_fullpath filetype = 'ASC' trunc_trailing_blanks = 'X' codepage = l_file_encoding TABLES data_tab = l_download_tab EXCEPTIONS invalid_type = 03 no_batch = 04 unknown_error = 05 OTHERS = 99.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING append = 'X' filename = l_fullpath filetype = 'ASC' trunc_trailing_blanks = 'X' codepage = l_file_encoding TABLES data_tab = l_download_tab EXCEPTIONS invalid_type = 03 no_batch = 04 unknown_error = 05 OTHERS = 99.

GUI_FILE_SAVE_DIALOG CALL FUNCTION 'GUI_FILE_SAVE_DIALOG' EXPORTING default_extension = 'XML' IMPORTING filename = l_filename path = l_path fullpath = l_fullpath user_action = l_user_action.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = l_fullpath filetype = 'ASC' trunc_trailing_blanks = 'X' TABLES data_tab = l_download_tab EXCEPTIONS invalid_type = 03 no_batch = 04 unknown_error = 05 OTHERS = 99.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING append = 'X' filename = l_fullpath filetype = 'ASC' trunc_trailing_blanks = 'X' TABLES data_tab = l_download_tab EXCEPTIONS invalid_type = 03 no_batch = 04 unknown_error = 05 OTHERS = 99.

GUI_FILE_SAVE_DIALOG CALL FUNCTION 'GUI_FILE_SAVE_DIALOG' EXPORTING DEFAULT_FILE_NAME = l_file IMPORTING FILENAME = l_filename PATH = l_path FULLPATH = l_fullpath USER_ACTION = l_user_action.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = l_fullpath filetype = 'ASC' trunc_trailing_blanks = space write_lf = space confirm_overwrite = 'X' codepage = l_file_encoding TABLES data_tab = l_download_tab EXCEPTIONS invalid_type = 03 no_batch = 04 unknown_error = 05 others = 99.



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