RTXDART_PT 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 RTXDART_PT into the relevant SAP transactions such as SE38 or SE80
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: FILENAME = File Name
Selection Text: MASTFILE = Master Data Extract File
Selection Text: PHEDRCMT = Header Comment
Selection Text: PTAXACNT = Tax Accounting Basis
Selection Text: P_BUKRS = Company Code
Selection Text: P_COMPID = Company ID
Selection Text: P_FALSE = False
Selection Text: P_FILE = Data File Name
Selection Text: P_LEDGER = D .
Selection Text: P_PLANTS = Plants
Selection Text: P_TRUE = True
Selection Text: P_VOLSET = Directory Set
Selection Text: P_YEAR = Fiscal Year
Title: DART: XML File Creation (Portugal)
Text Symbol: 050 = Legal Chart of Acc.
Text Symbol: 051 = Primary Chart of Accounts
Text Symbol: 052 = Country Chart of Accounts
Text Symbol: 054 = XML File Successfuly Downloaded
Text Symbol: 055 = Execute RFASLDPC to donwload XML file to Local PC
Text Symbol: 056 = No data found
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
TXW_SEGMENT_READ_NEXT_REC *CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_compc * EXCEPTIONS * not_found = 1.
DMEE_START *CALL FUNCTION 'DMEE_START' * EXPORTING * i_tree_type = 'DART' * i_tree_id = lv_tree_type * item = pt_dart * TABLES * file_output = lt_output.
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
DMEE_END *CALL FUNCTION 'DMEE_END' * IMPORTING * e_xml = lf_xml * TABLES * file_output = lt_output.
DMEE_GET_XML_DATA **CALL FUNCTION 'DMEE_GET_XML_DATA' ** IMPORTING *** E_CSTRING = lf_CSTRING ** e_cstring = master ** TABLES ** t_xmltable = t_xmltable.
DMEE_HANDLE_XML_DOCUMENT ** CALL FUNCTION 'DMEE_HANDLE_XML_DOCUMENT' ** EXPORTING ** * **data : len type I.
TREX_TEXT_TO_UTF8_PE **CALL FUNCTION 'TREX_TEXT_TO_UTF8_PE' "1328175 "1342154 ** EXPORTING "1328175 "1342154 ** text = master "1328175 "1342154 ** IMPORTING "1328175 "1342154 ** BUFFER = xstr_master. "1328175 "1342154
TR_GET_IS_UNICODE_SYSTEM * CALL FUNCTION 'TR_GET_IS_UNICODE_SYSTEM' "1342154 * IMPORTING "1342154 * ev_is_unicode_system = g_is_unicode. "1342154
DMEE_START *CALL FUNCTION 'DMEE_START' * EXPORTING * i_tree_type = 'DART' * i_tree_id = 'PT_AUDIT_GLXML' * item = pt_dart * TABLES * file_output = lt_output.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_fi_hd * EXCEPTIONS * not_found = 1.
PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' * EXPORTING * wa_master = wa_master * transaction_type = 2 * IMPORTING * tdgl_desc = tdglsedc.
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
DMEE_END * CALL FUNCTION 'DMEE_END' * IMPORTING * e_xml = lf_xml * TABLES * file_output = lt_output.
DMEE_GET_XML_DATA ** CALL FUNCTION 'DMEE_GET_XML_DATA' ** IMPORTING *** E_CSTRING = lf_CSTRING ** e_cstring = tdgl ** TABLES ** t_xmltable = t_xmltable.
TREX_TEXT_TO_UTF8_PE ** CALL FUNCTION 'TREX_TEXT_TO_UTF8_PE' "1328175 "1342154 ** EXPORTING "1328175 "1342154 ** text = master "1328175 "1342154 ** IMPORTING "1328175 "1342154 ** BUFFER = xstr_master. "1328175 "1342154
TR_GET_IS_UNICODE_SYSTEM * CALL FUNCTION 'TR_GET_IS_UNICODE_SYSTEM' "1342154 * IMPORTING "1342154 * ev_is_unicode_system = g_is_unicode. "1342154
DMEE_START * CALL FUNCTION 'DMEE_START' * EXPORTING * i_tree_type = 'DART' * i_tree_id = 'PT_AUDIT_SDXML' * item = pt_dart * TABLES * file_output = lt_output.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_dl_hd * EXCEPTIONS * not_found = 1 ** ERROR_OCCURED = 2 ** OTHERS = 3.
* CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_sd_hd * EXCEPTIONS * not_found = 1 ** ERROR_OCCURED = 2 ** OTHERS = 3.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_sd_pos * EXCEPTIONS * not_found = 1.
TXW_SEGMENT_READ_NEXT_REC *CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_tvst * EXCEPTIONS * not_found = 1.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_vbkd * EXCEPTIONS * not_found = 1.
DMEE_START *CALL FUNCTION 'DMEE_START' * EXPORTING * i_tree_type = 'DART' * i_tree_id = 'PT_AUDIT_SDXML' * item = pt_dart * TABLES * file_output = lt_output.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_bi_hd * EXCEPTIONS * not_found = 1.
PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' * EXPORTING * wa_master = wa_master * transaction_type = 6 "customer specific debit / credit * IMPORTING * invoice_type = tdglsedc ** wa_master_cp = wa_master_cp. " N1303098
PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' "0001300586 * EXPORTING "0001300586 * WA_MASTER = wa_master "0001300586 * TRANSACTION_TYPE = 10 "0001300586 * IMPORTING "0001300586 * PRODUCT_TYPE = cond_typ. "0001300586
PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' * EXPORTING * wa_master = wa_master * transaction_type = 3 * IMPORTING * invoice_type = tdglsedc.
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
DMEE_END * CALL FUNCTION 'DMEE_END' * IMPORTING * e_xml = lf_xml * TABLES * file_output = lt_output.
DMEE_GET_XML_DATA ** CALL FUNCTION 'DMEE_GET_XML_DATA' ** IMPORTING *** E_CSTRING = lf_CSTRING ** e_cstring = td-salesinvioce ** ** TABLES ** t_xmltable = t_xmltable.
DMEE_START * CALL FUNCTION 'DMEE_START' * EXPORTING * i_tree_type = 'DART' * i_tree_id = 'PT_AUDIT_SDXML' * item = pt_dart * TABLES * file_output = lt_output.
TREX_TEXT_TO_UTF8_PE ** CALL FUNCTION 'TREX_TEXT_TO_UTF8_PE' "1328175 "1342154 ** EXPORTING "1328175 "1342154 ** text = master "1328175 "1342154 ** IMPORTING "1328175 "1342154 ** BUFFER = xstr_master. "1328175 "1342154
TR_GET_IS_UNICODE_SYSTEM * CALL FUNCTION 'TR_GET_IS_UNICODE_SYSTEM' "1342154 * IMPORTING "1342154 * ev_is_unicode_system = g_is_unicode. "1342154
DMEE_HANDLE_XML_DOCUMENT ** CALL FUNCTION 'DMEE_HANDLE_XML_DOCUMENT' ** EXPORTING ** i_display = 'X'.
POPUP_TO_DISPLAY_TEXT *CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' * EXPORTING * textline1 = text-054 * textline2 = text-055.
POPUP_TO_DISPLAY_TEXT * CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' * EXPORTING * textline1 = text-056.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES ** et_segment = it_bbacc * et_segment = it_glacc * EXCEPTIONS * not_found = 1.
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_lfas * EXCEPTIONS * not_found = 1.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_cust_e1 * EXCEPTIONS * not_found = 1 ** ERROR_OCCURED = 2 ** OTHERS = 3.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_vendor * EXCEPTIONS * not_found = 1.
PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' * EXPORTING * wa_master = wa_master * transaction_type = 4 * IMPORTING * invoice_type = tdglsedc ** wa_master_cp = wa_master_cp. " N1303098
CONVERSION_EXIT_PARVW_INPUT * CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT' * EXPORTING * input = 'BP' * IMPORTING * output = bp.
CONVERSION_EXIT_PARVW_INPUT * CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT' * EXPORTING * input = 'WE' " Ship to party * IMPORTING * output = bp.
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' * EXPORTING * wa_master = wa_master * transaction_type = 5 * IMPORTING * invoice_type = tdglsedc ** wa_master_cp = wa_master_cp. " N1303098
CONVERSION_EXIT_PARVW_INPUT * CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT' * EXPORTING * input = 'PI' * IMPORTING * output = bp.
CONVERSION_EXIT_PARVW_INPUT * CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT' * EXPORTING * input = 'GS' " Ship to party * IMPORTING * output = bp.
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_mat * EXCEPTIONS * not_found = 1.
PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' * EXPORTING * wa_master = wa_master * transaction_type = 1 * IMPORTING * product_type = wa_master-mtref.
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_cust_e1 * EXCEPTIONS * not_found = 1 ** ERROR_OCCURED = 2 ** OTHERS = 3.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_vendor * EXCEPTIONS * not_found = 1.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_plant * EXCEPTIONS * not_found = 1.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_cust_e1 * EXCEPTIONS * not_found = 1 ** ERROR_OCCURED = 2 ** OTHERS = 3.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_bsec * EXCEPTIONS * not_found = 1 ** ERROR_OCCURED = 2 ** OTHERS = 3.
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES ** et_segment = it_bbacc * et_segment = it_glacc * EXCEPTIONS * not_found = 1.
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_compc * EXCEPTIONS * not_found = 1.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_VIMIMV * EXCEPTIONS * not_found = 1.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_mat * EXCEPTIONS * not_found = 1.
TXW_SEGMENT_READ_NEXT_REC * CALL FUNCTION 'TXW_SEGMENT_READ_NEXT_REC' * EXPORTING * is_sourcefile = lv_sourcefile ** ID_MAXHITS = * id_startrow = 0 "vs_params-startrow * id_restart = lv_restart * IMPORTING * ed_goon = lv_goon * TABLES * et_segment = it_fi_hd * EXCEPTIONS * not_found = 1 .
ZPT_USER_EXIT_DART
PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' * EXPORTING * wa_master = wa_master * transaction_type = 3 * IMPORTING * invoice_type = tdglsedc.
ZPT_USER_EXIT_DART
ZPT_USER_EXIT_DART
PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' * EXPORTING * wa_master = wa_master * transaction_type = 2 * IMPORTING * tdgl_desc = tdglsedc.
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
DMEE_END * CALL FUNCTION 'DMEE_END' * IMPORTING * e_xml = lf_xml * TABLES * file_output = lt_output.
DMEE_GET_XML_DATA ** CALL FUNCTION 'DMEE_GET_XML_DATA' ** IMPORTING ** ** E_CSTRING = tdgl ** TABLES ** T_XMLTABLE = T_XMLTABLE * .
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
ZPT_USER_EXIT_DART
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
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 RTXDART_PT or its description.
RTXDART_PT - DART: XML File Creation (Portugal) RTXDART_PT - DART: XML File Creation (Portugal) RTXBC_ARCHIVE - Archiving of Data in SAP_ABA - SAP Internal Use Only RTXBC_ARCHIVE - Archiving of Data in SAP_ABA - SAP Internal Use Only RTTP_US_DISTRIBUTION_F01 - Include RTTP_US_DISTRIBUTION_F01 RTTE_SET_3XTAXDET - Enable / Disable 3.x TTE Tax Determination