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

BAPI_MATERIAL_MAINTAINDATA_RT and characteristics

We're encountering a problem when creating a material with characteristics using the retail-specific BAPI_MATERIAL_MAINTAINDATA_RT function.

The material is created and accessible using MM43. When viewing the material, there is a button 'Values' to view the characteristics. However the characteristics that were saved with the material are not shown here.

What I've been able to find, is that the characteristics are saved in table AUSP. And indeed, there are several records for my material in that table. However there seems to be a difference between characteristics that were created with the BAPI and chararacteristics that were edited using MM42.

Now for the technical stuff:

We're using the 'ALL_FIELDS' indicator in the header structure to indicate that all fields are relevant for update. As a result, we don't have to populate all the x-structures for individual fields.

The material number is used in table INOB to retrieve the CUOBJ number. With this CUOBJ number, I can find my BAPI characteristics in the AUSP table. In case of characteristics that were added with MM42, another step is added: with the CUOBJ number, the CLINT number is retrieve from the KSSK table. With this CLINT number, I find the MM42 characteristics in the AUSP table.

BAPI --> char. type = 'O' (object)

MM42 --> char. type = 'K' (class)

BAPI: objek --> (INOB) --> cuobj --> (AUSP) --> atinn/atwrt

MM42 objek --> (INOB) --> cuobj --> (KSSK) --> clint --> (AUSP) --> atinn/atwrt

Can anyone please explain to me why there is a difference? How can I create characteristics with the BAPI and still view them using MM43?

Thanks in advance!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 01, 2012 at 11:14 AM

    Have you tried completing the following and passing to the BAPI:

    * Fill header

    headdata-basic_view = 'X'.

    * Characteristic

    characteristicvalue-material = matnr.

    characteristicvalue-char_name = charname.

    characteristicvalue-char_value = atwrt.

    APPEND characteristicvalue TO characteristicvalue.

    characteristicvaluex-material = matnr.

    characteristicvaluex-char_name = charname.

    characteristicvaluex-char_value = 'X'.

    APPEND characteristicvaluex TO characteristicvaluex.

    That is all you should need.

    Che

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Che Eky

      The Color and Size characteristics are used to create variants, that works. The rest of the characteristics are just extra information on the material. Both types are displayed on the Values screen, but only the values of color and size are updated.

      We're going to indicate that one of the other characteristics should be used for variant creation also... and see what that does.

      Update:

      That seems to be the difference in the two display methods. The characteristics listed under the 'Values' button should be the ones that are relevant for variant creation. Even though you can show the labels, the values will never be populated. The remaining characteristics can be displayed where you want (using customizing). We're set those at the bottom of the Basic view, or even in their own view.

      Apparently that is the way SAP designed it and I don't think there's much we can do about it.

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.