2024 Jul 17 2:08 PM
Hi,
I use the BAPI BAPI_OBJCL_CHANGE to update the value of my characteristic, it works very well if the value does not exist but if a value already exists the new value will be added to the old one while the characteristic is of type Single Value.
I don't see what I'm doing wrong.
Example :
- Z_XXX: current value in BDD = 'PP1'
I send a new value 'PP9', after calling the BAPI I have the following result:
- Z_XXX: values
- 'PP1'
- 'PP9'
I just want to have the value 'PP9'.
Thanks for your help.
2024 Jul 17 2:41 PM
One workaround is to delete the classification allocation with BAPI_OBJCL_DELETE and then use the BAPI_OBJCL_CREATE function to create a new allocation.
2024 Jul 17 2:48 PM
Thanks for your answer but this is a really old-school solution, I would like to avoid a workaround. 😉
2024 Jul 17 3:17 PM
2024 Jul 18 9:08 AM
Please check whether "PP1" is the default value of the respective characteristic.
2024 Jul 18 9:22 AM
2024 Jul 18 9:41 AM
You did not call BAPI_TRANSACTION_COMMIT. That was not expected. That was the reason , i asked you to share the code. Anyhow, the problem is solved, so it the objective of community.