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: 

BAPI_OBJCL_CHANGE for MARA Characteristic value not replaced

tafkap95
Participant
0 Kudos
744

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.

6 REPLIES 6

prateek_dhawan18
Participant
0 Kudos
718

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.

0 Kudos
712

Thanks for your answer but this is a really old-school solution, I would like to avoid a workaround. 😉

0 Kudos
682

If possible , please share your code

raga1234
Explorer
0 Kudos
526

Please check whether "PP1" is the default value of the respective characteristic.

tafkap95
Participant
0 Kudos
507

I solved my problem by calling 'BAPI_TRANSACTION_COMMIT'.

0 Kudos
479

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.