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: 

Search of BAPI for classification view

Former Member
0 Kudos

Hi All,

I use bapi_material_savedata for creating a material.

1) I need to update datas for the classification view.

Do we have any BAPI or any other way to update.

2) For updating datas in foreign trade import / export views in that BAPI, I'm unable to see a provision that would allow me to update them separately.

Please let me know.

Regards,

Sundaressh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check the below BAPI for material classification

BAPI_OBJCL_GETDETAIL

BAPI_OBJCL_CHANGE

Also check the fun module:

CLAF_CLASSIFICATION_OF_OBJECTS.

4 REPLIES 4

Former Member
0 Kudos

Check the below BAPI for material classification

BAPI_OBJCL_GETDETAIL

BAPI_OBJCL_CHANGE

Also check the fun module:

CLAF_CLASSIFICATION_OF_OBJECTS.

Former Member
0 Kudos

Also chk this thread..

Former Member
0 Kudos

Hi Mahalakshmi,

I know about these .

CLAF_CLASSIFICATION_OF_OBJECTS - reads all classifications for an object

BAPI_OBJCL_GETDETAIL - returns detailed information on a classification

BAPI_OBJCL_CHANGE - changes an existing classification, or creates the classification if it does not yet exist.

This one can be checked but if there are some more inputs on this, it would be helpful.

Thanks for your reply.

Regards,

Sundaresh

Former Member
0 Kudos
  • create classification view for the new material

CALL FUNCTION 'BAPI_OBJCL_CREATE'

EXPORTING

objectkeynew = matnr

objecttablenew = 'MARA'

classnumnew = class name

classtypenew = '001' (mat class)

TABLES

allocvaluesnum = ialloc_num

allocvalueschar = ialloc_char

allocvaluescurr = ialloc_curr

return = ireturn.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

By default all the characteristics for the class appear and if you need to fill a particular value, fill ialloc_char