09-21-2008 5:34 AM
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
09-21-2008 5:42 AM
Check the below BAPI for material classification
BAPI_OBJCL_GETDETAIL
BAPI_OBJCL_CHANGE
Also check the fun module:
CLAF_CLASSIFICATION_OF_OBJECTS.
09-21-2008 5:42 AM
Check the below BAPI for material classification
BAPI_OBJCL_GETDETAIL
BAPI_OBJCL_CHANGE
Also check the fun module:
CLAF_CLASSIFICATION_OF_OBJECTS.
09-21-2008 5:42 AM
09-21-2008 6:02 AM
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
09-23-2008 5:08 AM
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