SAP Reports / Programs | Basis Components | Use Subcomponents | eXternal Management Interface Framework(BC-CCM-API-CSI-XMI) SAP BC

SXMI_TESTPOOL SAP ABAP INCLUDE - SXMITESTPOOL







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

INCLUDE SXMI_TESTPOOLGEN.
INCLUDE RSXMIBAPI.


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:

BAPI_XMI_LOGON CALL FUNCTION 'BAPI_XMI_LOGON' DESTINATION dest EXPORTING extcompany = company extproduct = product interface = interface version = version IMPORTING * SESSIONID = return = ret EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XMI_LOGOFF CALL FUNCTION 'BAPI_XMI_LOGOFF' DESTINATION dest * EXPORTING * INTERFACE = interface IMPORTING return = ret EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XMI_SET_AUDITLEVEL CALL FUNCTION 'BAPI_XMI_SET_AUDITLEVEL' DESTINATION dest EXPORTING auditlevel = level IMPORTING return = ret EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_JOB_OPEN CALL FUNCTION 'BAPI_XBP_JOB_OPEN' DESTINATION dest EXPORTING jobname = open_jobname external_user_name = 'TEST' jobclass = open_jobclass IMPORTING jobcount = jobcount return = ret EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_JOB_ADD_ABAP_STEP CALL FUNCTION 'BAPI_XBP_JOB_ADD_ABAP_STEP' DESTINATION dest EXPORTING jobname = jobname jobcount = jobcount external_user_name = 'TEST' abap_program_name = program abap_variant_name = variant sap_user_name = stepuser language = step_langu allpripar = pripars allarcpar = arcpars IMPORTING step_number = stepno return = ret EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_JOB_CLOSE CALL FUNCTION 'BAPI_XBP_JOB_CLOSE' DESTINATION dest EXPORTING jobname = jobname jobcount = jobcount external_user_name = 'TEST' * TARGET_SERVER = recipient_obj = recipient_obj recipient = recipient "#EC ENHOK IMPORTING return = ret EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_JOB_START_ASAP CALL FUNCTION 'BAPI_XBP_JOB_START_ASAP' DESTINATION dest EXPORTING jobname = jobname jobcount = jobcount external_user_name = 'TEST' target_server = target target_group = target_group IMPORTING return = ret EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_JOB_DELETE CALL FUNCTION 'BAPI_XBP_JOB_DELETE' DESTINATION dest EXPORTING external_user_name = 'TEST' jobname = jobname jobcount = jobcount IMPORTING return = ret EXCEPTIONS communication_failure = 0 MESSAGE rfc_msg system_failure = 0 MESSAGE rfc_msg.

BAPI_XBP_JOB_STATUS_CHECK CALL FUNCTION 'BAPI_XBP_JOB_STATUS_CHECK' DESTINATION dest EXPORTING jobname = jobname jobcount = jobcount external_user_name = 'TEST' IMPORTING * STATUS_ACCORDING_TO_DB = actual_status = status return = ret EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_JOB_SPOOLLIST_READ_20 CALL FUNCTION 'BAPI_XBP_JOB_SPOOLLIST_READ_20' DESTINATION dest EXPORTING jobname = jobname jobcount = jobcount external_user_name = 'TEST' step_number = stepno raw = raw plain = plain first_page = first last_page = last IMPORTING return = ret * end_of_data = eod TABLES spool_list = spool * spool_list_plain = spool_p EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_JOB_SPOOLLIST_READ_20 CALL FUNCTION 'BAPI_XBP_JOB_SPOOLLIST_READ_20' DESTINATION dest EXPORTING jobname = jobname jobcount = jobcount external_user_name = 'TEST' step_number = stepno raw = raw plain = plain first_page = first last_page = last IMPORTING return = ret * end_of_data = eod TABLES * spool_list = spool spool_list_plain = spool_p EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_JOB_SPOOLLIST_READ_20 CALL FUNCTION 'BAPI_XBP_JOB_SPOOLLIST_READ_20' DESTINATION dest EXPORTING jobname = jobname jobcount = jobcount external_user_name = 'TEST' step_number = stepno raw = raw first_page = first last_page = last IMPORTING return = ret * end_of_data = eod TABLES spool_list = spool * spool_list_plain = spool_p EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_JOB_SPOOLLIST_READ CALL FUNCTION 'BAPI_XBP_JOB_SPOOLLIST_READ' "#EC FB_OLDED DESTINATION dest EXPORTING jobname = jobname jobcount = jobcount external_user_name = 'TEST' step_number = stepno IMPORTING return = ret TABLES spool_list = spool EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_JOB_SPOOLLST_READ_RW CALL FUNCTION 'BAPI_XBP_JOB_SPOOLLST_READ_RW' "#EC FB_OLDED DESTINATION dest EXPORTING jobname = jobname jobcount = jobcount external_user_name = 'TEST' step_number = stepno IMPORTING return = ret TABLES spool_list = spool EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BTC_OPTION_GET * CALL FUNCTION 'BTC_OPTION_GET' * EXPORTING * name = 'XBP_SPOOL_CHUNK' * TABLES * OPTIONS = options * EXCEPTIONS * invalid_name = 1 * OTHERS = 2.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING mode = 'DEFVALS' no_dialog = 'X' new_list_id = new_list_id line_count = line_count line_size = line_size IMPORTING out_parameters = pripars valid = v EXCEPTIONS OTHERS = 99.

BAPI_XBP_JOB_DEFINITION_GET CALL FUNCTION 'BAPI_XBP_JOB_DEFINITION_GET' DESTINATION dest EXPORTING jobname = jobname jobcount = jobcount external_user_name = 'TEST' IMPORTING job_head = p_jobhead return = ret joblg_attr = p_jlattr "#EC ENHOK recipient = p_recipient TABLES step_tbl = steps spool_attr = spool_attr "#EC ENHOK EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING * PERCENTAGE = 0 text = 'GUI Download of spool request'(001). "#EC *

GUI_DOWNLOAD





CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = p_path append = append TABLES data_tab = spool EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = p_path append = append TABLES data_tab = spool_p EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22.

BAPI_XBP_JOB_JOBLOG_READ CALL FUNCTION 'BAPI_XBP_JOB_JOBLOG_READ' DESTINATION dest EXPORTING jobname = jobname jobcount = jobcount external_user_name = 'TEST' lines = lines direction = direction * PROT_NEW = IMPORTING return = ret TABLES job_protocol = joblog EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_GET_SPOOL_ATTRIBUTES CALL FUNCTION 'BAPI_XBP_GET_SPOOL_ATTRIBUTES' DESTINATION dest EXPORTING spool_request = rqid external_user_name = 'TEST' IMPORTING return = ret spool_attr = spool_attr_line "#EC ENHOK EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_JOB_READ_SINGLE_SPOOL CALL FUNCTION 'BAPI_XBP_JOB_READ_SINGLE_SPOOL' DESTINATION dest EXPORTING spool_request = spool_request external_user_name = 'TEST' * RAW = raw first_page = first last_page = last IMPORTING return = ret TABLES * SPOOL_LIST = spool_list_plain = spool_p EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_JOB_READ_SINGLE_SPOOL CALL FUNCTION 'BAPI_XBP_JOB_READ_SINGLE_SPOOL' DESTINATION dest EXPORTING spool_request = spool_request external_user_name = 'TEST' raw = 'X' IMPORTING return = ret TABLES spool_list = spool EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_GET_SPOOL_AS_DAT CALL FUNCTION 'BAPI_XBP_GET_SPOOL_AS_DAT' DESTINATION dest EXPORTING spool_request = spool_request external_user_name = 'TEST' first_page = first last_page = last IMPORTING spool_list = spool_list return = ret EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.

BAPI_XBP_JOB_JOBLOG_TO_PDF CALL FUNCTION 'BAPI_XBP_JOB_JOBLOG_TO_PDF' DESTINATION dest EXPORTING jobname = jobname jobcount = jobcount external_user_name = 'TEST' lines = lines direction = direction language = lang IMPORTING return = ret joblog = bin_file size = bin_size EXCEPTIONS communication_failure = 1 MESSAGE rfc_msg system_failure = 2 MESSAGE rfc_msg.



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