J_3RFVATMMF02 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 J_3RFVATMMF02 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: Build VAT Document
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = ls_bkpf_fi-wwert foreign_amount = ls_rseg-wrbtr foreign_currency =
-waers_mm local_currency = ls_bkpf-waers type_of_rate = l_kurst rate = ls_bkpf_fi-kursf IMPORTING local_amount = ls_bseg-hwbas EXCEPTIONS OTHERS = 6.
CALCULATE_TAX_FROM_NET_AMOUNT CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT' EXPORTING i_bukrs = ls_bkpf-bukrs i_mwskz = ls_bseg-mwskz i_waers = ls_bkpf-waers i_wrbtr = ls_bseg-hwbas IMPORTING e_fwste = ls_bseg-dmbtr TABLES t_mwdat = lt_mwdat[] EXCEPTIONS bukrs_not_found = 1 country_not_found = 2 mwskz_not_defined = 3 mwskz_not_valid = 4 ktosl_not_found = 5 kalsm_not_found = 6 parameter_error = 7 knumh_not_found = 8 kschl_not_found = 9 unknown_error = 10 account_not_found = 11 txjcd_not_valid = 12 OTHERS = 13.
GET_TAX_PERCENTAGE CALL FUNCTION 'GET_TAX_PERCENTAGE' EXPORTING aland = i_land1 datab = sy-datum " ??? mwskz = i_mwskz txjcd = space TABLES t_ftaxp = lt_ftaxp EXCEPTIONS OTHERS = 1.
FI_COUNTRY_DATA CALL FUNCTION 'FI_COUNTRY_DATA' EXPORTING i_land1 = gs_t001-land1 IMPORTING e_t005 = ls_t005.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.