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

/TDAG/CPR_TEST_AIF_CREATION SAP ABAP Report - Test Creation of Different Interactive Forms







/TDAG/CPR_TEST_AIF_CREATION is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report tests the creation of the Interactive Forms used for the REACH processes and opens the relevant document in the front-end system...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter /TDAG/CPR_TEST_AIF_CREATION 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 /TDAG/CPR_TEST_AIF_CREATION. "Basic submit
SUBMIT /TDAG/CPR_TEST_AIF_CREATION AND RETURN. "Return to original report after report execution complete
SUBMIT /TDAG/CPR_TEST_AIF_CREATION 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_FORM = D .
Selection Text: P_KUNNR = D .
Selection Text: P_MATNR = D .
Selection Text: P_SUPPL = D .
Title: Test Creation of Different Interactive Forms
Text Symbol: 001 = AIF creation


INCLUDES used within this REPORT /TDAG/CPR_TEST_AIF_CREATION

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:

C144_RECN_GET_FROM_MATERIAL CALL FUNCTION 'C144_RECN_GET_FROM_MATERIAL' EXPORTING i_material_id = p_matnr i_valdat = sy-datum TABLES e_substancetab = lt_subid_recn EXCEPTIONS substance_not_found = 1 OTHERS = 2.

/TDAG/CP_LB08R_MATBAS_READ_SUB CALL FUNCTION '/TDAG/CP_LB08R_MATBAS_READ_SUB' EXPORTING it_recn = lt_subid_recn is_addinf = ls_addinf IMPORTING ev_flg_error = l_flg_error ets_matbas_sub = lts_matbas_sub.

C1A0_TRANSLATE_RECN_TO_SUBID CALL FUNCTION 'C1A0_TRANSLATE_RECN_TO_SUBID' EXPORTING i_recn = ls_matbas_sub-recn IMPORTING e_subid = lv_subid.

/TDAG/CP_XX01_TASK_AIF_CREATE CALL FUNCTION '/TDAG/CP_XX01_TASK_AIF_CREATE' EXPORTING is_template = ls_template is_taskheader = ls_taskheader IMPORTING es_taskh_created = ls_taskh_created es_attinfo = ls_attinfo et_file = lt_file * EO_AIFCTRL = et_message = lt_message e_flg_error = l_flg_error.

/TDAG/CP_LB13F_TEMPDIR_GET CALL FUNCTION '/TDAG/CP_LB13F_TEMPDIR_GET' IMPORTING e_temp_dir = lv_temp_dir e_separator = lv_separator.

/TDAG/CP_LB13F_FILE_DISPLAY CALL FUNCTION '/TDAG/CP_LB13F_FILE_DISPLAY' EXPORTING i_filename = lv_filename i_bin_filesize = lv_filesize i_filetype = 'BIN' IMPORTING et_message = lt_message e_flg_error = l_flg_error CHANGING xt_data = lt_file.

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

/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_true it_messages = lt_balmi.



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