SAP MRMBADI_MRKO_HDAT_MODIFY Function Module for NOTRANSL: MRKO: Lieferanten und Belegart ändern
MRMBADI_MRKO_HDAT_MODIFY is a standard mrmbadi mrko hdat modify 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: MRKO: Lieferanten und Belegart ändern 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 mrmbadi mrko hdat modify FM, simply by entering the name MRMBADI_MRKO_HDAT_MODIFY into the relevant SAP transaction such as SE37 or SE38.
Function Group: MRMBADI
Program Name: SAPLMRMBADI
Main Program: SAPLMRMBADI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MRMBADI_MRKO_HDAT_MODIFY 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 'MRMBADI_MRKO_HDAT_MODIFY'"NOTRANSL: MRKO: Lieferanten und Belegart ändern.
EXPORTING
I_BUKRS = "Company Code
I_LIFNR = "Vendor (Creditor) Account Number
I_BLART = "Document Type
TI_RKWA = "Consignment Withdrawals
IMPORTING
E_LIFNR = "Vendor (Creditor) Account Number
E_BLART = "Document Type
EXCEPTIONS
BADI_ERROR = 1
IMPORTING Parameters details for MRMBADI_MRKO_HDAT_MODIFY
I_BUKRS - Company Code
Data type: BKPF-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_LIFNR - Vendor (Creditor) Account Number
Data type: BSEG-LIFNROptional: No
Call by Reference: No ( called with pass by value option)
I_BLART - Document Type
Data type: BKPF-BLARTOptional: No
Call by Reference: No ( called with pass by value option)
TI_RKWA - Consignment Withdrawals
Data type: MRM_IDOC_DATA_KONS-T_RKWAOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MRMBADI_MRKO_HDAT_MODIFY
E_LIFNR - Vendor (Creditor) Account Number
Data type: BSEG-LIFNROptional: No
Call by Reference: No ( called with pass by value option)
E_BLART - Document Type
Data type: BKPF-BLARTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
BADI_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MRMBADI_MRKO_HDAT_MODIFY 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_e_lifnr | TYPE BSEG-LIFNR, " | |||
| lv_i_bukrs | TYPE BKPF-BUKRS, " | |||
| lv_badi_error | TYPE BKPF, " | |||
| lv_e_blart | TYPE BKPF-BLART, " | |||
| lv_i_lifnr | TYPE BSEG-LIFNR, " | |||
| lv_i_blart | TYPE BKPF-BLART, " | |||
| lv_ti_rkwa | TYPE MRM_IDOC_DATA_KONS-T_RKWA. " |
|   CALL FUNCTION 'MRMBADI_MRKO_HDAT_MODIFY' "NOTRANSL: MRKO: Lieferanten und Belegart ändern |
| EXPORTING | ||
| I_BUKRS | = lv_i_bukrs | |
| I_LIFNR | = lv_i_lifnr | |
| I_BLART | = lv_i_blart | |
| TI_RKWA | = lv_ti_rkwa | |
| IMPORTING | ||
| E_LIFNR | = lv_e_lifnr | |
| E_BLART | = lv_e_blart | |
| EXCEPTIONS | ||
| BADI_ERROR = 1 | ||
| . " MRMBADI_MRKO_HDAT_MODIFY | ||
ABAP code using 7.40 inline data declarations to call FM MRMBADI_MRKO_HDAT_MODIFY
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 LIFNR FROM BSEG INTO @DATA(ld_e_lifnr). | ||||
| "SELECT single BUKRS FROM BKPF INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single BLART FROM BKPF INTO @DATA(ld_e_blart). | ||||
| "SELECT single LIFNR FROM BSEG INTO @DATA(ld_i_lifnr). | ||||
| "SELECT single BLART FROM BKPF INTO @DATA(ld_i_blart). | ||||
| "SELECT single T_RKWA FROM MRM_IDOC_DATA_KONS INTO @DATA(ld_ti_rkwa). | ||||
Search for further information about these or an SAP related objects