2009 Jun 05 4:38 PM
hi all
I am trying to use this fm to register materials and I have a little problem about classifications. How can I include them in the fm call? is possible or do I have to use another fm to register classifications for material ?
thanks
Gabriele
2009 Jun 05 4:43 PM
2009 Jun 05 4:49 PM
2009 Jun 06 1:19 AM
Hi, Material classification is not possible using BAPI_MATERIAL_SAVEDATA.
Try using below.
call BAPI to update classification number.
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
objectkey = <Material No>
objecttable = <MARA>
classnum = <CLASS NUM>
classtype = <Class type..like 001/022/..>
status = '1'
TABLES
allocvaluesnumnew = lt_allocvaluesnumnew
allocvaluescharnew = lt_allocvaluescharnew
allocvaluescurrnew = lt_allocvaluescurrnew
return = lt_return.
It works.
2009 Jun 10 8:23 AM