cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion of MATID to MATNR

Former Member
0 Kudos

Hi Experts,

                    I am new to SAP, i am working on my SCM system and my requirement is to fetch product details and display the TDSRC status and the transportation lane details for the product. My question is how do i convert MATID into MATNR, is there any function module to help me? I think GUID_CONVERT doesn't help.

Thanks & Regards,

Raveendra.

Accepted Solutions (1)

Accepted Solutions (1)

former_member197994
Active Contributor
0 Kudos

Hi Raveendra,

Please check:

/SAPAPO/DM_MATERIAL_GET      Short Text           Read Materials Using MATIDs

/SAPAPO/DM_MATERIAL_GET_MATID      Short Text           Provides Material ID

Best regards,

Tiemin

manuel_gesta
Newcomer
0 Kudos

Hi Tiemin,

In some cases you must use another call function:

CONVERSION_EXIT_MDLPD_INPUT

Both directions, matnr -> matid; matid -> matnr.

Best Regards.

Manuel.

Answers (4)

Answers (4)

former_member187488
Active Contributor

Please use table /sapapo/matmap.

0 Kudos


Hi Raveendra,

Try to use this FM to convert the MATID into MATNR.

CALL FUNCTION '/SCMB/MDL_PRODUCT_READ'

       
EXPORTING

          iv_id  
= iv_matid

       
IMPORTING

          es_data
= ls_matid_extkey.

dev_shetty
Active Participant
0 Kudos

Hi Raveendra,

                           Did you check the APO table /sapao/matkey  which has mapping of MATNR to MATID. Here from product # you will find product ID and use the product ID to get other details from other tables.

Thanks

Dev

0 Kudos

/SAPAPO/DM_MATERIAL_GET: Function module extracts data like -  material information, material text, base unit of measure for particular material based on material id.

Explanation

IMPORTING

I_MATID_TAB-MATID    =          <Material ID>

EXPORTING

E_MATKEY_TAB           =          <Matkey information like material number, product type, product attributes etc.>

            E_MATTXT_TAB           =           <Material Text>

            E_MARM_TAB              =          <MARM table information like alternate unit of

measure, attributes of alternative UOM etc.>

There is a new book on Programming in SAP APO. You might want to check that out.

http://www.flipkart.com/programming-sap-apo-1st/p/itmdgt9hbdh6auzu?pid=9781259028441&ref=bc49ea80-1a...