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: 

BAPI_MATERIAL_SAVEDATA & classification

Former Member
0 Kudos
367

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

4 REPLIES 4

Former Member
0 Kudos
109

Classifications are usually handled separately.

Rob

Former Member
0 Kudos
109

thanks

0 Kudos
109

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.

0 Kudos
109

re-thanks