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: 

Classification view in Material Master

Former Member
0 Kudos

Can any one tell me , how to create a Classification view using program or function module.

I just wanted to create a Classification views in MM01 transaction . is there any function module there to create the same ?

if BAPI_OBJCL_CREATE is the FM , then pls tell me how the following input parameters related to the material . from which table i can have the following parameter values based on material number .

OBJECTKEY_IMP

OBJECTTABLE_IMP

CLASSTYPE_IMP

READ_VALUATIONS

Edited by: Prakash N on Jan 15, 2008 1:27 AM

3 REPLIES 3

Former Member
0 Kudos

Hi,

Yes BAPI_OBJCL_CREATE is the required FM.

OBJECTKEY_IMP = Your Matnr of MM01

OBJECTTABLE_IMP = 'MARA'

CLASSTYPE_IMP = Class type you want to create for the material under consideration

READ_VALUATIONS = There is no such parameter in the above mentioned FM

I hope this helps,

Regards

Raju Chitale

Former Member
0 Kudos

CALL FUNCTION 'BAPI_OBJCL_CREATE'

EXPORTING

objectkeynew = P_L_T_CLASS-objnum

objecttablenew = 'MARA'

classnumnew = P_L_T_CLASS-class

classtypenew = P_L_T_CLASS-ctype

STATUS = '1'

STANDARDCLASS =

CHANGENUMBER =

KEYDATE = SY-DATUM

TABLES

allocvaluesnum = l_it_num

allocvalueschar = l_it_mkml

allocvalueschar = l_t_class

allocvaluescurr = l_it_curr

return = l_t_ret2.

If useful reward...

0 Kudos

Dear All ,

Thanks for your reply , I have passed the following value ,

OBJECTKEYNEW - 000000000000000925

OBJECTTABLENEW - MARA

CLASSNUMNEW - HLLBATCHCLASS

CLASSTYPENEW - 023

STATUS - 1

STANDARDCLASS

CHANGENUMBER

KEYDATE - 18.01.2008

NO_DEFAULT_VALUES

also im passing the characteristics

Export table giving the following result. But when i see the MM02 again i could not see these entries... y ?

RETURN

Result:

T ID NUM MESSAGE

E CL 731 Assignment exists and is valid