MJ1IAF02 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 MJ1IAF02 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: Sub-Routines To Calc. Taxes For SAPMJ1IA
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
SAP_TO_ISO_COUNTRY_CODE CALL FUNCTION 'SAP_TO_ISO_COUNTRY_CODE' EXPORTING sap_code = t001-land1 IMPORTING iso_code = t005-intca EXCEPTIONS not_found = 1 no_iso_code = 2 OTHERS = 3.
ME_PRICING_POSITION CALL FUNCTION 'ME_PRICING_POSITION' EXPORTING kopf = ekko lieferant_a = lfa1 position = ekpo preisfindungsart = 'C' wedaten = wedaten IMPORTING netwr = taxcom-wrbtr TABLES i_tkomv = xkomv EXCEPTIONS OTHERS = 1.
REFRESH_TAX_TABLES CALL FUNCTION 'REFRESH_TAX_TABLES' EXCEPTIONS OTHERS = 1.
FIND_TAX_SPREADSHEET CALL FUNCTION 'FIND_TAX_SPREADSHEET' EXPORTING buchungskreis = t001-bukrs IMPORTING * netto_netto = schema = tax_proc * steuer_netto = EXCEPTIONS not_found = 1 OTHERS = 2.
J_1I6_EXC_UNIT_CONVERSION CALL FUNCTION 'J_1I6_EXC_UNIT_CONVERSION' EXPORTING matnr = t_item-matnr old_uom = t_item-meins new_uom = ekpo-meins old_qty = t_item-menge y_ekpo = ekpo y_mseg = mseg IMPORTING new_qty = new_qty EXCEPTIONS OTHERS = 1.
CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = ekko-waers local_amount = t_exccom-exbed local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING foreign_amount = t_exccom-exbed EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3.
CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = ekko-waers local_amount = t_exccom-exaed local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING foreign_amount = t_exccom-exaed EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3.
CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = ekko-waers local_amount = t_exccom-exsed local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING foreign_amount = t_exccom-exsed EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3.
CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING date = sy-datum foreign_currency = ekko-waers local_amount = t_exccom-exbed local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING foreign_amount = t_exccom-exbed EXCEPTIONS no_rate_found = 1 overflow = 2 no_factors_found = 3.
J_1I4_COPY_PO_DATA CALL FUNCTION 'J_1I4_COPY_PO_DATA' EXPORTING y_ekpo = ekpo exccom = t_exccom EXCEPTIONS OTHERS = 1.
CALCULATE_TAX_ITEM CALL FUNCTION 'CALCULATE_TAX_ITEM' EXPORTING i_taxcom = taxcom IMPORTING e_navfw = t_item-navfw " NAVS Value TABLES t_xkomv = t_komv EXCEPTIONS mwskz_not_defined = 1 mwskz_not_found = 2 mwskz_not_valid = 3 steuerbetrag_falsch = 4 OTHERS = 5.
ME_PRICING_REFRESH call function 'ME_PRICING_REFRESH' "delivery costs exceptions others = 1.
J_1I4_COPY_PO_DATA CALL FUNCTION 'J_1I4_COPY_PO_DATA' EXPORTING y_ekpo = ekpo exccom = t_exccom EXCEPTIONS OTHERS = 1.
J_1I4_STORE_DED_TAX_FOR_OCTROI CALL FUNCTION 'J_1I4_STORE_DED_TAX_FOR_OCTROI' EXPORTING baseval = octroi_base change_base = octroi_base EXCEPTIONS OTHERS = 1.
J_1I7_USEREXIT_PRICE_CONTROL CALL FUNCTION 'J_1I7_USEREXIT_PRICE_CONTROL' EXPORTING ekko = ekko mblnr = t_header-mblnr exnum = t_header-exnum exdat = t_header-exdat IMPORTING pricing_date = pricing_date EXCEPTIONS OTHERS = 1.
ME_PRICING_POSITION CALL FUNCTION 'ME_PRICING_POSITION' EXPORTING kopf = ekko lieferant_a = lfa1 position = ekpo preisfindungsart = 'C' wedaten = wedaten * IMPORTING * navnw = t_item-navfw TABLES i_tkomv = xkomv EXCEPTIONS OTHERS = 1.
ME_PRICING_POSITION_KONV CALL FUNCTION 'ME_PRICING_POSITION_KONV' EXPORTING i_ebeln = ekpo-ebeln i_ebelp = ekpo-ebelp i_kruek = 'X' "nur rückstellungsrelevante TABLES tkonv = xkonv.
J_1I6_DETERMINE_EXC_YEAR CALL FUNCTION 'J_1I6_DETERMINE_EXC_YEAR' EXPORTING i_bukrs = t_header-bukrs IMPORTING excise_year = v_excise_year EXCEPTIONS miss_company = 1 OTHERS = 2.
CALL FUNCTION 'J_1I_DETERMINE_CONDITION_DEF' EXPORTING ar_ap = 'AP' kalsm = tax_proc MWSKZ = ekpo-mwskz TAXPROC = tax_proc BUKRS = ekko-bukrs IMPORTING T_EXCDEF = j_1iexcdef t_taxcond = t_taxcond.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = old_header-total_base foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_header-total_base EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = old_header-total_bed foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING * exchange_rate = local_amount = t_header-total_bed EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = old_header-total_aed foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_header-total_aed EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = old_header-total_sed foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_header-total_sed EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = old_header-total_amount foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_header-total_amount EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = old_header-addlval foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_header-addlval EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-orig_total foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-orig_total EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-orig_base foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-orig_base EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-excise_total foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-excise_total EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-navfw foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-navfw EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-exbas foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-exbas EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-excise_bed foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-excise_bed EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-excise_aed foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-excise_aed EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-excise_sed foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-excise_sed EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-orig_bed foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-orig_bed EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-orig_aed foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-orig_aed EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-orig_sed foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-orig_sed EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-bed_inventory foreign_currency = pocur local_currency = t001-waers * RATE = 0 * TYPE_OF_RATE = 'M' TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-bed_inventory EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-aed_inventory foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-aed_inventory EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-sed_inventory foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-sed_inventory EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-total_bed foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-total_bed EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-total_aed foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-total_aed EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datum foreign_amount = t_item-total_sed foreign_currency = pocur local_currency = t001-waers TYPE_OF_RATE = j_1iindcus-j_1icvdexcg IMPORTING local_amount = t_item-total_sed EXCEPTIONS no_rate_found = 1 overflow = 2 OTHERS = 3.
RV_KONV_SELECT CALL FUNCTION 'RV_KONV_SELECT' "mit append EXPORTING comm_head_i = komk general_read = i_general_read TABLES tkomv = gkomv.
J_1I6_MESSAGE CALL FUNCTION 'J_1I6_MESSAGE' EXPORTING arbgb = '8I' msgnr = '560' def_msgty = 'W' msgtx1 = msgtxt1 msgtx2 = msgtxt2 * MSGTX3 = * MSGTX4 = EXCEPTIONS OTHERS = 1.
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 MJ1IAF02 or its description.