Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Get variantclass from KMAT in report

Hello Community,

I want to program a "F4-valuelist-function" in my zreport where the user can find

all dependent characteristics from the variantclass (type 300) of the

KMAT. The KMAT is the select-option in my report. So the program

should find the right class and then use a bapi to list all characteristics,

so the user could choose the chosen characteristic for his request.

I can't find the association between KMAT (MARA) and CLASS in SAP.

Can anybody guide me?

Thanks

Markus Pawlinka

Former Member
Former Member replied

Hello Markus,

For a KMAT , you can get the link via the following tables and fields

Enter materials number as OBJEK in table INOB. From that you can get CUOBJ.


With that CUOBJ , please check table KSSK. Enter KSSK-OBJEK as INOB-CUOBJ.

You will get CLINT from table KSSK. Which is the class ID.You can the access the characteristics from table KSML.Please be carefull with overwritten characteristics.

As for the object values , you can simply use BAPI BAPI_OBJCL_GETDETAIL_KEY or BAPI_OBJCL_GETDETAIL.

Also please review note 1547034 - How are characteristic values updated in table AUSP?

It has detailed information on how the characteristics are saved,

Thanks

Amber

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question