SAP Reports / Programs | Basis Components | Database Interface, Database Platforms | liveCache Applications(BC-DB-LCA) SAP BC

/SAPAPO/OM_TB_TRACING SAP ABAP Report - Trace Test







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


Text pool values


Selection Text: P_USERNO = User Number
Title: Trace Test


INCLUDES used within this REPORT /SAPAPO/OM_TB_TRACING

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:

TR_SYS_PARAMS CALL FUNCTION 'TR_SYS_PARAMS' IMPORTING systemtype = lv_systemtype.

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 599 iv_probclass = space iv_detlevel = '1' iv_text1 = 'This test is not available in customer systems'."#EC NOTEXT

LCA_TRACELEVEL_READ CALL FUNCTION 'LCA_TRACELEVEL_READ' IMPORTING et_tracelevels = lt_lca_tracelevels EXCEPTIONS OTHERS = 0.

DBMCLI_COMMAND_EXECUTE CALL FUNCTION 'DBMCLI_COMMAND_EXECUTE' EXPORTING dbmcli_parameters = 'file_getlist' con_name = om_lc_name use_dbmrfc = 'S' TABLES dbmcli_exec_protocol = lt_dbmcli action_protocol = lt_act EXCEPTIONS OTHERS = 1.

DBMCLI_COMMAND_EXECUTE CALL FUNCTION 'DBMCLI_COMMAND_EXECUTE' EXPORTING dbmcli_parameters = 'file_getlist' con_name = om_lc_name TABLES dbmcli_exec_protocol = lt_dbmcli action_protocol = lt_act EXCEPTIONS no_permission = 1 sxpg_command_execute_error = 2 dbmcli_command_execute_error = 3 no_dbcon_entry = 4 no_dbconusr_entry = 5 get_profile_error = 6 dbmrfc_execute_error = 7 OTHERS = 8.

/SAPAPO/OM_TB_LOG_SUBRC CALL FUNCTION '/SAPAPO/OM_TB_LOG_SUBRC' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_level = 1 iv_subrc = sy-subrc iv_function = 'dbmcli_command_execute'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 813 iv_probclass = space iv_detlevel = '3' iv_text1 = ls_dbmcli-message.

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = gs_tb_legoinfo-appl_log_handle iv_number = 596 iv_probclass = space iv_detlevel = '1' iv_text1 = 'Tracefile larger than 40000000 bytes'."#EC NOTEXT

/SAPAPO/OM_TRACELEVEL_GET_ALL CALL FUNCTION '/SAPAPO/OM_TRACELEVEL_GET_ALL' EXPORTING iv_user = sy-uname iv_client = sy-mandt IMPORTING et_tracer_levels = lt_tracer_levels EXCEPTIONS OTHERS = 0.

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 600 iv_probclass = 'I' iv_detlevel = '3' iv_text1 = 'Tracing already active'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 601 iv_probclass = 'E' iv_detlevel = '3' iv_text1 = 'Could not read tracelevels'. "#EC NOTEXT

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_22 = lv_guid.

GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_22 = lv_guid.

/SAPAPO/OM_TRACE_WRITE CALL FUNCTION '/SAPAPO/OM_TRACE_WRITE' EXPORTING it_trace_lines = lt_tracelines EXCEPTIONS lc_connect_failed = 1 lc_com_error = 2 lc_appl_error = 3.

/SAPAPO/OM_TB_LOG_SUBRC CALL FUNCTION '/SAPAPO/OM_TB_LOG_SUBRC' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_level = 1 iv_subrc = sy-subrc iv_function = '/sapapo/om_trace_write'. "#EC NOTEXT

LCA_TRACELEVEL_READ CALL FUNCTION 'LCA_TRACELEVEL_READ' IMPORTING et_tracelevels = lt_lca_tracelevels EXCEPTIONS OTHERS = 0.

/SAPAPO/OM_TRACEFILE_READ CALL FUNCTION '/SAPAPO/OM_TRACEFILE_READ' EXPORTING iv_lc_name = om_lc_name iv_tracefile_no = lv_tracefile_no2 IMPORTING et_tracefile = lt_tracefile EXCEPTIONS no_permission = 1 get_file_not_supported = 2 unknown_con_name = 3 file_read_failed = 4.

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 750 iv_probclass = 'E' iv_detlevel = '3' iv_text1 = lv_text50.

/SAPAPO/OM_TB_LOG_MSG_ADD





CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 700 iv_probclass = 'S' iv_detlevel = '3' iv_text1 = 'First written trace found'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 701 iv_probclass = 'E' iv_detlevel = '3' iv_text1 = 'First written trace not found'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 800 iv_probclass = 'E' iv_detlevel = '3' iv_text1 = 'Second written trace found'. "#EC NOTEXT

/SAPAPO/OM_TB_LOG_MSG_ADD CALL FUNCTION '/SAPAPO/OM_TB_LOG_MSG_ADD' EXPORTING iv_handle = is_tb_legoinfo-appl_log_handle iv_number = 801 iv_probclass = 'S' iv_detlevel = '3' iv_text1 = 'Second written trace not found'. "#EC NOTEXT



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 /SAPAPO/OM_TB_TRACING or its description.