Application Development and Automation 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: 
Read only

function module to find charateristic values

Former Member
0 Likes
1,692

hi all,

i need to find charateristic value and characteristic description for the given class type and batch number (CHARG) of a material.. is there any function module that gives these value because this value r not stored in the tables..

thanks in advance,

aswin.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,200

Hi Aswin,

Chec in the table AUSP.

KLART is the class type.

OBJEK should be passed with the batch number.

YOu can get the chracteristic value in ATWRT.

YOu can even use:

BAPI_CLASS_GET_CHARACTERISTICS

Regards,

Ravi

4 REPLIES 4
Read only

Former Member
0 Likes
1,200

Hi Aswin,

Chec in the table AUSP.

KLART is the class type.

OBJEK should be passed with the batch number.

YOu can get the chracteristic value in ATWRT.

Regards,

Ravi

Read only

Former Member
0 Likes
1,201

Hi Aswin,

Chec in the table AUSP.

KLART is the class type.

OBJEK should be passed with the batch number.

YOu can get the chracteristic value in ATWRT.

YOu can even use:

BAPI_CLASS_GET_CHARACTERISTICS

Regards,

Ravi

Read only

ferry_lianto
Active Contributor
0 Likes
1,200

Hi,

Please check this FM.

VC_I_GET_CONFIGURATION

CUCB_GET_CONFIGURATION


call function 'VC_I_GET_CONFIGURATION'
  exporting
    INSTANCE                    = vbap-cuobj
    LANGUAGE                    = SY-LANGU
  TABLES
    CONFIGURATION               = i_config
  EXCEPTIONS
    INSTANCE_NOT_FOUND          = 1
    INTERNAL_ERROR              = 2
    NO_CLASS_ALLOCATION         = 3
    INSTANCE_NOT_VALID          = 4
    OTHERS                      = 5.

OR

data: i_char type table of comw with header line.
 
* Retrieve Characteristics.
  call function 'CUD0_GET_VAL_FROM_INSTANCE'
       exporting
            instance           = vbap-cuobj
       tables
            attributes         = i_char
       exceptions
            instance_not_found = 1.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,200

Hi,

Use function module CLAF_CLASSIFICATION_OF_OBJECTS for your requirement. if you want to know how to use this FM then hit where-used-list on this FM and see what values are required to pass to this FM to get all the Characteristic Values.

thanks,

sksingh.