01-15-2008 6:00 AM
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
01-15-2008 10:09 AM
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
01-15-2008 10:13 AM
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...
01-17-2008 7:45 AM
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