MM08RFS0 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 MM08RFS0 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.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
READ_HAUPTBUCH_AND_TEXT CALL FUNCTION 'READ_HAUPTBUCH_AND_TEXT' EXPORTING sprache = sy-langu buchungskreis = sal_bukrs sachkonto = sal_saknr IMPORTING kontenplan_wa = ska1 sachkonto_wa = skb1 text_wa = skat EXCEPTIONS kontenplan_not_found = 1 sachkonto_not_found = 2.
J_1BSA_COMPONENT_ACTIVE CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE' EXPORTING BUKRS = xek08r-bukrs COMPONENT = 'IN' EXCEPTIONS COMPONENT_NOT_ACTIVE = 1 OTHERS = 2 .
SAP_TO_ISO_COUNTRY_CODE CALL FUNCTION 'SAP_TO_ISO_COUNTRY_CODE' EXPORTING sap_code = t001w-land1 IMPORTING iso_code = t005-intca EXCEPTIONS not_found = 1 no_iso_code = 2 OTHERS = 3.
ROUND_AMOUNT CALL FUNCTION 'ROUND_AMOUNT' EXPORTING amount_in = skonto_brutto company = bkpf-bukrs currency = bkpf-waers IMPORTING amount_out = skonto_brutto.
ROUND_AMOUNT CALL FUNCTION 'ROUND_AMOUNT' EXPORTING amount_in = skonto company = bkpf-bukrs currency = bkpf-waers IMPORTING amount_out = skonto.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING foreign_currency = bkpf-waers local_currency = t001-waers foreign_amount = xbseg-wskto rate = bkpf-kursf date = bkpf-wwert IMPORTING local_amount = xbseg-sknto.
MR_ACCOUNT_ASSIGNMENT CALL FUNCTION 'MR_ACCOUNT_ASSIGNMENT' EXPORTING kontenplan = t001-ktopl soll_haben_kennzeichen = 'S' vorgangsschluessel = ktosl-skv konto_modif = komok_mwskz IMPORTING konto = skv_konto EXCEPTIONS OTHERS = 1.
CALCULATE_TAX_ITEM CALL FUNCTION 'CALCULATE_TAX_ITEM' EXPORTING dialog = 'N' inklusive = space i_taxcom = taxcom pruefen = space reset = space IMPORTING e_taxcom = taxcom nav_anteil = anteil.
QARE_CHECK_QALS_WE CALL FUNCTION 'QARE_CHECK_QALS_WE' EXPORTING i_ebeln = bseg-ebeln i_ebelp = bseg-ebelp i_mblnr = dm08r-lfbnr i_mjahr = dm08r-lfgja i_zeile = dm08r-lfpos i_ssqss = dm08r-ssqss IMPORTING e_subrc = rc.
MR_CHECK_TOLERANCE CALL FUNCTION 'MR_CHECK_TOLERANCE' EXPORTING aktueller_wert = ybseg-wrbtr buchungskreis = ybseg-bukrs toleranz_schluessel = ssp_tolsl vergleichswert = 0 waehrung = bkpf-waers wertstellung = bkpf-wwert kurs = bkpf-kursf hswaers = t001-waers IMPORTING betrag = betrag returncode = rcode sperrgrund = ybseg-spgrs.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = msgid-m8 msgty = 'I' txtnr = '143' zeile = bseg-buzei.
SHOW_BSET CALL FUNCTION 'SHOW_BSET' TABLES t_bset = xbset.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING foreign_currency = bkpf-waers local_currency = t001-waers foreign_amount = refe rate = bkpf-kursf date = bkpf-wwert IMPORTING local_amount = refe.
CALCULATE_TAX_DOCUMENT CALL FUNCTION 'CALCULATE_TAX_DOCUMENT' EXPORTING i_bukrs = bkpf-bukrs IMPORTING e_itxdat = itxdat TABLES t_bkpf = xbkpf t_bseg = ybseg t_dbseg = ydbseg t_fictx = tfictx t_ficco = tficco EXCEPTIONS user_exit = 1.
CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING foreign_currency = bkpf-waers local_currency = bkpf-hwaer foreign_amount = bseg-wrbtr rate = bkpf-kursf date = bkpf-wwert IMPORTING local_amount = bseg-dmbtr.
CALCULATE_TAX_DOCUMENT CALL FUNCTION 'CALCULATE_TAX_DOCUMENT' EXPORTING i_bukrs = bkpf-bukrs IMPORTING e_itxdat = itxdat TABLES t_bkpf = xbkpf t_bseg = tbseg t_dbseg = ydbseg t_fictx = tfictx t_ficco = tficco EXCEPTIONS user_exit = 1.
CREATE_BSET_ITEM CALL FUNCTION 'CREATE_BSET_ITEM' TABLES t_bkpf = xbkpf t_bseg = ybseg t_bset = xbset.
CREATE_BSET_ITEM CALL FUNCTION 'CREATE_BSET_ITEM' TABLES t_bkpf = xbkpf t_bseg = tbseg t_bset = xbset.
CALL FUNCTION 'CREATE_TAX_ITEM' TABLES t_bsegt = xbsegt.
ENTER_TAXES CALL FUNCTION 'ENTER_TAXES' EXPORTING i_bkpf = bkpf i_title = title i_xdisp = xdisp IMPORTING e_fcode = ok-code e_xmwst = bkpf-xmwst e_vatdate = bkpf-vatdate "N1023317 TABLES t_bseg = ybseg EXCEPTIONS user_exit = 1.
CALCULATE_TAX_DOCUMENT CALL FUNCTION 'CALCULATE_TAX_DOCUMENT' "ALRK144416 EXPORTING i_bukrs = bkpf-bukrs TABLES t_bkpf = xbkpf t_bseg = ybseg EXCEPTIONS user_exit = 1.
ENTER_TAXES CALL FUNCTION 'ENTER_TAXES' EXPORTING * i_bkpf = bkpf "ALRK144416 i_bkpf = xbkpf "ALRK144416 IMPORTING e_fcode = ok-code e_xmwst = bkpf-xmwst e_vatdate = bkpf-vatdate "N1023317 TABLES t_bseg = ybseg EXCEPTIONS user_exit = 0.
QF05_RANDOM CALL FUNCTION 'QF05_RANDOM' IMPORTING ran_number = zufallszahl.
QF05_RANDOM_SAVE_SEED CALL FUNCTION 'QF05_RANDOM_SAVE_SEED'.
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 MM08RFS0 or its description.