SAP Reports / Programs

RMMR01RS SAP ABAP Report - Evaluated Receipt Settlement (ERS)







RMMR01RS is a standard Executable ABAP Report 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 RMMR01RS into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

MRRS - Evaluated Receipt Settlement


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


Text pool values


Selection Text: ERSBA = Document selection
Selection Text: B_XTEST = Test mode
Selection Text: B_MJAHR = Fiscal year, goods receipt
Selection Text: B_MBLNR = Goods receipt document
Selection Text: B_LIFNR = Vendor
Selection Text: B_EBELP = Purchase order item
Selection Text: B_EBELN = Purchase order
Selection Text: B_BUKRS = Company Code
Selection Text: B_BUDAT = Posting date of goods receipt
Title: Evaluated Receipt Settlement (ERS)
Text Symbol: E06 = ERS qty larger than qty to be invoiced
Text Symbol: E07 = Program error in MR CREATE INVOICE
Text Symbol: E08 = Invoice and credit memo not possible in one document
Text Symbol: E09 = No invoice document necessary (goods receipt canceled or goods returned)
Text Symbol: E10 = Different invoice recipient not consistent
Text Symbol: E11 = Order currency not unique, please use document selection 2
Text Symbol: E12 = Difference between quantity and value
Text Symbol: E99 = Document selection 'One document per material document' not yet available
Text Symbol: P01 = Exit list
Text Symbol: P10 = Should the selected
Text Symbol: P11 = lines be excluded from ERS?
Text Symbol: V01 = One document per vendor
Text Symbol: V02 = One document per PO
Text Symbol: V03 = One document per PO item
Text Symbol: V04 = One document per mat. doc.
Text Symbol: 002 = Year
Text Symbol: 003 = Creditor
Text Symbol: 004 = Evaluated receipt settlement
Text Symbol: 005 = Variant
Text Symbol: 006 = Test mode
Text Symbol: 007 = No transactions for invoicing found
Text Symbol: 010 = Invoiced transacts.
Text Symbol: 011 = Transacts. not to be invoiced
Text Symbol: 012 = Log
Text Symbol: 020 = Pur. order
Text Symbol: 021 = Item
Text Symbol: 022 = Mat. doc.
Text Symbol: 023 = Doc.





Text Symbol: 024 = Delivery note
Text Symbol: 025 = Sh. Text
Text Symbol: 026 = Total
Text Symbol: 027 = Taxes
Text Symbol: 030 = Qty in or.pr.un
Text Symbol: 031 = Qty
Text Symbol: 032 = Amount
Text Symbol: E01 = ERS qty larger than qty to be invoiced
Text Symbol: E02 = Settlement per GR document: GR-based IV must be active
Text Symbol: E03 = PO item contains no tax code
Text Symbol: E04 = More than one fxd exchange rate not possible in an invoice
Text Symbol: E05 = Document posted:


INCLUDES used within this REPORT RMMR01RS

INCLUDE INCLDATA.


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:

MR_CREATE_INVOICE CALL FUNCTION 'MR_CREATE_INVOICE' IMPORTING e_belnr = bb_bbelnr e_gjahr = bb_bgjahr TABLES t_bbkpf = xbbkpf t_mesg = xmesg t_rbsec = xrbsec t_rbseg = xrbseg t_rbset = xrbset EXCEPTIONS document_not_booked = 01 header_not_valid = 02 positions_not_valid = 03.

ME_READ_DOCUMENT_ERS CALL FUNCTION 'ME_READ_DOCUMENT_ERS' IMPORTING e_ersmg = bestab-ersmg e_remng = bestab-remng e_ekko = hekko TABLES t_ekrs = zekrs.

ME_UPDATE_EKRS CALL FUNCTION 'ME_UPDATE_EKRS' IN UPDATE TASK EXPORTING i_delete = x TABLES t_ekrs = fu_ekrs.

READ_LFA1 CALL FUNCTION 'READ_LFA1' EXPORTING xlifnr = ll_lifnr IMPORTING xlfa1 = ll_lfa1.

SD_SCD_ERS_OUTPUT_PREPARE CALL FUNCTION 'SD_SCD_ERS_OUTPUT_PREPARE' EXPORTING i_pritab = l_pritab i_validity_check = x.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'"#EC FB_OLDED EXPORTING textline1 = text-p10 textline2 = text-p11 titel = text-p01 IMPORTING answer = lv_answer.

RPY_MESSAGE_COMPOSE CALL FUNCTION 'RPY_MESSAGE_COMPOSE' EXPORTING message_id = logtab-arbgb message_number = pa_msgno message_var1 = logtab-msgv1 message_var2 = logtab-msgv2 message_var3 = logtab-msgv3 message_var4 = logtab-msgv4 IMPORTING message_text = pa_mtext.

J_1BSA_COMPONENT_ACTIVE CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE' EXPORTING BUKRS = xbbkpf-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 = t001-land1 IMPORTING iso_code = t005-intca EXCEPTIONS not_found = 1 no_iso_code = 2.

FIND_TAX_SPREADSHEET CALL FUNCTION 'FIND_TAX_SPREADSHEET' EXPORTING buchungskreis = xbbkpf-bukrs.

CALCULATE_TAX_ITEM CALL FUNCTION 'CALCULATE_TAX_ITEM' EXPORTING i_taxcom = sf_taxcom IMPORTING e_taxcom = sf_taxcom TABLES t_xkomv = xkomv EXCEPTIONS error_message = 4.

CHECK_JURISDICTION_ACTIVE CALL FUNCTION 'CHECK_JURISDICTION_ACTIVE' EXPORTING i_bukrs = xbbkpf-bukrs IMPORTING e_external = jc_active.








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