SAP MRM_INVOICE_DATA_SAVE_MR1B Function Module for NOTRANSL: Reprü-Differenzenbearbeitung: Speichern der Rechnungsdaten
MRM_INVOICE_DATA_SAVE_MR1B is a standard mrm invoice data save mr1b SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Reprü-Differenzenbearbeitung: Speichern der Rechnungsdaten processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for mrm invoice data save mr1b FM, simply by entering the name MRM_INVOICE_DATA_SAVE_MR1B into the relevant SAP transaction such as SE37 or SE38.
Function Group: MRMX
Program Name: SAPLMRMX
Main Program: SAPLMRMX
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MRM_INVOICE_DATA_SAVE_MR1B pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'MRM_INVOICE_DATA_SAVE_MR1B'"NOTRANSL: Reprü-Differenzenbearbeitung: Speichern der Rechnungsdaten.
EXPORTING
I_RBLNR = "Document Number of an Invoice Document
I_RJAHR = "Fiscal Year
I_XREPART = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
IMPORTING
E_KNUMVE = "Document condition - own conditions
E_KNUMVL = "Document condition - vendor error
CHANGING
C_XSAVED = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
EXCEPTIONS
INTERNAL_ERROR = 1 UNLOCK_NOT_POSSIBLE = 2 INVOICE_LOCKED = 3 NO_CHANGES = 4
IMPORTING Parameters details for MRM_INVOICE_DATA_SAVE_MR1B
I_RBLNR - Document Number of an Invoice Document
Data type: RBKPB-BELNROptional: No
Call by Reference: No ( called with pass by value option)
I_RJAHR - Fiscal Year
Data type: RBKPB-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
I_XREPART - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MRM_INVOICE_DATA_SAVE_MR1B
E_KNUMVE - Document condition - own conditions
Data type: RBKP-KNUMVEOptional: No
Call by Reference: Yes
E_KNUMVL - Document condition - vendor error
Data type: RBKP-KNUMVLOptional: No
Call by Reference: Yes
CHANGING Parameters details for MRM_INVOICE_DATA_SAVE_MR1B
C_XSAVED - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INTERNAL_ERROR - Internal Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNLOCK_NOT_POSSIBLE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVOICE_LOCKED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_CHANGES - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MRM_INVOICE_DATA_SAVE_MR1B Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_i_rblnr | TYPE RBKPB-BELNR, " | |||
| lv_c_xsaved | TYPE BOOLE-BOOLE, " | |||
| lv_e_knumve | TYPE RBKP-KNUMVE, " | |||
| lv_internal_error | TYPE RBKP, " | |||
| lv_i_rjahr | TYPE RBKPB-GJAHR, " | |||
| lv_e_knumvl | TYPE RBKP-KNUMVL, " | |||
| lv_unlock_not_possible | TYPE RBKP, " | |||
| lv_i_xrepart | TYPE BOOLE-BOOLE, " | |||
| lv_invoice_locked | TYPE BOOLE, " | |||
| lv_no_changes | TYPE BOOLE. " |
|   CALL FUNCTION 'MRM_INVOICE_DATA_SAVE_MR1B' "NOTRANSL: Reprü-Differenzenbearbeitung: Speichern der Rechnungsdaten |
| EXPORTING | ||
| I_RBLNR | = lv_i_rblnr | |
| I_RJAHR | = lv_i_rjahr | |
| I_XREPART | = lv_i_xrepart | |
| IMPORTING | ||
| E_KNUMVE | = lv_e_knumve | |
| E_KNUMVL | = lv_e_knumvl | |
| CHANGING | ||
| C_XSAVED | = lv_c_xsaved | |
| EXCEPTIONS | ||
| INTERNAL_ERROR = 1 | ||
| UNLOCK_NOT_POSSIBLE = 2 | ||
| INVOICE_LOCKED = 3 | ||
| NO_CHANGES = 4 | ||
| . " MRM_INVOICE_DATA_SAVE_MR1B | ||
ABAP code using 7.40 inline data declarations to call FM MRM_INVOICE_DATA_SAVE_MR1B
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single BELNR FROM RBKPB INTO @DATA(ld_i_rblnr). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_c_xsaved). | ||||
| "SELECT single KNUMVE FROM RBKP INTO @DATA(ld_e_knumve). | ||||
| "SELECT single GJAHR FROM RBKPB INTO @DATA(ld_i_rjahr). | ||||
| "SELECT single KNUMVL FROM RBKP INTO @DATA(ld_e_knumvl). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xrepart). | ||||
Search for further information about these or an SAP related objects