SAP Reports / Programs

/TDAG/CPR_TASK_EMAILPROCLOG SAP ABAP Report - Display Selected Logs







/TDAG/CPR_TASK_EMAILPROCLOG 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 /TDAG/CPR_TASK_EMAILPROCLOG into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

/TDAG/CPT03L - Display E-Mail Processing Logs


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


Text pool values


Title: Display Selected Logs
Text Symbol: C01 = Rec. On
Text Symbol: C02 = At
Text Symbol: C03 = Subj.
Text Symbol: E01 = Application log cannot be shown
Text Symbol: EML = Eml
Text Symbol: GP1 = Processing failed
Text Symbol: GP2 = No processing
Text Symbol: GP3 = Successfully processed
Text Symbol: GP4 = Others
Text Symbol: HDR = Exec'd at / Group / E-mails
Text Symbol: L01 = Open e-mail
Text Symbol: TIT = Display Logs


INCLUDES used within this REPORT /TDAG/CPR_TASK_EMAILPROCLOG

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:

BAL_DB_LOAD CALL FUNCTION 'BAL_DB_LOAD' EXPORTING * I_T_LOG_HEADER = i_t_log_handle = lt_log_handles * I_T_LOGNUMBER = * I_CLIENT = SY-MANDT * I_DO_NOT_LOAD_MESSAGES = ' ' * I_EXCEPTION_IF_ALREADY_LOADED = * IMPORTING * E_T_LOG_HANDLE = * E_T_MSG_HANDLE = EXCEPTIONS no_logs_specified = 1 log_not_found = 2 log_already_loaded = 3 OTHERS = 4 .

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = ls_disp_prof i_t_log_handle = lt_log_handles * I_T_MSG_HANDLE = * I_S_LOG_FILTER = * I_S_MSG_FILTER = * I_T_LOG_CONTEXT_FILTER = * I_T_MSG_CONTEXT_FILTER = * I_AMODAL = ' ' * IMPORTING * E_S_EXIT_COMMAND = EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 5 .

APPL_LOG_DISPLAY CALL FUNCTION 'APPL_LOG_DISPLAY' EXPORTING object = gsc_applog-object subobject = gsc_applog-subobject * EXTERNAL_NUMBER = ' ' object_attribute = 1 subobject_attribute = 1 * EXTERNAL_NUMBER_ATTRIBUTE = 0 date_from = l_date_from * TIME_FROM = '000000' * DATE_TO = SY-DATUM * TIME_TO = SY-UZEIT title_selection_screen = text-tit title_list_screen = text-tit * COLUMN_SELECTION = '11112221122 ' * SUPPRESS_SELECTION_DIALOG = ' ' * COLUMN_SELECTION_MSG_JUMP = '1' * EXTERNAL_NUMBER_DISPLAY_LENGTH = 20 i_s_display_profile = ls_disp_prof * I_VARIANT_REPORT = ' ' * IMPORTING * NUMBER_OF_PROTOCOLS = EXCEPTIONS no_authority = 1 OTHERS = 2 .

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_mail * TEXT = ' ' info = 'Open e-mail'(l01) * ADD_STDINF = 'X' IMPORTING result = x_field EXCEPTIONS icon_not_found = 0 outputfield_too_short = 0 OTHERS = 0 .

BAL_LOG_MSG_READ CALL FUNCTION 'BAL_LOG_MSG_READ' EXPORTING i_s_msg_handle = ls_bal_msgh * I_LANGU = SY-LANGU IMPORTING e_s_msg = ls_bal_msg * E_EXISTS_ON_DB = * E_TXT_MSGTY = * E_TXT_MSGID = * E_TXT_DETLEVEL = * E_TXT_PROBCLASS = * E_TXT_MSG = * E_WARNING_TEXT_NOT_FOUND = EXCEPTIONS log_not_found = 0 msg_not_found = 0 OTHERS = 0 .

SO_SOOD_READ CALL FUNCTION 'SO_SOOD_READ' EXPORTING object_id = ls_obj_id IMPORTING sood_dat = ls_sood_data EXCEPTIONS object_not_exist = 1 x_error = 2 OTHERS = 3.

/TDAG/CP_LB03N_MSG_2_MSG CALL FUNCTION '/TDAG/CP_LB03N_MSG_2_MSG' EXPORTING it_msg = lt_message CHANGING xt_msg = lt_msgs EXCEPTIONS parameter_error = 1 conversion_error = 2 OTHERS = 3.

/TDAG/CP_LB03N_MSG_TRACE CALL FUNCTION '/TDAG/CP_LB03N_MSG_TRACE' CHANGING xt_message = lt_message.

/TDAG/CP_LB03_MSGS_DISPL_LOG CALL FUNCTION '/TDAG/CP_LB03_MSGS_DISPL_LOG' EXPORTING i_flg_amodal = esp1_false i_flg_shw_win_always = esp1_true it_messages = lt_msgs.

SO_DYNP_DOCUMENT_DISPLAY CALL FUNCTION 'SO_DYNP_DOCUMENT_DISPLAY' EXPORTING objects = ls_document * OBJECT_FL_DISPLAY = * owner = ls_sood_data-ownnam * OK_CODE = DISP .



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 /TDAG/CPR_TASK_EMAILPROCLOG or its description.