Skip to Content
author's profile photo Former Member
Former Member

Get Material Type in SRM

Hi Gurus,

How to get the material type in SRM? If we enter the material in the product field in the shopping cart, based upon the material type some validation needs to be done in the shopping cart.

Please advise if anybody is having any clue.

Thanks & Regards,

Aswini

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Sep 14, 2009 at 03:46 AM

    Hi,

    How about implementing the DOC_CHECK_BADI ?

    Regards,

    Masa

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Now I got to know how to get the material type in SRM. Would like to share the information.

      Material along with the material type get replicated into SRM from R/3 system. In COMMPR01 transaction, we can search for the material by entering the number in the product id and then it will show the detail information. When the material is replicated into srm, it will be tagged to both the hierachies R3MATCLASS as well as R3PRODSTYPE. The category id corresponding to the hierachy R3PRODSTYPE will have the format MAT_XXXX where XXXX denotes the material type. e.g. MAT_ESRA where ESRA denotes the material type in R/3. The characters after MAT_ will vary.

      The below step is followed to get the material type in SRM:

      1. Get the product GUID of the material (product) used int he shopping cart from the BBP_PD transaction. Or the product GUID can be obtained from table COMM_PRODUCT.

      2. Get the Hierarchy GUID of R3PRODSTYPE from COMM_HIERACHY.

      3. Get the CATEGORY_ID from the table COMM_PRPRDCATR based upon product GUID and HIERARCHY GUID of R3PRODSTYPE.

      It will give the result in MAT_XXXX format. The remaining characters after MAT_ represents the material type.

      Hope this information will be useful.

      Regards,

      Aswini

      Edited by: Aswini Kumar Sahoo on Sep 18, 2009 5:29 PM

      Edited by: Aswini Kumar Sahoo on Sep 18, 2009 5:30 PM

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.