SAP Reports / Programs | Environment, Health and Safety(EHS) SAP EHS

/TDAG/CPR_TASK_PROCESS SAP ABAP Report - Process Selected Tasks







/TDAG/CPR_TASK_PROCESS 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_PROCESS 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/CPT02 - Process Tasks


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_PROCESS. "Basic submit
SUBMIT /TDAG/CPR_TASK_PROCESS AND RETURN. "Return to original report after report execution complete
SUBMIT /TDAG/CPR_TASK_PROCESS 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: L_RPTDAY = D .
Selection Text: L_FLGREM = Send E-Mail Reminder
Selection Text: L_FLGESC = Escalate Tasks
Selection Text: L_FLGARC = Archive Tasks
Selection Text: L_CNTDAY = D .
Selection Text: L_CNFDAY = D .
Selection Text: LR_USER = D .
Selection Text: LR_TCAT = D .
Selection Text: LR_SUPP = D .
Selection Text: LR_SUBID = D .
Selection Text: LR_REGLS = D .
Selection Text: LR_PLANT = D .
Selection Text: LR_MATNR = D .
Selection Text: LR_DUEDT = D .
Selection Text: LR_CUST = D .
Title: Process Selected Tasks
Text Symbol: ESC = Response is past due date. Task priority has been escalated.
Text Symbol: ARC = Archived by report /TDAG/CPR_TASK_PROCESS
Text Symbol: A03 = Escalate Tasks
Text Symbol: A02 = Archiving Options
Text Symbol: A01 = Data Selection for Tasks
Text Symbol: A00 = Send Options for E-Mail Reminder
Text Symbol: 001 = 0 days will be used as input value


INCLUDES used within this REPORT /TDAG/CPR_TASK_PROCESS

INCLUDE: CBUI08,


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:

/TDAG/CP_LB14B_SUP_F4HELP CALL FUNCTION '/TDAG/CP_LB14B_SUP_F4HELP' CHANGING x_suppl_id = lr_supp-low.

/TDAG/CP_LB14B_SUP_F4HELP CALL FUNCTION '/TDAG/CP_LB14B_SUP_F4HELP' CHANGING x_suppl_id = lr_supp-high.

C148_TRANSLATE_SUBID_TO_RECN_1 CALL FUNCTION 'C148_TRANSLATE_SUBID_TO_RECN_1' EXPORTING i_subid = l_subid IMPORTING e_recn = l_recn.

C148_TRANSLATE_SUBID_TO_RECN_1 CALL FUNCTION 'C148_TRANSLATE_SUBID_TO_RECN_1' EXPORTING i_subid = l_subid IMPORTING e_recn = l_recn.

C14F_LOV_SUBID CALL FUNCTION 'C14F_LOV_SUBID' EXPORTING i_subid = lr_subid-low i_aennr = space i_valdat = sy-datum IMPORTING e_flg_cancel = l_flg_cancel TABLES e_subid_tab = lt_subid EXCEPTIONS OTHERS = 0.

C14F_LOV_SUBID CALL FUNCTION 'C14F_LOV_SUBID' EXPORTING i_subid = lr_subid-low i_aennr = space i_valdat = sy-datum IMPORTING e_flg_cancel = l_flg_cancel TABLES e_subid_tab = lt_subid EXCEPTIONS OTHERS = 0.

/TDAG/CP_TR06_AUTH_GEN_CHECK CALL FUNCTION '/TDAG/CP_TR06_AUTH_GEN_CHECK' EXPORTING i_flg_check_edit = esp1_true i_flg_check_display = esp1_true * I_ACTIVITY = EXCEPTIONS no_authority = 1 OTHERS = 2 .

/TDAG/CP_LB03_TRACE_MSG CALL FUNCTION '/TDAG/CP_LB03_TRACE_MSG' CHANGING xt_balmi = lt_message_log.

/TDAG/CP_LB03_TRACE_MSG CALL FUNCTION '/TDAG/CP_LB03_TRACE_MSG' CHANGING xt_balmi = lt_message_log.

/TDAG/CP_LB03_TRACE_MSG CALL FUNCTION '/TDAG/CP_LB03_TRACE_MSG' CHANGING xt_balmi = lt_message_log.

/TDAG/CP_TR02_TASKH_READ CALL FUNCTION '/TDAG/CP_TR02_TASKH_READ' EXPORTING i_searchmode = ic_searchmode-and i_lockmode = ic_lockmode-no_lock i_flg_authcheck = 'X' IMPORTING et_taskh = lt_taskh TABLES it_subid = lr_subid it_matnr = lr_matnr it_reglist = lr_regls it_taskcat = lr_tcat it_customer = lr_cust it_supplier = lr_supp it_usera = lr_user it_status = lr_stat it_plant = lr_plant EXCEPTIONS not_found = 1 no_auth = 2 OTHERS = 3.

/TDAG/CP_TR02_TASKI_READ CALL FUNCTION '/TDAG/CP_TR02_TASKI_READ' EXPORTING it_taskh = lt_taskh_curr IMPORTING et_taski = lt_taski EXCEPTIONS not_found = 1 no_auth = 2 OTHERS = 3.

/TDAG/CP_TR02_TASKS_PROCESS CALL FUNCTION '/TDAG/CP_TR02_TASKS_PROCESS' EXPORTING i_activity = /tdag/cpcl_c_tm=>act_remind i_flg_authcheck = esp1_true IMPORTING e_flg_fail = l_flg_error et_message = lt_message CHANGING xt_taskh = lt_taskh_curr xt_taski = lt_taski_new EXCEPTIONS not_found = 1 no_auth = 2 OTHERS = 3.

/TDAG/CP_LB03_TRACE_MSG CALL FUNCTION '/TDAG/CP_LB03_TRACE_MSG' CHANGING xt_balmi = lt_message_log.

/TDAG/CP_TR02_TASKS_PROCESS CALL FUNCTION '/TDAG/CP_TR02_TASKS_PROCESS' EXPORTING i_activity = /tdag/cpcl_c_tm=>act_archiv i_flg_authcheck = esp1_true IMPORTING e_flg_fail = l_flg_error et_message = lt_message CHANGING xt_taskh = lt_taskh_curr xt_taski = lt_taski_new EXCEPTIONS not_found = 1 no_auth = 2 OTHERS = 3.

/TDAG/CP_LB03_TRACE_MSG CALL FUNCTION '/TDAG/CP_LB03_TRACE_MSG' CHANGING xt_balmi = lt_message_log.

/TDAG/CP_TR02_TASKS_PROCESS CALL FUNCTION '/TDAG/CP_TR02_TASKS_PROCESS' EXPORTING i_activity = /tdag/cpcl_c_tm=>act_escalate i_flg_authcheck = esp1_true IMPORTING e_flg_fail = l_flg_error et_message = lt_message * Begin Correction 0001307941 18.02.2009 K.M. *****************

/TDAG/CP_LB03_TRACE_MSG CALL FUNCTION '/TDAG/CP_LB03_TRACE_MSG' CHANGING xt_balmi = lt_message_log.

/TDAG/CP_LB03_TRACE_MSG





CALL FUNCTION '/TDAG/CP_LB03_TRACE_MSG' CHANGING xt_balmi = lt_message_log.

/TDAG/CP_LB03_TRACE_MSG CALL FUNCTION '/TDAG/CP_LB03_TRACE_MSG' CHANGING xt_balmi = lt_message_log.

/TDAG/CP_LB03_TRACE_MSG CALL FUNCTION '/TDAG/CP_LB03_TRACE_MSG' CHANGING xt_balmi = lt_message_log.

/TDAG/CP_LB03_TRACE_MSG CALL FUNCTION '/TDAG/CP_LB03_TRACE_MSG' CHANGING xt_balmi = lt_message_log.

/TDAG/CP_LB03_TRACE_MSG CALL FUNCTION '/TDAG/CP_LB03_TRACE_MSG' CHANGING xt_balmi = lt_message_log.

/TDAG/CP_LB03_TRACE_MSG CALL FUNCTION '/TDAG/CP_LB03_TRACE_MSG' CHANGING xt_balmi = lt_message_log.

/TDAG/CP_LB03_TRACE_MSG CALL FUNCTION '/TDAG/CP_LB03_TRACE_MSG' CHANGING xt_balmi = lt_message_log.

/TDAG/CP_LB03_MSGS_DISPL_LOG CALL FUNCTION '/TDAG/CP_LB03_MSGS_DISPL_LOG' EXPORTING * I_FLG_AMODAL = ESP1_TRUE * I_FLG_SHW_WIN_ALWAYS = ESP1_FALSE it_messages = lt_message_log.

/TDAG/CP_TR02_TASKS_PROCESS * CALL FUNCTION '/TDAG/CP_TR02_TASKS_PROCESS' * EXPORTING * i_activity = /tdag/cpcl_c_tm=>act_remind * i_flg_authcheck = esp1_true * IMPORTING * e_flg_fail = l_flg_error * et_message = lt_message * CHANGING * xt_taskh = lt_taskh_curr * xt_taski = lt_taski_new ** XT_TASKTXT = ** XT_TASKATT = * EXCEPTIONS * not_found = 1 * no_auth = 2 * OTHERS = 3.

/TDAG/CP_TR02_TASKS_PROCESS * CALL FUNCTION '/TDAG/CP_TR02_TASKS_PROCESS' * EXPORTING * i_activity = /tdag/cpcl_c_tm=>act_archiv * i_flg_authcheck = esp1_true * IMPORTING * e_flg_fail = l_flg_error * et_message = lt_message * CHANGING * xt_taskh = lt_taskh_curr * xt_taski = lt_taski_new ** XT_TASKTXT = ** XT_TASKATT = * EXCEPTIONS * not_found = 1 * no_auth = 2 * OTHERS = 3.

/TDAG/CP_LB14B_SUP_EXIST_BY_ID CALL FUNCTION '/TDAG/CP_LB14B_SUP_EXIST_BY_ID' EXPORTING i_suppl_id = i_supplier IMPORTING e_flg_found = l_flg_suppok EXCEPTIONS sel_error = 1 badi_error = 2 OTHERS = 3.

DDUT_INPUT_CHECK CALL FUNCTION 'DDUT_INPUT_CHECK' EXPORTING value = i_value IMPORTING msgid = sy-msgid msgty = sy-msgty msgno = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 EXCEPTIONS no_ddic_field = 1 illegal_move = 2 OTHERS = 3.



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