MATSERNR_CONVERSION SAP Method Converts manufacturer part no. (MPN) into material no.
Below is documentation, parameters and attributes of ABAP Method MATSERNR_CONVERSION within SAP class IF_EX_BADI_PHIN_DATA_PREPARE. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name IF_EX_BADI_PHIN_DATA_PREPARE into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method MATSERNR_CONVERSION can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method MATSERNR_CONVERSION
.| Name | Type | Data Type | Description | Default Value |
| IV_MATNR | Importing | TYPE MATNR | Manufacturer Part Number | |
| IV_PARTNER_MATNR | Importing | TYPE PHIN_D_PARTNER_MATNR | Material number used by the business partner | |
| IV_SENDER_ID | Importing | TYPE PHIN_D_SENDER_ID | Unique identification of handover sender | |
| IV_SERNR | Importing | TYPE GERNR | Manufacturer serial number | |
| EV_MATNR | Exporting | TYPE MATNR | Material Number | |
| EV_MATNR_EXT | Exporting | TYPE PHIN_D_PARTNER_MATNR | replaces EV_MATNR (EhP5)! | |
| EV_SERNR | Exporting | TYPE GERNR | Serial number |
Exceptions of Method MATSERNR_CONVERSION
MATNR
PHIN_D_PARTNER_MATNR
GERNR
Example ABAP coding
DATA: lo_class TYPE REF TO IF_EX_BADI_PHIN_DATA_PREPARE.
DATA: lv_EV_MATNR TYPE MATNR,
lv_EV_MATNR_EXT TYPE PHIN_D_PARTNER_MATNR,
lv_EV_SERNR TYPE GERNR,
lv_IV_MATNR TYPE MATNR,
lv_IV_PARTNER_MATNR TYPE PHIN_D_PARTNER_MATNR,
lv_IV_SENDER_ID TYPE PHIN_D_SENDER_ID,
lv_IV_SERNR TYPE GERNR,
lv_other TYPE c.
CALL METHOD lo_class=>MATSERNR_CONVERSION(
EXPORTING
IV_MATNR = lv_IV_MATNR
IV_PARTNER_MATNR = lv_IV_PARTNER_MATNR
IV_SENDER_ID = lv_IV_SENDER_ID
IV_SERNR = lv_IV_SERNR
IMPORTING
EV_MATNR = lv_EV_MATNR
EV_MATNR_EXT = lv_EV_MATNR_EXT
EV_SERNR = lv_EV_SERNR ).
Links to Related Class(s)
IF_EX_BA...Full list of available SAP object classes
Search for further information about these or an SAP related objects