SAP Reports / Programs | Basis Components | TREX | TREX ABAP + JAVA API(BC-TRX-API) SAP BC

TREX_ADMIN_TOOL_F12_F02 SAP ABAP INCLUDE - AlertServer Configuration







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


Text pool values


Title: AlertServer Configuration


INCLUDES used within this REPORT TREX_ADMIN_TOOL_F12_F02

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:

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'TYPE' value_org = 'S' TABLES value_tab = lt_dd_values EXCEPTIONS OTHERS = 0.

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = gv_repid txt2 = gv_sysubrc txt1 = 'The control could not be created'. "#EC NOTEXT

TREX_EXT_ALERTSERV_GET_CONFIG CALL FUNCTION 'TREX_EXT_ALERTSERV_GET_CONFIG' EXPORTING i_rfc_destination = g_rfc_destination IMPORTING e_return_code = lv_return_code e_return_text = lv_return_text e_max_history_entries = pv_max_history_entries e_max_history_age = pv_max_history_age e_smtp_server = pv_smtp_server e_mail_sender = pv_mail_sender e_mail_recipients = pv_mail_recip e_mail_subject = pv_mail_subject e_send_mails = pv_send_mails e_trace_level = pv_alert_trace_level e_checkset_properties = pt_checkset_properties e_check_properties = pt_check_properties e_save_mail_to_file = pv_save_mail_to_file EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

DD_DOMVALUES_GET CALL FUNCTION 'DD_DOMVALUES_GET' EXPORTING domname = 'TREXD_TRACE_LEVEL_V2' text = 'X' langu = lv_langu TABLES dd07v_tab = lt_dom_values EXCEPTIONS wrong_textflag = 1 OTHERS = 2.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'TYPE' value_org = 'S' TABLES value_tab = lt_dd_values EXCEPTIONS OTHERS = 0.

TREX_EXT_ALERTSERV_SET_CONFIG CALL FUNCTION 'TREX_EXT_ALERTSERV_SET_CONFIG' EXPORTING i_rfc_destination = g_rfc_destination i_max_history_entries = lv_max_history_entires i_max_history_age = lv_max_history_age i_smtp_server = smtp_server i_mail_sender = mail_sender i_mail_recipients = mail_recip i_mail_subject = mail_subject i_send_mails = lv_send_mails i_trace_level = lv_alert_trace_level i_checkset_properties = gt_checkset_properties i_check_properties = gt_check_properties i_save_mail_to_file = lv_save_mail_to_file IMPORTING e_return_code = lv_return_code e_return_text = lv_return_text EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = lv_title text_question = lv_question_text default_button = '2' display_cancel_button = 'X' start_column = 25 start_row = 6 popup_type = 'ICON_MESSAGE_WARNING' IMPORTING answer = pv_answer.

TREX_EXT_EXECUTE_PYTHON CALL FUNCTION 'TREX_EXT_EXECUTE_PYTHON' EXPORTING i_rfc_destination = g_rfc_destination i_command = pv_command IMPORTING e_return_code = lv_return_code e_return_text = lv_return_text e_lines = pt_result EXCEPTIONS conversion_error = 1 error = 2 no_authorization = 3 OTHERS = 4.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = lv_title text_question = lv_question_text default_button = '2' display_cancel_button = 'X' start_column = 25 start_row = 6 popup_type = 'ICON_MESSAGE_QUESTION' IMPORTING answer = pv_answer.



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