SAP MB_MPN_CHANGE_READ_DATA Function Module for NOTRANSL: Ermitteln abhängiger Daten beim Ändern der HTN zum bestandsgef.
MB_MPN_CHANGE_READ_DATA is a standard mb mpn change read data 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: Ermitteln abhängiger Daten beim Ändern der HTN zum bestandsgef. 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 mb mpn change read data FM, simply by entering the name MB_MPN_CHANGE_READ_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: MBMP
Program Name: SAPLMBMP
Main Program: SAPLMBMP
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MB_MPN_CHANGE_READ_DATA 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 'MB_MPN_CHANGE_READ_DATA'"NOTRANSL: Ermitteln abhängiger Daten beim Ändern der HTN zum bestandsgef..
EXPORTING
O_EMATN = "Material Number
* NO_CHECK = "
MATNR = "Material Number
N_EMATN = "Material Number
WERKS = "Plant
* O_MPROF = "Manufacturer Part Profile
MPROF = "Manufacturer Part Profile
* REVLV = "Revision Level
* CHECK_MPN_CHANGE = 'X' "
* I_SPRAS = "Language Key
CHANGING
* MFRNR = "Manufacturer number
* MFRPN = "Manufacturer Part Number
* EMNFR = "External manufacturer code name or number
* TXZ01 = "Short Text
EXCEPTIONS
NO_MPN_CHANGE_POSSIBLE = 1 NO_VALID_RELATION = 2 BAD_MATERIAL = 3
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_SAPLMBMP_003 Customer Enhancement for AMPL Checks
IMPORTING Parameters details for MB_MPN_CHANGE_READ_DATA
O_EMATN - Material Number
Data type: EKPO-EMATNOptional: No
Call by Reference: No ( called with pass by value option)
NO_CHECK -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
MATNR - Material Number
Data type: EKPO-MATNROptional: No
Call by Reference: No ( called with pass by value option)
N_EMATN - Material Number
Data type: EKPO-EMATNOptional: No
Call by Reference: No ( called with pass by value option)
WERKS - Plant
Data type: EKPO-WERKSOptional: No
Call by Reference: No ( called with pass by value option)
O_MPROF - Manufacturer Part Profile
Data type: EKPO-MPROFOptional: Yes
Call by Reference: No ( called with pass by value option)
MPROF - Manufacturer Part Profile
Data type: EKPO-MPROFOptional: No
Call by Reference: No ( called with pass by value option)
REVLV - Revision Level
Data type: EKPO-REVLVOptional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_MPN_CHANGE -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SPRAS - Language Key
Data type: EKKO-SPRASOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for MB_MPN_CHANGE_READ_DATA
MFRNR - Manufacturer number
Data type: EKPO-MFRNROptional: Yes
Call by Reference: No ( called with pass by value option)
MFRPN - Manufacturer Part Number
Data type: EKPO-MFRPNOptional: Yes
Call by Reference: No ( called with pass by value option)
EMNFR - External manufacturer code name or number
Data type: EKPO-EMNFROptional: Yes
Call by Reference: No ( called with pass by value option)
TXZ01 - Short Text
Data type: EKPO-TXZ01Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_MPN_CHANGE_POSSIBLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALID_RELATION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BAD_MATERIAL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MB_MPN_CHANGE_READ_DATA 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_mfrnr | TYPE EKPO-MFRNR, " | |||
| lv_o_ematn | TYPE EKPO-EMATN, " | |||
| lv_no_mpn_change_possible | TYPE EKPO, " | |||
| lv_no_check | TYPE EKPO, " | |||
| lv_matnr | TYPE EKPO-MATNR, " | |||
| lv_mfrpn | TYPE EKPO-MFRPN, " | |||
| lv_no_valid_relation | TYPE EKPO, " | |||
| lv_emnfr | TYPE EKPO-EMNFR, " | |||
| lv_n_ematn | TYPE EKPO-EMATN, " | |||
| lv_bad_material | TYPE EKPO, " | |||
| lv_txz01 | TYPE EKPO-TXZ01, " | |||
| lv_werks | TYPE EKPO-WERKS, " | |||
| lv_o_mprof | TYPE EKPO-MPROF, " | |||
| lv_mprof | TYPE EKPO-MPROF, " | |||
| lv_revlv | TYPE EKPO-REVLV, " | |||
| lv_check_mpn_change | TYPE EKPO, " 'X' | |||
| lv_i_spras | TYPE EKKO-SPRAS. " |
|   CALL FUNCTION 'MB_MPN_CHANGE_READ_DATA' "NOTRANSL: Ermitteln abhängiger Daten beim Ändern der HTN zum bestandsgef. |
| EXPORTING | ||
| O_EMATN | = lv_o_ematn | |
| NO_CHECK | = lv_no_check | |
| MATNR | = lv_matnr | |
| N_EMATN | = lv_n_ematn | |
| WERKS | = lv_werks | |
| O_MPROF | = lv_o_mprof | |
| MPROF | = lv_mprof | |
| REVLV | = lv_revlv | |
| CHECK_MPN_CHANGE | = lv_check_mpn_change | |
| I_SPRAS | = lv_i_spras | |
| CHANGING | ||
| MFRNR | = lv_mfrnr | |
| MFRPN | = lv_mfrpn | |
| EMNFR | = lv_emnfr | |
| TXZ01 | = lv_txz01 | |
| EXCEPTIONS | ||
| NO_MPN_CHANGE_POSSIBLE = 1 | ||
| NO_VALID_RELATION = 2 | ||
| BAD_MATERIAL = 3 | ||
| . " MB_MPN_CHANGE_READ_DATA | ||
ABAP code using 7.40 inline data declarations to call FM MB_MPN_CHANGE_READ_DATA
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 MFRNR FROM EKPO INTO @DATA(ld_mfrnr). | ||||
| "SELECT single EMATN FROM EKPO INTO @DATA(ld_o_ematn). | ||||
| "SELECT single MATNR FROM EKPO INTO @DATA(ld_matnr). | ||||
| "SELECT single MFRPN FROM EKPO INTO @DATA(ld_mfrpn). | ||||
| "SELECT single EMNFR FROM EKPO INTO @DATA(ld_emnfr). | ||||
| "SELECT single EMATN FROM EKPO INTO @DATA(ld_n_ematn). | ||||
| "SELECT single TXZ01 FROM EKPO INTO @DATA(ld_txz01). | ||||
| "SELECT single WERKS FROM EKPO INTO @DATA(ld_werks). | ||||
| "SELECT single MPROF FROM EKPO INTO @DATA(ld_o_mprof). | ||||
| "SELECT single MPROF FROM EKPO INTO @DATA(ld_mprof). | ||||
| "SELECT single REVLV FROM EKPO INTO @DATA(ld_revlv). | ||||
| DATA(ld_check_mpn_change) | = 'X'. | |||
| "SELECT single SPRAS FROM EKKO INTO @DATA(ld_i_spras). | ||||
Search for further information about these or an SAP related objects