/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
Below is a list of transaction codes which are relevant to this SAP report
/TDAG/CPU04 - Test CSV2XML conversion of PDM data
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.
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
INCLUDE CBUI09.
No SAP DATABASE tables are accessed within this REPORT code!
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
/TDAG/CPR_TEST_CONVERSION_PDM - Test Conversion of PDM CSV Files /TDAG/CPR_TEST_CONVERSION_PDM - Test Conversion of PDM CSV Files /TDAG/CPR_TEST_CONVERSION_OBD - Test XML Conversion - Outbound /TDAG/CPR_TEST_CONVERSION_OBD - Test XML Conversion - Outbound /TDAG/CPR_TEST_CONVERSION_IBD - Test XML Conversion - Inbound /TDAG/CPR_TEST_CONVERSION_IBD - Test XML Conversion - Inbound