SAP Reports / Programs | Financial Accounting | Localization(FI-LOC) SAP FI

ISAFTPT_SBFILE_GEN SAP ABAP INCLUDE - Include ISAFTPT_SBFILE_GEN







ISAFTPT_SBFILE_GEN 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_SBFILE_GEN 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 ISAFTPT_SBFILE_GEN. "Basic submit
SUBMIT ISAFTPT_SBFILE_GEN AND RETURN. "Return to original report after report execution complete
SUBMIT ISAFTPT_SBFILE_GEN VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Include ISAFTPT_SBFILE_GEN


INCLUDES used within this REPORT ISAFTPT_SBFILE_GEN

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:

TXW_EXTRACT_READ_INIT CALL FUNCTION 'TXW_EXTRACT_READ_INIT' EXPORTING file_name = p_file voldir_set = p_volset 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.

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 * 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_startrow = 0 id_restart = lv_restart IMPORTING ed_goon = lv_goon TABLES et_segment = it_compc EXCEPTIONS not_found = 1.

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_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.

PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 86 IMPORTING product_type = wa_master-mtref.

CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING ** CLIENT = SY-MANDT * date = wa_rbkp-bldat * foreign_amount = wa_rbkp-rmwwr * foreign_currency = wa_rbkp-waers * local_currency = 'EUR' * rate = wa_rbkp-kursf * type_of_rate = 'M' * read_tcurr = 'X' * IMPORTING * local_amount = lv_local_currency * EXCEPTIONS * no_rate_found = 1 * overflow = 2 * no_factors_found = 3 * no_spread_found = 4 * derived_2_times = 5 * OTHERS = 6.

PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '89' wa_bi_hd = wa_bi_hd IMPORTING tdgl_desc = tdglsedc.

PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '85' wa_bi_hd = wa_bi_hd IMPORTING tdgl_desc = tdglsedc.

PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' * EXPORTING * wa_master = wa_master * transaction_type = '81' * wa_bi_hd = wa_bi_hd * IMPORTING * tdgl_desc = tdglsedc.

CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * client = sy-mandt * date = wa_rbkp-bldat * foreign_amount = wa_rbkp-rmwwr * foreign_currency = wa_rbkp-waers * local_currency = 'EUR' * rate = wa_rbkp-kursf * type_of_rate = 'M' * IMPORTING * local_amount = lv_local_currency * EXCEPTIONS * no_rate_found = 1 * overflow = 2 * no_factors_found = 3 * no_spread_found = 4 * derived_2_times = 5 * OTHERS = 6.

PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '89' wa_bi_hd = wa_bi_hd IMPORTING tdgl_desc = tdglsedc.

PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '85' wa_bi_hd = wa_bi_hd IMPORTING tdgl_desc = tdglsedc.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = ls_rbkp-budat i_bukrs = ls_rbkp-bukrs i_gjahr = ls_rbkp-gjahr IMPORTING e_monat = wa_master-inv_period EXCEPTIONS fiscal_year = 1 period = 2 period_version = 3 posting_period = 4 special_period = 5 version = 6 posting_date = 7 OTHERS = 8.

PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '82' IMPORTING invoice_type = tdglsedc.

PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '130' IMPORTING ev_eac_code = gv_eaccode.

PT_USER_EXIT_DART





CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '86' IMPORTING prod_code = lv_prod_code prod_description = wa_master-sd_arktx.

PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '88' IMPORTING JOURNAL_DESC = lv_po_text.

PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '81' wa_bi_hd = wa_bi_hd IMPORTING tdgl_desc = tdglsedc.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING client = sy-mandt date = ls_rbkp-bldat foreign_amount = ls_rbkp-rmwwr foreign_currency = ls_rbkp-waers local_currency = 'EUR' IMPORTING local_amount = lv_local_currency EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING client = sy-mandt date = ls_rbkp-bldat foreign_amount = ls_rbkp-rmwwr foreign_currency = ls_rbkp-waers local_currency = 'EUR' IMPORTING local_amount = lv_local_currency EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING client = sy-mandt date = ls_rbkp-bldat foreign_amount = ls_rbkp-rmwwr foreign_currency = ls_rbkp-waers local_currency = 'EUR' IMPORTING local_amount = lv_local_currency EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

CONVERT_TO_LOCAL_CURRENCY * CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' * EXPORTING * client = sy-mandt * date = ls_rbkp-bldat * foreign_amount = ls_rbkp-rmwwr * foreign_currency = ls_rbkp-waers * local_currency = 'EUR' * IMPORTING * local_amount = lv_local_currency * EXCEPTIONS * no_rate_found = 1 * overflow = 2 * no_factors_found = 3 * no_spread_found = 4 * derived_2_times = 5 * OTHERS = 6.

PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = '84' wa_bi_hd = wa_bi_hd IMPORTING wrk_amount = lv_settlediscount.

SD_PRINT_TERMS_OF_PAYMENT CALL FUNCTION 'SD_PRINT_TERMS_OF_PAYMENT' EXPORTING bldat = ls_rbkp-bldat budat = ls_rbkp-budat terms_of_payment = ls_rbkp-zterm TABLES top_text = top_txt.

PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' * EXPORTING * wa_master = wa_master * transaction_type = '87' * IMPORTING * tdgl_desc = tdglsedc.

PT_USER_EXIT_DART * CALL FUNCTION 'PT_USER_EXIT_DART' * EXPORTING * wa_master = wa_master * transaction_type = '131' ** WA_FI_HD = ** WA_BI_HD = ** WA_FI_HD_GL = ** WA_FI_POS_GL = ** WA_FI_HD1 = * IMPORTING ** PRODUCT_TYPE = ** TDGL_DESC = ** INVOICE_TYPE = ** WA_MASTER_EXPORT = * wrk_amount = ls_sb_wttax_info-wt_qbuihb ** PROD_CODE = ** PROD_DESCRIPTION = ** GL_DATE = ** SYS_DATE = ** CPUTM_TIME = ** JOURNAL_DESC = ** TRANS_DESC = ** DOC_TYPE = ** TRANS_DESC_LINES = ** BILLING_NO = ** KUNRG = ** TABLES ** IT_PRODUCTS = .

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 = '83' IMPORTING tdgl_desc = tdglsedc.

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.

PT_USER_EXIT_DART CALL FUNCTION 'PT_USER_EXIT_DART' EXPORTING wa_master = wa_master transaction_type = 86 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 = '81' wa_bi_hd = wa_bi_hd IMPORTING tdgl_desc = tdglsedc.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING client = sy-mandt date = wa_rbkp-bldat foreign_amount = wa_rbkp-rmwwr foreign_currency = wa_rbkp-waers local_currency = 'EUR' IMPORTING local_amount = lv_local_currency EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING client = sy-mandt date = wa_rbkp-bldat foreign_amount = wa_rbkp-rmwwr foreign_currency = wa_rbkp-waers local_currency = 'EUR' IMPORTING local_amount = lv_local_currency EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING client = sy-mandt date = wa_rbkp-bldat foreign_amount = wa_rbkp-rmwwr foreign_currency = wa_rbkp-waers local_currency = 'EUR' IMPORTING local_amount = lv_local_currency EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 OTHERS = 6.

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.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename parameter_1 = sy-cprog CHANGING physical_filename = pdatname.



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