ISAFTPT_SUBROUTINES is a standard ABAP INCLUDE 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 ISAFTPT_SUBROUTINES 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.
Title: Include ISAFTPT_SUBROUTINES
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
DMEE_END CALL FUNCTION 'DMEE_END' IMPORTING e_xml = lf_xml TABLES file_output = lt_output.
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.
DMEE_END CALL FUNCTION 'DMEE_END' IMPORTING e_xml = lf_xml TABLES file_output = lt_output.
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.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' 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_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.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 121 IMPORTING tdgl_desc = tdglsedc.
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 = 4 IMPORTING invoice_type = tdglsedc wa_master_export = wa_master_cp."n30
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.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 5 IMPORTING invoice_type = tdglsedc wa_master_export = wa_master_cp."n30
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.
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.
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 = 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_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 wa_bi_hd = wa_bi_hd transaction_type = '90' IMPORTING EV_EXT_SYS = LV_EXT_SYS.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_bi_hd = wa_bi_hd transaction_type = '80' IMPORTING EV_EXL_BILL_DOC = LV_EXCL_BILL_DOC.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' "N66 EXPORTING wa_master = wa_master wa_bi_hd = wa_bi_hd WA_FI_HD = wa_fi_hd transaction_type = '39' IMPORTING tdgl_desc = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART'"N29 EXPORTING wa_master = wa_master2 transaction_type = '35' IMPORTING tdgl_desc = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '31' wa_bi_hd = wa_bi_hd IMPORTING tdgl_desc = tdglsedc.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = wa_bi_hd-fkdat foreign_amount = dmbtr foreign_currency = wa_bi_hd-waerk local_currency = 'EUR' TYPE_OF_RATE = 'M' RATE = exchng_rate READ_TCURR = ' ' IMPORTING LOCAL_AMOUNT = dmbtr.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master2 transaction_type = '43' * WA_FI_HD = IMPORTING * PRODUCT_TYPE = tdgl_desc = tdglsedc * INVOICE_TYPE = * WA_MASTER_EXPORT = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS =
.
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_compc 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_fi_hd 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_fi_hd EXCEPTIONS not_found = 1.
TXW_EXTRACT_READ_INIT CALL FUNCTION 'TXW_EXTRACT_READ_INIT' EXPORTING file_name = p_file voldir_set = p_volset * IMPORTING * DESCRIPTION = * TABLES * T_TXW_DIR2 = * T_TXW_NOTE = EXCEPTIONS file_open_failed = 1 file_invalid = 2 file_locked = 3 lock_system_failure = 4 voldir_set_invalid = 5 file_directory_invalid = 6 get_filename_failed = 7 no_authority = 8 OTHERS = 9 .
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' "1478167(2)ss EXPORTING "1478167(2)ss funcname = ld_func_name "1478167(2)ss EXCEPTIONS "1478167(2)ss function_not_exist = 8. "1478167(2)ss
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_goonfi TABLES et_segment = it_chksum 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_goonfi TABLES et_segment = it_chksum4 EXCEPTIONS not_found = 1.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' "n29 EXPORTING wa_master = wa_master transaction_type = '35' * WA_FI_HD = IMPORTING * PRODUCT_TYPE = tdgl_desc = tdglsedc * INVOICE_TYPE = * WA_MASTER_EXPORT = * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' "1416448(31)ss EXPORTING "1416448(31)ss wa_master = wa_master "1416448(31)ss transaction_type = '22' "1416448(31)ss IMPORTING "1416448(31)ss invoice_type = tdglsedc. "1416448(31)ss
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.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '31' IMPORTING tdgl_desc = tdglsedc.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = WA_MASTER-FKDAT FOREIGN_AMOUNT = wa_master-sd_dr_amount FOREIGN_CURRENCY = WA_MASTER-CURRENCY_CODE LOCAL_CURRENCY = 'EUR' TYPE_OF_RATE = 'M' IMPORTING LOCAL_AMOUNT = wa_master-sd_dr_amount.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = WA_MASTER-FKDAT FOREIGN_AMOUNT = wa_master-sd_cr_amount FOREIGN_CURRENCY = WA_MASTER-CURRENCY_CODE LOCAL_CURRENCY = 'EUR' TYPE_OF_RATE = 'M' IMPORTING LOCAL_AMOUNT = wa_master-sd_cr_amount.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '34' wa_fi_hd = wa_fi_hd "N20 IMPORTING * PRODUCT_TYPE = * tdgl_desc = tdglsedc * INVOICE_TYPE = wa_master_export = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master2 transaction_type = '47' * wa_fi_hd = wa_fi_hd IMPORTING * PRODUCT_TYPE = tdgl_desc = tdglsedc * INVOICE_TYPE = * wa_master_export = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
SD_PRINT_TERMS_OF_PAYMENT CALL FUNCTION 'SD_PRINT_TERMS_OF_PAYMENT' EXPORTING bldat = wa_master-erdat budat = wa_master-fkdat * CPUDT = 00000000 * LANGUAGE = ' ' terms_of_payment = wa_vbkd-zterm * COUNTRY = ' ' * HOLDBACK = ' ' * TOP_HOLDBACK_INFO = * DOCUMENT_CURRENCY = ' ' * IMPORTING * BASELINE_DATE = * PAYMENT_SPLIT = * ZFBDT = TABLES top_text = top_txt * EXCEPTIONS * TERMS_OF_PAYMENT_NOT_IN_T052 = 1 * OTHERS = 2 .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 25 IMPORTING tdgl_desc = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 10 IMPORTING product_type = cond_typ wrk_amount = wrk_s_amt.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 30 WA_BI_HD = WA_BI_HD IMPORTING invoice_type = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 3 WA_BI_HD = WA_BI_HD "N46 V5 IMPORTING invoice_type = tdglsedc.
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 = '21' wa_fi_hd = wa_fi_hd IMPORTING invoice_type = tdglsedc GL_DATE = wa_master-post_dt SYS_DATE = wa_master-cpudt.
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_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'PT_AUDIT_GLXML' item = pt_dart TABLES file_output = lt_output.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' "n29 EXPORTING wa_master = wa_master transaction_type = '35' * WA_FI_HD = IMPORTING * PRODUCT_TYPE = tdgl_desc = tdglsedc * INVOICE_TYPE = * WA_MASTER_EXPORT = * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' "1416448(31)ss EXPORTING "1416448(31)ss wa_master = wa_master "1416448(31)ss transaction_type = '22' "1416448(31)ss IMPORTING "1416448(31)ss invoice_type = tdglsedc. "1416448(31)ss
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.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '31' IMPORTING tdgl_desc = tdglsedc.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = WA_MASTER-FKDAT FOREIGN_AMOUNT = wa_master-sd_dr_amount FOREIGN_CURRENCY = WA_MASTER-CURRENCY_CODE LOCAL_CURRENCY = 'EUR' TYPE_OF_RATE = 'M' IMPORTING LOCAL_AMOUNT = wa_master-sd_dr_amount.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = WA_MASTER-FKDAT FOREIGN_AMOUNT = wa_master-sd_cr_amount FOREIGN_CURRENCY = WA_MASTER-CURRENCY_CODE LOCAL_CURRENCY = 'EUR' TYPE_OF_RATE = 'M' IMPORTING LOCAL_AMOUNT = wa_master-sd_cr_amount.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '34' wa_fi_hd = wa_fi_hd "N20 IMPORTING * PRODUCT_TYPE = * tdgl_desc = tdglsedc * INVOICE_TYPE = wa_master_export = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master2 transaction_type = '47' * wa_fi_hd = wa_fi_hd IMPORTING * PRODUCT_TYPE = tdgl_desc = tdglsedc * INVOICE_TYPE = * wa_master_export = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
SD_PRINT_TERMS_OF_PAYMENT CALL FUNCTION 'SD_PRINT_TERMS_OF_PAYMENT' EXPORTING bldat = wa_master-erdat budat = wa_master-fkdat * CPUDT = 00000000 * LANGUAGE = ' ' terms_of_payment = wa_vbkd-zterm * COUNTRY = ' ' * HOLDBACK = ' ' * TOP_HOLDBACK_INFO = * DOCUMENT_CURRENCY = ' ' * IMPORTING * BASELINE_DATE = * PAYMENT_SPLIT = * ZFBDT = TABLES top_text = top_txt * EXCEPTIONS * TERMS_OF_PAYMENT_NOT_IN_T052 = 1 * OTHERS = 2 .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 25 IMPORTING tdgl_desc = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 10 IMPORTING product_type = cond_typ wrk_amount = wrk_s_amt.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 30 WA_BI_HD = WA_BI_HD IMPORTING invoice_type = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 3 WA_BI_HD = WA_BI_HD IMPORTING invoice_type = tdglsedc.
DMEE_PUT_ITEM * CALL FUNCTION 'DMEE_PUT_ITEM' * EXPORTING * item = pt_dart * TABLES * item_tab = lt_output.
TR_GET_IS_UNICODE_SYSTEM CALL FUNCTION 'TR_GET_IS_UNICODE_SYSTEM' IMPORTING ev_is_unicode_system = g_is_unicode.
TXW_EXTRACT_READ_INIT CALL FUNCTION 'TXW_EXTRACT_READ_INIT' EXPORTING file_name = p_file voldir_set = p_volset * IMPORTING * DESCRIPTION = * TABLES * T_TXW_DIR2 = * T_TXW_NOTE = EXCEPTIONS file_open_failed = 1 file_invalid = 2 file_locked = 3 lock_system_failure = 4 voldir_set_invalid = 5 file_directory_invalid = 6 get_filename_failed = 7 no_authority = 8 OTHERS = 9 .
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.
FIRST_AND_LAST_DAY_IN_YEAR_GET CALL FUNCTION 'FIRST_AND_LAST_DAY_IN_YEAR_GET' EXPORTING i_gjahr = p_year i_periv = wa_compc-periv IMPORTING e_first_day = wa_master-start_date e_last_day = wa_master-end_date.
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.
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING * CLIENT = SY-MANDT logical_filename = gc_filename parameter_1 = sy-cprog * PARAMETER_2 = ' ' * PARAMETER_3 = ' ' * WITH_FILE_EXTENSION = ' ' * USE_BUFFER = ' ' * ELIMINATE_BLANKS = 'X' * IMPORTING * VALIDATION_ACTIVE = * TABLES * TS_ALIAS = CHANGING physical_filename = pdatname * EXCEPTIONS * LOGICAL_FILENAME_NOT_FOUND = 1 * VALIDATION_FAILED = 2 * OTHERS = 3 .
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 .
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_bi_hd * EXCEPTIONS * not_found = 1.
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_sel EXCEPTIONS not_found = 1.
DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = p_date-low * I_MONMIT = 00 i_periv = v_fiscal IMPORTING e_buper = v_period.
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 .
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING FUNCNAME = gv_fname_gen EXCEPTIONS FUNCTION_NOT_EXIST = 1 OTHERS = 2.
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-054 textline2 = text-057.
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_glacc EXCEPTIONS not_found = 1.
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_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' item = pt_dart TABLES file_output = lt_output.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' 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_startrow = 0 "vs_params-startrow id_restart = lv_restart IMPORTING ed_goon = lv_goon TABLES et_segment = it_cust_e1 EXCEPTIONS not_found = 1.
DMEE_END CALL FUNCTION 'DMEE_END' IMPORTING e_xml = lf_xml TABLES file_output = lt_output.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' item = pt_dart TABLES file_output = lt_output.
DMEE_END CALL FUNCTION 'DMEE_END' IMPORTING e_xml = lf_xml TABLES file_output = lt_output.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' item = pt_dart TABLES file_output = lt_output.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' 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_startrow = 0 "vs_params-startrow id_restart = lv_restart IMPORTING ed_goon = lv_goon TABLES et_segment = it_bsec EXCEPTIONS not_found = 1.
DMEE_END CALL FUNCTION 'DMEE_END' IMPORTING e_xml = lf_xml TABLES file_output = lt_output.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' 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_startrow = 0 "vs_params-startrow id_restart = lv_restart IMPORTING ed_goon = lv_goon TABLES et_segment = it_cust_e1 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_glacc EXCEPTIONS not_found = 1.
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING FUNCNAME = gv_fname_gen EXCEPTIONS FUNCTION_NOT_EXIST = 1 OTHERS = 2.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' 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_startrow = 0 "vs_params-startrow id_restart = lv_restart IMPORTING ed_goon = lv_goon TABLES et_segment = it_vendor EXCEPTIONS not_found = 1.
DMEE_END CALL FUNCTION 'DMEE_END' IMPORTING e_xml = lf_xml TABLES file_output = lt_output.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' item = pt_dart TABLES file_output = lt_output.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' 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_startrow = 0 "vs_params-startrow id_restart = lv_restart IMPORTING ed_goon = lv_goon TABLES et_segment = it_mat EXCEPTIONS not_found = 1.
DMEE_END CALL FUNCTION 'DMEE_END' IMPORTING e_xml = lf_xml TABLES file_output = lt_output.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' item = pt_dart TABLES file_output = lt_output.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' item = pt_dart TABLES file_output = lt_output.
DMEE_PUT_ITEM CALL FUNCTION 'DMEE_PUT_ITEM' EXPORTING item = pt_dart TABLES file_output = lt_output.
DMEE_END CALL FUNCTION 'DMEE_END' IMPORTING e_xml = lf_xml 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.
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_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 .
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.
DMEE_END CALL FUNCTION 'DMEE_END' IMPORTING e_xml = lf_xml TABLES file_output = lt_output.
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.
PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' * EXPORTING * wa_master = wa_master * transaction_type = '27' * TABLES * it_products = it_products.
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 * wa_fi_item = wa_fi_pos * transaction_type = '27' * TABLES * it_products = it_products.
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.
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_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 = '20' wa_fi_hd = wa_fi_hd IMPORTING invoice_type = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' "1416448(31)ss EXPORTING "1416448(31)ss wa_master = wa_master "1416448(31)ss transaction_type = '22' "1416448(31)ss wa_fi_hd = wa_fi_hd IMPORTING "1416448(31)ss invoice_type = tdglsedc. "1416448(31)ss
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 3 IMPORTING invoice_type = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '28' wa_fi_hd = wa_fi_hd IMPORTING prod_code = wa_master-sd_matnr prod_description = wa_master-sd_arktx.
CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' "N46 EXPORTING INPUT = WA_FI_POS-MEINS * LANGUAGE = SY-LANGU IMPORTING * LONG_TEXT = OUTPUT = WA_MASTER-VRKME * SHORT_TEXT = * EXCEPTIONS * UNIT_NOT_FOUND = 1 * OTHERS = 2 .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 2 IMPORTING tdgl_desc = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '34' wa_fi_hd = wa_fi_hd "N20 IMPORTING * PRODUCT_TYPE = * tdgl_desc = tdglsedc * INVOICE_TYPE = wa_master_export = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '34' wa_fi_hd = wa_fi_hd "N20 IMPORTING * PRODUCT_TYPE = * tdgl_desc = tdglsedc * INVOICE_TYPE = wa_master_export = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
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.
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 .
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.
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.
TR_GET_IS_UNICODE_SYSTEM CALL FUNCTION 'TR_GET_IS_UNICODE_SYSTEM' "1342154 IMPORTING "1342154 ev_is_unicode_system = g_is_unicode. "1342154
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_fi_hd = wa_fi_hd transaction_type = '96' IMPORTING EV_EXT_SYS = LV_EXT_SYS.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_fi_hd = wa_fi_hd transaction_type = '111' IMPORTING TDGL_DESC = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '20' wa_fi_hd = wa_fi_hd "n63 IMPORTING invoice_type = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master "N52 wa_bi_hd = wa_bi_hd WA_FI_HD = wa_fi_hd transaction_type = '44' IMPORTING tdgl_desc = tdglsedc.
DMEE_END * CALL FUNCTION 'DMEE_END' * IMPORTING * e_xml = lf_xml * 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_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' 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_pos_tmp EXCEPTIONS not_found = 1 .
TXW_FILE_NAME_GET CALL FUNCTION 'TXW_FILE_NAME_GET' EXPORTING voldir_set = wa_c_vold-vol_set vol_id = wa_c_vold-vol_id log_filename = '' IMPORTING phy_filename = file_name_tmp * LOGICAL_VOLID_NAME = * EXCEPTIONS * VOLDIR_SET_INVALID = 1 * GET_FILENAME_FAILED = 2 * OTHERS = 3 .
TXW_UUID_CREATE CALL FUNCTION 'TXW_UUID_CREATE' EXPORTING system_rl = sy-saprl IMPORTING txw_uuid = wa_ftwn-file_uuid. "n46
TXW_UUID_CREATE CALL FUNCTION 'TXW_UUID_CREATE' EXPORTING system_rl = sy-saprl IMPORTING txw_uuid = wa_ftwn-file_uuid. "n46
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_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' 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.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING WA_MASTER = wa_master TRANSACTION_TYPE = '55' WA_FI_HD1 = wa_fi_hd IMPORTING JOURNAL_DESC = wa_master-jr_desc TRANS_DESC = wa_master-gl_desc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '21' wa_fi_hd_gl = wa_fi_hd IMPORTING invoice_type = tdglsedc GL_DATE = wa_master-post_dt "n40 SYS_DATE = wa_master-cpudt "n40 CPUTM_TIME = wa_fi_hd-cputm. "n40
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_fi_pos_gl = wa_fi_pos WA_MASTER = wa_master TRANSACTION_TYPE = '65' IMPORTING DOC_TYPE = BILL_DOC_TYPE INVOICE_TYPE = tdglsedc TRANS_DESC_LINES = wa_master-glsgtxt BILLING_NO = GV_BILLING_NO. "n47
PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' * EXPORTING * wa_master = wa_master * transaction_type = 2 * IMPORTING * tdgl_desc = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 1 IMPORTING product_type = wa_master-mtref.
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.
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING FUNCNAME = gv_fname_gen EXCEPTIONS FUNCTION_NOT_EXIST = 1 OTHERS = 2.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING WA_MASTER = WA_MASTER TRANSACTION_TYPE = '110' I_BUKRS = P_BUKRS I_YEAR = p_year I_LDGR = P_LEDGER IMPORTING EV_GL_STRING = tdgl TDGL_DESC = tdglsedc.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' 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_startrow = 0 "vs_params-startrow id_restart = lv_restart IMPORTING ed_goon = lv_goon TABLES et_segment = it_bsec EXCEPTIONS not_found = 1.
DMEE_END CALL FUNCTION 'DMEE_END' IMPORTING e_xml = lf_xml TABLES file_output = lt_output.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' 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.
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.
DMEE_END CALL FUNCTION 'DMEE_END' IMPORTING e_xml = lf_xml TABLES file_output = lt_output.
DMEE_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' item = pt_dart TABLES file_output = lt_output.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 5 IMPORTING invoice_type = tdglsedc.
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.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master2 transaction_type = '43' * WA_FI_HD = IMPORTING * PRODUCT_TYPE = tdgl_desc = tdglsedc * INVOICE_TYPE = * WA_MASTER_EXPORT = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' * EXPORTING * wa_master = wa_master2 * transaction_type = '43' * WA_FI_HD = * IMPORTING * PRODUCT_TYPE = * TDGL_DESC = tdglsedc * INVOICE_TYPE = * WA_MASTER_EXPORT = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = * .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master2 transaction_type = '92' * WA_FI_HD = IMPORTING * PRODUCT_TYPE = tdgl_desc = tdglsedc.
CONVERT_TO_FOREIGN_CURRENCY * CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' * EXPORTING * CLIENT = SY-MANDT * DATE = wa_master-fkdat * FOREIGN_CURRENCY = 'EUR' * LOCAL_AMOUNT = wa_master-gross_total * LOCAL_CURRENCY = wa_master-currency_code * RATE = wa_master-EXCH_RATE * TYPE_OF_RATE = 'M' ** READ_TCURR = 'X' * IMPORTING * FOREIGN_AMOUNT = wa_master-gross_total * .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master2 transaction_type = '43' IMPORTING * PRODUCT_TYPE = tdgl_desc = tdglsedc * INVOICE_TYPE = * WA_MASTER_EXPORT = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '79' wa_bi_hd = wa_bi_hd IMPORTING GL_DATE = wa_master-tax_point_date.
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING FUNCNAME = gv_fname_bal EXCEPTIONS FUNCTION_NOT_EXIST = 1 OTHERS = 2.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '250' wa_fi_hd = wa_fi_hd IMPORTING tdgl_desc = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 4 IMPORTING invoice_type = tdglsedc wa_master_export = wa_master_cp."n30
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.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 5 IMPORTING invoice_type = tdglsedc wa_master_export = wa_master_cp."n30
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.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_bi_hd = wa_bi_hd transaction_type = '80' IMPORTING EV_EXL_BILL_DOC = LV_EXCL_BILL_DOC.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_bi_hd = wa_bi_hd transaction_type = '91' IMPORTING EV_EXT_SYS = gv_ext_bill_sys EV_GV_HASH = gv_hash EV_HASHCONTROL = gv_hashcontrol EV_INVOICE_STATUS = gV_INVOICE_STATUS EV_INVOICE_NO = gv_invoice_no.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_bi_hd = wa_bi_hd transaction_type = '99' IMPORTING EV_SourceBilling = GV_SourceBilling.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_bi_hd = wa_bi_hd transaction_type = '100' IMPORTING EV_EAC_CODE = gv_act_code.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' "n29 EXPORTING wa_master = wa_master transaction_type = '35' * WA_FI_HD = IMPORTING * PRODUCT_TYPE = tdgl_desc = tdglsedc * INVOICE_TYPE = * WA_MASTER_EXPORT = * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' "1416448(31)ss EXPORTING "1416448(31)ss wa_master = wa_master "1416448(31)ss transaction_type = '22' "1416448(31)ss IMPORTING "1416448(31)ss invoice_type = tdglsedc. "1416448(31)ss
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING WA_MASTER = wa_master TRANSACTION_TYPE = 59 WA_BI_HD = WA_BI_HD IMPORTING BILLING_NO = GV_BILLING_NO.
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.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '31' wa_bi_hd = wa_bi_hd IMPORTING tdgl_desc = tdglsedc.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = WA_MASTER-FKDAT FOREIGN_AMOUNT = wa_master-sd_dr_amount FOREIGN_CURRENCY = WA_MASTER-CURRENCY_CODE LOCAL_CURRENCY = 'EUR' TYPE_OF_RATE = 'M' RATE = exchng_rate READ_TCURR = ' ' IMPORTING LOCAL_AMOUNT = wa_master-sd_dr_amount.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = WA_MASTER-FKDAT FOREIGN_AMOUNT = wa_master-sd_cr_amount FOREIGN_CURRENCY = WA_MASTER-CURRENCY_CODE LOCAL_CURRENCY = 'EUR' TYPE_OF_RATE = 'M' RATE = exchng_rate READ_TCURR = ' ' IMPORTING LOCAL_AMOUNT = wa_master-sd_cr_amount.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = WA_MASTER-FKDAT FOREIGN_AMOUNT = wa_bi_pos-mwsbp FOREIGN_CURRENCY = WA_MASTER-CURRENCY_CODE LOCAL_CURRENCY = 'EUR' TYPE_OF_RATE = 'M' RATE = exchng_rate READ_TCURR = ' ' IMPORTING LOCAL_AMOUNT = wa_bi_pos-mwsbp.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '34' wa_fi_hd = wa_fi_hd "N20 IMPORTING * PRODUCT_TYPE = * tdgl_desc = tdglsedc * INVOICE_TYPE = wa_master_export = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' " n58 External Tax Engine EXPORTING wa_master = wa_master transaction_type = '60' wa_bi_hd = wa_bi_hd IMPORTING tdgl_desc = tdglsedc wa_master_export = wa_master_tx.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master2 transaction_type = '47' * wa_fi_hd = wa_fi_hd IMPORTING * PRODUCT_TYPE = tdgl_desc = tdglsedc * INVOICE_TYPE = * wa_master_export = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '56' wa_bi_hd = wa_bi_hd IMPORTING wa_master_export = wa_master_sl kunrg = lv_kunrg tdgl_desc = tdglsedc.
CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = wa_bi_pos-vrkme language = sy-langu IMPORTING * LONG_TEXT = output = wa_master-vrkme * SHORT_TEXT = * EXCEPTIONS * UNIT_NOT_FOUND = 1 * OTHERS = 2 .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_bi_hd = wa_bi_hd transaction_type = '240' IMPORTING tdgl_desc = tdglsedc.
SD_PRINT_TERMS_OF_PAYMENT CALL FUNCTION 'SD_PRINT_TERMS_OF_PAYMENT' EXPORTING bldat = wa_master-erdat budat = wa_master-fkdat * CPUDT = 00000000 * LANGUAGE = ' ' terms_of_payment = wa_vbkd-zterm * COUNTRY = ' ' * HOLDBACK = ' ' * TOP_HOLDBACK_INFO = * DOCUMENT_CURRENCY = ' ' * IMPORTING * BASELINE_DATE = * PAYMENT_SPLIT = * ZFBDT = TABLES top_text = top_txt * EXCEPTIONS * TERMS_OF_PAYMENT_NOT_IN_T052 = 1 * OTHERS = 2 .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '94' wa_bi_hd = wa_bi_hd IMPORTING WA_MASTER_EXPORT = wa_master.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 25 IMPORTING tdgl_desc = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 10 IMPORTING product_type = cond_typ wrk_amount = wrk_s_amt.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 30 WA_BI_HD = WA_BI_HD IMPORTING invoice_type = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 3 WA_BI_HD = WA_BI_HD "N46 V5 IMPORTING invoice_type = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' " n65 Delivery Date EXPORTING wa_master = wa_master transaction_type = '66' wa_bi_hd = wa_bi_hd IMPORTING tdgl_desc = tdglsedc wa_master_export = wa_master_tx.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' " n53 Incoinsistent ship to address EXPORTING wa_master = wa_master transaction_type = '54' wa_bi_hd = wa_bi_hd IMPORTING invoice_type = tdglsedc wa_master_export = wa_master_st.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_bi_hd = wa_bi_hd transaction_type = '80' IMPORTING EV_EXL_BILL_DOC = LV_EXCL_BILL_DOC.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_bi_hd = wa_bi_hd transaction_type = '91' IMPORTING EV_EXT_SYS = gv_ext_bill_sys EV_GV_HASH = gv_hash EV_HASHCONTROL = gv_hashcontrol EV_INVOICE_STATUS = gV_INVOICE_STATUS EV_INVOICE_NO = gv_invoice_no.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_bi_hd = wa_bi_hd transaction_type = '99' IMPORTING EV_SourceBilling = GV_SourceBilling.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_bi_hd = wa_bi_hd transaction_type = '100' IMPORTING EV_EAC_CODE = gv_act_code.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' "n29 EXPORTING wa_master = wa_master transaction_type = '35' * WA_FI_HD = IMPORTING * PRODUCT_TYPE = tdgl_desc = tdglsedc * INVOICE_TYPE = * WA_MASTER_EXPORT = * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' "1416448(31)ss EXPORTING "1416448(31)ss wa_master = wa_master "1416448(31)ss transaction_type = '22' "1416448(31)ss IMPORTING "1416448(31)ss invoice_type = tdglsedc. "1416448(31)ss
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING WA_MASTER = wa_master TRANSACTION_TYPE = 59 WA_BI_HD = WA_BI_HD IMPORTING BILLING_NO = GV_BILLING_NO.
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.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '31' wa_bi_hd = wa_bi_hd IMPORTING tdgl_desc = tdglsedc.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = WA_MASTER-FKDAT FOREIGN_AMOUNT = wa_master-sd_dr_amount FOREIGN_CURRENCY = WA_MASTER-CURRENCY_CODE LOCAL_CURRENCY = 'EUR' TYPE_OF_RATE = 'M' RATE = exchng_rate READ_TCURR = ' ' IMPORTING LOCAL_AMOUNT = wa_master-sd_dr_amount.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = WA_MASTER-FKDAT FOREIGN_AMOUNT = wa_master-sd_cr_amount FOREIGN_CURRENCY = WA_MASTER-CURRENCY_CODE LOCAL_CURRENCY = 'EUR' TYPE_OF_RATE = 'M' RATE = exchng_rate READ_TCURR = ' ' IMPORTING LOCAL_AMOUNT = wa_master-sd_cr_amount.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = WA_MASTER-FKDAT FOREIGN_AMOUNT = wa_bi_pos-mwsbp FOREIGN_CURRENCY = WA_MASTER-CURRENCY_CODE LOCAL_CURRENCY = 'EUR' TYPE_OF_RATE = 'M' RATE = exchng_rate READ_TCURR = ' ' IMPORTING LOCAL_AMOUNT = wa_bi_pos-mwsbp.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '34' wa_fi_hd = wa_fi_hd "N20 IMPORTING * PRODUCT_TYPE = * tdgl_desc = tdglsedc * INVOICE_TYPE = wa_master_export = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' " n58 External Tax Engine EXPORTING wa_master = wa_master transaction_type = '60' wa_bi_hd = wa_bi_hd IMPORTING tdgl_desc = tdglsedc wa_master_export = wa_master_tx.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master2 transaction_type = '47' * wa_fi_hd = wa_fi_hd IMPORTING * PRODUCT_TYPE = tdgl_desc = tdglsedc * INVOICE_TYPE = * wa_master_export = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '56' wa_bi_hd = wa_bi_hd IMPORTING wa_master_export = wa_master_sl kunrg = lv_kunrg tdgl_desc = tdglsedc.
CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = wa_bi_pos-vrkme language = sy-langu IMPORTING * LONG_TEXT = output = wa_master-vrkme * SHORT_TEXT = * EXCEPTIONS * UNIT_NOT_FOUND = 1 * OTHERS = 2 .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_bi_hd = wa_bi_hd transaction_type = '240' IMPORTING tdgl_desc = tdglsedc.
SD_PRINT_TERMS_OF_PAYMENT CALL FUNCTION 'SD_PRINT_TERMS_OF_PAYMENT' EXPORTING bldat = wa_master-erdat budat = wa_master-fkdat * CPUDT = 00000000 * LANGUAGE = ' ' terms_of_payment = wa_vbkd-zterm * COUNTRY = ' ' * HOLDBACK = ' ' * TOP_HOLDBACK_INFO = * DOCUMENT_CURRENCY = ' ' * IMPORTING * BASELINE_DATE = * PAYMENT_SPLIT = * ZFBDT = TABLES top_text = top_txt * EXCEPTIONS * TERMS_OF_PAYMENT_NOT_IN_T052 = 1 * OTHERS = 2 .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '94' wa_bi_hd = wa_bi_hd IMPORTING WA_MASTER_EXPORT = wa_master.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 25 IMPORTING tdgl_desc = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 10 IMPORTING product_type = cond_typ wrk_amount = wrk_s_amt.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 30 WA_BI_HD = WA_BI_HD IMPORTING invoice_type = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 3 WA_BI_HD = WA_BI_HD IMPORTING invoice_type = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' " n65 Delivery Date EXPORTING wa_master = wa_master transaction_type = '66' wa_bi_hd = wa_bi_hd IMPORTING tdgl_desc = tdglsedc wa_master_export = wa_master_tx.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' " n53 Incoinsistent ship to address EXPORTING wa_master = wa_master transaction_type = '54' wa_bi_hd = wa_bi_hd IMPORTING invoice_type = tdglsedc wa_master_export = wa_master_st.
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' "n53"tax like material EXPORTING wa_master = wa_master transaction_type = '53' IMPORTING invoice_type = tdglsedc.
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_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 wa_fi_hd = wa_fi_hd transaction_type = '111' IMPORTING TDGL_DESC = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '20' wa_fi_hd = wa_fi_hd IMPORTING invoice_type = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_fi_hd = wa_fi_hd transaction_type = '99' IMPORTING EV_SourceBilling = GV_SourceBilling.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_fi_hd = wa_fi_hd transaction_type = '100' IMPORTING EV_EAC_CODE = gv_act_code.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' "1416448(31)ss EXPORTING "1416448(31)ss wa_master = wa_master "1416448(31)ss transaction_type = '22' "1416448(31)ss wa_fi_hd = wa_fi_hd IMPORTING "1416448(31)ss invoice_type = tdglsedc. "1416448(31)ss
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 3 IMPORTING invoice_type = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '28' wa_fi_hd = wa_fi_hd IMPORTING prod_code = wa_master-sd_matnr prod_description = wa_master-sd_arktx.
CONVERSION_EXIT_CUNIT_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' "N46 EXPORTING INPUT = WA_MASTER-MEINS "N48 * LANGUAGE = SY-LANGU IMPORTING * LONG_TEXT = OUTPUT = WA_MASTER-VRKME * SHORT_TEXT = * EXCEPTIONS * UNIT_NOT_FOUND = 1 * OTHERS = 2 .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 2 IMPORTING tdgl_desc = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '34' wa_fi_hd = wa_fi_hd "N20 IMPORTING * PRODUCT_TYPE = * tdgl_desc = tdglsedc * INVOICE_TYPE = wa_master_export = wa_master * WRK_AMOUNT =
* PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '34' wa_fi_hd = wa_fi_hd "N20 IMPORTING * PRODUCT_TYPE = * tdgl_desc = tdglsedc * INVOICE_TYPE = wa_master_export = wa_master * WRK_AMOUNT = * PROD_CODE = * PROD_DESCRIPTION = * TABLES * IT_PRODUCTS = .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' " n58 External Tax Engine EXPORTING wa_master = wa_master transaction_type = '61' wa_fi_hd = wa_fi_hd IMPORTING tdgl_desc = tdglsedc wa_master_export = wa_master_tx.
SD_PRINT_TERMS_OF_PAYMENT CALL FUNCTION 'SD_PRINT_TERMS_OF_PAYMENT' EXPORTING bldat = wa_fi_hd-bldat budat = wa_fi_hd-budat * CPUDT = 00000000 * LANGUAGE = ' ' terms_of_payment = lv_zterm * COUNTRY = ' ' * HOLDBACK = ' ' * TOP_HOLDBACK_INFO = * DOCUMENT_CURRENCY = ' ' ** IMPORTING * BASELINE_DATE = * PAYMENT_SPLIT = * ZFBDT = TABLES top_text = top_txt * EXCEPTIONS * TERMS_OF_PAYMENT_NOT_IN_T052 = 1 * OTHERS = 2 .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '94' wa_fi_hd = wa_fi_hd IMPORTING WA_MASTER_EXPORT = wa_master.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_fi_hd = wa_fi_hd transaction_type = '95' IMPORTING EV_EXT_SYS = gv_ext_bill_sys EV_GV_HASH = gv_hash EV_HASHCONTROL = gv_hashcontrol EV_INVOICE_STATUS = gV_INVOICE_STATUS EV_INVOICE_NO = gv_invoice_no.
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.
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 = '27' * TABLES * it_products = it_products.
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 * wa_fi_item = wa_fi_pos * transaction_type = '27' * TABLES * it_products = it_products.
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_START CALL FUNCTION 'DMEE_START' EXPORTING i_tree_type = 'DART' i_tree_id = 'DART_PT_AUDIT_XML' item = pt_dart TABLES file_output = lt_output.
DMEE_PUT_ITEM CALL FUNCTION 'DMEE_PUT_ITEM' EXPORTING item = pt_dart TABLES file_output = lt_output.
DMEE_END CALL FUNCTION 'DMEE_END' IMPORTING e_xml = lf_xml TABLES file_output = lt_output.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 1 IMPORTING product_type = wa_master-mtref.
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.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '22' IMPORTING invoice_type = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 30 wa_bi_hd = wa_bi_hd IMPORTING invoice_type = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '77' i_vbeln = wa_inv_canc_no_acc-vbeln i_bukrs = p_bukrs i_year = p_year IMPORTING e_archive = lv_archive.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master wa_bi_hd = wa_bi_hd transaction_type = '80' IMPORTING EV_EXL_BILL_DOC = LV_EXCL_BILL_DOC.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master2 transaction_type = '35' IMPORTING tdgl_desc = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '31' IMPORTING tdgl_desc = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master2 transaction_type = '43' IMPORTING tdgl_desc = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master2 transaction_type = '47' IMPORTING tdgl_desc = tdglsedc.
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '250' wa_fi_hd = wa_fi_hd IMPORTING tdgl_desc = tdglsedc.
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_bi_hd 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_pos_tmp EXCEPTIONS not_found = 1 .
PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING WA_MASTER = WA_MASTER TRANSACTION_TYPE = '102' I_WITHCODE = wa_withholding_info-WT_WITHCD IV_WITHTYP = wa_withholding_info-WITHT IMPORTING EV_WTH_TAXTYPE = WA_MASTER-WTH_TAXTYPE .
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 ISAFTPT_SUBROUTINES or its description.