05-19-2006 11:39 AM
Hi I want to assign value to a material characteristic though abap program.
Is there any FM for that
05-19-2006 12:54 PM
Hi,
Try using FM BAPI_OBJCL_CHANGE
e.g. If you use it for material TEST2239 then a sample call to this FM is as below:
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
objectkey = 'TEST2239'
objecttable = 'MARA'
classnum = 'MATCLS'
classtype = '001'
STATUS = '1'
STANDARDCLASS =
CHANGENUMBER =
KEYDATE = SY-DATUM
NO_DEFAULT_VALUES = ' '
IMPORTING
CLASSIF_STATUS =
tables
allocvaluesnumnew =
allocvaluescharnew = i_newval
allocvaluescurrnew =
return =
.
In table i_newval fill characteristic name and value.
Hope this helps.
Regds,
Akshay