Application Development and Automation 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: 
Read only

BAPI_MATERIAL_SAVEDATA & classification

Former Member
0 Likes
1,006

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
Read only

Former Member
0 Likes
748

Classifications are usually handled separately.

Rob

Read only

Former Member
0 Likes
748

thanks

Read only

0 Likes
748

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.

Read only

0 Likes
748

re-thanks