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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 17, 2014 at 02:25 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 16, 2014 at 10:32 AM

    Hi Marcus,

    please check these tables:

    KSSK - class assignment

    KSSK_INOB - INOB_OBJEK for the class

    KLAH - class header (CLINT = INOB_OBJEK from the previous table, KLART = class type, CLASS = class name)

    Best regards

    Tamas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2014 at 10:55 AM

    Hello Amber, hello Tamas,

    thanks a lot for your hints.

    I'll check your approaches and report my solution.

    Best regards

    Markus

    Add a comment
    10|10000 characters needed characters exceeded

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.