I'm trying to programmatically determine the batch class name for a given material. I thought the table to use was KSSK. When I query that table with a material number and class type 023, I get an internal class number. From there I query KLAH with the internal class number expecting to see the class name that is showing on the classification view of the material master, but instead I see a different class name.
Does anyone know what I am doing wrong?
Thanks in advance for any help you can provide.
Were you ever able to find out which table stores a Materials batch class assignment?
I've been querying KSSK with which many articles seem to point to using OBJEK = MATNR (material #) and the only results I get are the materials 'Material Class' assignment. No entries whatsoever for KLART (Class Type) 023.
I'm not sure where I can find this, but the Batch Class assignment (023) entry clearly displays on the Material Masters Classification View (MM03-Classification).
The table that I believe that you are looking for is INOB.
Within INOB, specify 023 for field KLART and MARA for field OBTAB. The field OBJEK with contain your material number.
The field CUOBJ will contain a key that can link back to table KSSK to field OBJEK.
From there, table KSSK contains the link to KLAH to get your class name.
I hope this helps.