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

Problem While Creating Classification View in mm01

Former Member
0 Likes
563

Hi Friends,

I have useing 'BAPI_OBJCL_CREATE' for creating Classfication View

I am passing mat no, class , class type ..

How can i find characteristic values for particular Class..

Means How can i find values which r passed through

ALLOCVALUESNUM , ALLOCVALUESCHAR, ALLOCVALUESCURR tables

I have code like this

{ CALL FUNCTION 'BAPI_OBJCL_CREATE'

EXPORTING

OBJECTKEYNEW = P_MATNR

OBJECTTABLENEW = 'MARA'

CLASSNUMNEW = IT_MATMAS-CLASS

CLASSTYPENEW = IT_MATMAS-KLART

  • STATUS = '1'

  • KEYDATE = SY-DATUM

  • TABLES

  • ALLOCVALUESNUM =

  • ALLOCVALUESCHAR =

  • ALLOCVALUESCURR =

RETURN = IT_RETURN2.

}

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
472

Hi,

You need to use the BAPI 'BAPI_OBJCL_CREATE' to create characteristics for a material.

The characteristics are need to be passed in the table ALLOCVALUESCHAR.

If you do not know the values for a particular characteristics then you canmake use of FM

BAPI_CLASS_GET_CHARACTERISTICS and BAPI_CHARACT_GETDETAIL to get the values.

Regards,

Ankur Parab

2 REPLIES 2
Read only

Former Member
0 Likes
472

Hi,

If I am not wrong, you need not pass any values to ALLOCVALUESNUM , ALLOCVALUESCHAR and ALLOCVALUESCURR, these entries get updated after the execution of the function module.

Read only

Former Member
0 Likes
473

Hi,

You need to use the BAPI 'BAPI_OBJCL_CREATE' to create characteristics for a material.

The characteristics are need to be passed in the table ALLOCVALUESCHAR.

If you do not know the values for a particular characteristics then you canmake use of FM

BAPI_CLASS_GET_CHARACTERISTICS and BAPI_CHARACT_GETDETAIL to get the values.

Regards,

Ankur Parab