SAP MRM_COMPLAIN_DATA_GET Function Module for NOTRANSL: Gibt die Daten für das Reklamationsschreiben zurück
MRM_COMPLAIN_DATA_GET is a standard mrm complain data get 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: Gibt die Daten für das Reklamationsschreiben zurück 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 complain data get FM, simply by entering the name MRM_COMPLAIN_DATA_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: MRMN
Program Name: SAPLMRMN
Main Program: SAPLMRMN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MRM_COMPLAIN_DATA_GET 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_COMPLAIN_DATA_GET'"NOTRANSL: Gibt die Daten für das Reklamationsschreiben zurück.
EXPORTING
I_BELNR = "Document Number of an Invoice Document
I_GJAHR = "Fiscal Year
IMPORTING
E_AUTO_REDUCED = "Shows That the Invoice Was Reduced Automatically
E_EMAIL = "SMTP Addresses Data Transfer Structure (Bus. Addr. Services)
E_MESSAGE_STATUS = "Message status
TE_COMPLAIN_RSEG = "
TE_COMPLAIN_PLANTS = "
TE_COMPLAIN_ITEMS = "
TE_COMPLAIN_TAX = "
E_TXJCD = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
E_REPEAT = "Shows That the Invoice Reduction Has Already Been Processed
E_ADDRESS = "
E_RBKP = "Document Header in Incoming Invoice
E_VENDOR_GENERAL = "Vendor Master (General Section)
E_VENDOR_COMP_CODE = "Vendor Master (Company Code)
E_COMP_CODE = "Company Codes
E_ADDR3_VAL = "Return structure for the address of a person in a company
EXCEPTIONS
ERROR_MESSAGE_RECEIVED = 1 INVOICE_NOT_EXISTING = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLMRMN_001 Customer Exit: Change IDoc Outbound Processing
EXIT_SAPLMRMN_002 Customer Exit: Change Printout for Invoice Document
EXIT_SAPLMRMN_003 Customer Exit: Document Creation Depending On Message Determination
IMPORTING Parameters details for MRM_COMPLAIN_DATA_GET
I_BELNR - Document Number of an Invoice Document
Data type: RE_BELNROptional: No
Call by Reference: Yes
I_GJAHR - Fiscal Year
Data type: GJAHROptional: No
Call by Reference: Yes
EXPORTING Parameters details for MRM_COMPLAIN_DATA_GET
E_AUTO_REDUCED - Shows That the Invoice Was Reduced Automatically
Data type: BAPI_AUTINVRED_INDOptional: No
Call by Reference: Yes
E_EMAIL - SMTP Addresses Data Transfer Structure (Bus. Addr. Services)
Data type: ADSMTPOptional: No
Call by Reference: Yes
E_MESSAGE_STATUS - Message status
Data type: NASTOptional: No
Call by Reference: Yes
TE_COMPLAIN_RSEG -
Data type: OPS_RM08NAST_T_RSEG_PDFOptional: No
Call by Reference: Yes
TE_COMPLAIN_PLANTS -
Data type: OPS_RM08NAST_T_PLANT_PDFOptional: No
Call by Reference: Yes
TE_COMPLAIN_ITEMS -
Data type: OPS_RM08NAST_T_ITEM_PDFOptional: No
Call by Reference: Yes
TE_COMPLAIN_TAX -
Data type: OPS_RM08NAST_T_TAXDETAIL_PDFOptional: No
Call by Reference: Yes
E_TXJCD - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: No
Call by Reference: Yes
E_REPEAT - Shows That the Invoice Reduction Has Already Been Processed
Data type: BAPI_REPEAT_INDOptional: No
Call by Reference: Yes
E_ADDRESS -
Data type: OPS_RM08NAST_ADDR_PDFOptional: No
Call by Reference: Yes
E_RBKP - Document Header in Incoming Invoice
Data type: RBKPOptional: No
Call by Reference: Yes
E_VENDOR_GENERAL - Vendor Master (General Section)
Data type: LFA1Optional: No
Call by Reference: Yes
E_VENDOR_COMP_CODE - Vendor Master (Company Code)
Data type: LFB1Optional: No
Call by Reference: Yes
E_COMP_CODE - Company Codes
Data type: T001Optional: No
Call by Reference: Yes
E_ADDR3_VAL - Return structure for the address of a person in a company
Data type: ADDR3_VALOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_MESSAGE_RECEIVED -
Data type:Optional: No
Call by Reference: Yes
INVOICE_NOT_EXISTING -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MRM_COMPLAIN_DATA_GET 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_belnr | TYPE RE_BELNR, " | |||
| lv_e_auto_reduced | TYPE BAPI_AUTINVRED_IND, " | |||
| lv_error_message_received | TYPE BAPI_AUTINVRED_IND, " | |||
| lv_e_email | TYPE ADSMTP, " | |||
| lv_e_message_status | TYPE NAST, " | |||
| lv_te_complain_rseg | TYPE OPS_RM08NAST_T_RSEG_PDF, " | |||
| lv_te_complain_plants | TYPE OPS_RM08NAST_T_PLANT_PDF, " | |||
| lv_te_complain_items | TYPE OPS_RM08NAST_T_ITEM_PDF, " | |||
| lv_te_complain_tax | TYPE OPS_RM08NAST_T_TAXDETAIL_PDF, " | |||
| lv_e_txjcd | TYPE BOOLE_D, " | |||
| lv_i_gjahr | TYPE GJAHR, " | |||
| lv_invoice_not_existing | TYPE GJAHR, " | |||
| lv_e_repeat | TYPE BAPI_REPEAT_IND, " | |||
| lv_e_address | TYPE OPS_RM08NAST_ADDR_PDF, " | |||
| lv_e_rbkp | TYPE RBKP, " | |||
| lv_e_vendor_general | TYPE LFA1, " | |||
| lv_e_vendor_comp_code | TYPE LFB1, " | |||
| lv_e_comp_code | TYPE T001, " | |||
| lv_e_addr3_val | TYPE ADDR3_VAL. " |
|   CALL FUNCTION 'MRM_COMPLAIN_DATA_GET' "NOTRANSL: Gibt die Daten für das Reklamationsschreiben zurück |
| EXPORTING | ||
| I_BELNR | = lv_i_belnr | |
| I_GJAHR | = lv_i_gjahr | |
| IMPORTING | ||
| E_AUTO_REDUCED | = lv_e_auto_reduced | |
| E_EMAIL | = lv_e_email | |
| E_MESSAGE_STATUS | = lv_e_message_status | |
| TE_COMPLAIN_RSEG | = lv_te_complain_rseg | |
| TE_COMPLAIN_PLANTS | = lv_te_complain_plants | |
| TE_COMPLAIN_ITEMS | = lv_te_complain_items | |
| TE_COMPLAIN_TAX | = lv_te_complain_tax | |
| E_TXJCD | = lv_e_txjcd | |
| E_REPEAT | = lv_e_repeat | |
| E_ADDRESS | = lv_e_address | |
| E_RBKP | = lv_e_rbkp | |
| E_VENDOR_GENERAL | = lv_e_vendor_general | |
| E_VENDOR_COMP_CODE | = lv_e_vendor_comp_code | |
| E_COMP_CODE | = lv_e_comp_code | |
| E_ADDR3_VAL | = lv_e_addr3_val | |
| EXCEPTIONS | ||
| ERROR_MESSAGE_RECEIVED = 1 | ||
| INVOICE_NOT_EXISTING = 2 | ||
| . " MRM_COMPLAIN_DATA_GET | ||
ABAP code using 7.40 inline data declarations to call FM MRM_COMPLAIN_DATA_GET
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.Search for further information about these or an SAP related objects