Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Help, need to get characteristics of configurable material

Former Member
0 Kudos

Is there a BAPI call or simple way to access?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Thanks for the quick response,

I want to list the Formula components which are configurable characteristics of this formula..everything that shows in MM03 MRP configurable material.

Message was edited by:

Paul Schaefer

5 REPLIES 5

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Are you trying to access the configuration of a material in a sales document, production order or planned order?

In all of these cases, you can use the internal object number CUOBJ field and pass to the funciton module CUD0_GET_VAL_FROM_INSTANCE to get all of the characterisitcs and there values for that specific configuration.

Regards,

Rich Heilman

Former Member
0 Kudos

Thanks for the quick response,

I want to list the Formula components which are configurable characteristics of this formula..everything that shows in MM03 MRP configurable material.

Message was edited by:

Paul Schaefer

0 Kudos

Ok, no problem, the CUOBJ field is in table MARC. Just get that value and pass to the function module and you will get the config for this material.


report zrich_0001.

data: ichar type table of comw with header line.
data: xmarc type marc.
data: xcabn type cabn.

parameters: p_matnr type marc-matnr,
            p_werks type marc-werks.

start-of-selection.

  select single * from marc into xmarc
              where matnr = p_matnr
                and werks = p_werks.


* Retrieve Characteristics.
  call function 'CUD0_GET_VAL_FROM_INSTANCE'
       exporting
            instance           = xmarc-cuobj
       tables
            attributes         = ichar
       exceptions
            instance_not_found = 1.

  loop at ichar.

    clear xcabn.
    select single * from cabn
             into xcabn
                 where atinn = ichar-atinn.
    write:/ xcabn-atnam, ichar-atwrt.

  endloop.

Regars,

RIch Heilman

0 Kudos

Thank you so much!

0 Kudos

Hi ,

  I have a requirement like below.

     I want to get Variant condition values of a Configurable Material, these values we can see in tcode CU50 but i want to find from where these values are getting displayed i mean i want to know where these values getting stored. below is the screen shot for your reference.

Please help me on this,

Note: I have tried to use CLAF_CLASSIFICATION_OF_OBJECTS, BAPI_OBJCL_GETDETAIL , but no luck. I checked CUOBJ in MARC but it is initial there.

Thanks

Nagesh