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

/TDAG/CPR_TEST_CONVERSION_PDM SAP ABAP Report - Test Conversion of PDM CSV Files







/TDAG/CPR_TEST_CONVERSION_PDM 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_TEST_CONVERSION_PDM 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/CPU04 - Test CSV2XML conversion of PDM data


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_CONVERSION_PDM. "Basic submit
SUBMIT /TDAG/CPR_TEST_CONVERSION_PDM AND RETURN. "Return to original report after report execution complete
SUBMIT /TDAG/CPR_TEST_CONVERSION_PDM 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_RFCDES = Alternative RFC Destination
Title: Test Conversion of PDM CSV Files
Text Symbol: 010 = PDM File Type
Text Symbol: 011 = Part File
Text Symbol: 012 = AMPL File
Text Symbol: 013 = BOM File
Text Symbol: 020 = PDM File to Convert
Text Symbol: 021 = Select File
Text Symbol: 022 = File Name
Text Symbol: 023 = Generate File
Text Symbol: 024 = Number of Objects
Text Symbol: 030 = Target System
Text Symbol: D01 = Status
Text Symbol: D02 = Do you want to see more details?
Text Symbol: G01 = Check Selection Parameters
Text Symbol: G02 = Delete Selection Parameters


INCLUDES used within this REPORT /TDAG/CPR_TEST_CONVERSION_PDM

INCLUDE CBUI09.


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:

DDUT_INPUT_CHECK CALL FUNCTION 'DDUT_INPUT_CHECK' EXPORTING value = p_rfcdes 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.

/TDAG/CP_LB31_RFCDEST_SET CALL FUNCTION '/TDAG/CP_LB31_RFCDEST_SET' EXPORTING i_rfcdest = p_rfcdes.

TRINT_SPLIT_FILE_AND_PATH * CALL FUNCTION 'TRINT_SPLIT_FILE_AND_PATH' * EXPORTING * full_name = ls_filetable-filename * IMPORTING * stripped_name = xs_file_info-name * file_path = xs_file_info-path * EXCEPTIONS * x_error = 1 * OTHERS = 2.

/TDAG/CP_LB13F_EXISTANCE_CHECK CALL FUNCTION '/TDAG/CP_LB13F_EXISTANCE_CHECK' EXPORTING i_file_name = l_file EXCEPTIONS file_does_not_exist = 1 OTHERS = 2.

/TDAG/CP_LB31_CONVERT_PDMDATA CALL FUNCTION '/TDAG/CP_LB31_CONVERT_PDMDATA' EXPORTING i_file_type = i_file_type it_srcfile = lt_csv_file is_srcfile_info = ls_srcfile_info * I_SHOW_PROGRESS_INDICATOR = 'X' IMPORTING et_resfile = et_xmlfile e_flg_error = e_flg_error et_message = et_message.

POPUP_TO_CONFIRM * CALL FUNCTION 'POPUP_TO_CONFIRM' * EXPORTING * TITLEBAR = text-d01 ** DIAGNOSE_OBJECT = ' ' * text_question = l_msgtext * DISPLAY_CANCEL_BUTTON = space * IMPORTING * ANSWER = l_answer ** TABLES ** PARAMETER = * EXCEPTIONS * TEXT_NOT_FOUND = 1 * OTHERS = 2.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING * DEFAULTOPTION = 'Y' diagnosetext1 = l_msgtext(35) diagnosetext2 = l_msgtext+35 diagnosetext3 = l_diagnosetext3 textline1 = text-d02 titel = text-d01 * START_COLUMN = 25 * START_ROW = 6 cancel_display = space IMPORTING answer = l_answer.

/TDAG/CP_LB03N_MAP_2BALMI CALL FUNCTION '/TDAG/CP_LB03N_MAP_2BALMI' EXPORTING it_message = it_message IMPORTING et_balmi = lt_balmi.

/TDAG/CP_LB03_MSGS_DISPL_LOG CALL FUNCTION '/TDAG/CP_LB03_MSGS_DISPL_LOG' EXPORTING i_flg_amodal = 'X' i_flg_shw_win_always = 'X' it_messages = lt_balmi.

TRINT_SPLIT_FILE_AND_PATH CALL FUNCTION 'TRINT_SPLIT_FILE_AND_PATH' EXPORTING full_name = i_srcfile_name IMPORTING file_path = l_initial_directory EXCEPTIONS OTHERS = 0.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = i_filename filetype = i_filetype * HAS_FIELD_SEPARATOR = ' ' * HEADER_LENGTH = 0 read_by_line = 'X' * DAT_MODE = ' ' IMPORTING filelength = e_filelength * HEADER = TABLES data_tab = et_file EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 OTHERS = 17.

/TDAG/CP_LB06_GET_STRUCTINFO CALL FUNCTION '/TDAG/CP_LB06_GET_STRUCTINFO' EXPORTING it_data = IMPORTING * EV_NAME = et_fields = lt_field EXCEPTIONS parameter_error = 1 OTHERS = 2.



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