‎2010 Mar 25 1:27 PM
Hello,
We're using an idoc function module to process multiple changes to Material Classification. We use the following BAPIs to delete, change and create class assignments:
BAPI_OBJCL_DELETE
BAPI_OBJCL_CHANGE
BAPI_OBJCL_CREATE
We only want to commit the data at the end of the process. However, this is now causing us a problem where we delete the classification of one material and then classify another material with the same class & characteristic values for a class with the setting "Check with error" for same classification. Error message C1 818 is raised ('Object "&" already classified with same characteristic values' ).
We feel that BAPI_OBJCL_CREATE should read the data from the buffer and find that the class assignment was already deleted for the first material in the same LUW.
Comments?
Kind Regards,
Markus
‎2014 May 07 9:37 AM
Hi Markus,
Did u able to resolve issue which u have mentioned here?
I am also facing same issue.
Thanks
‎2014 May 30 8:21 AM
Hello Markus, I do not have a direct answer to your question but we are using BAPI_OBJCL_CHANGE. The BAPI itself expects the final classification values in the parameter ALLOCVALUES*NEW. In the BAPI itself classification values not available in the input table will be deleted and values that are not yet existing will be created.
Is it possible for you to combine the 3 mentioned BAPI's and just call the *CHANGE* BAPI ?
Regards Jack
‎2014 Jun 03 7:44 AM
Hello and thanks for your interest!
As you can see from the date this was quite a few years ago and I have changed company several times since then.
If memory serves me correctly we did the "quick & dirty" solution of committing after the BAPI_OBJCL_DELETE and then performing the BAPI_OBJCL_CHANGE or BAPI_OBJCL_CREATE.
Not an elegant solution but it worked. Hope this helps. As always please check SAP notes to see if anything has changed in this area in the last 4 years!
Kind Regards,
Markus