Hello Hakan,
thank you for your reply.
I created a small Y-program where the error can easily be replicated (code can be found in my first post). Within this program I can get rid of the error with no problem at all. It is a matter of when the COMMIT is executed.
I corrected all the places where we are using marketing permissions in our Y-coding. The only place left is this ORDER_SAVE BAdI call that I am not able to fix.
Using CRM_BUPA_MKT_PERM_ADD in ORDER_SAVE BAdI is however a completely different story. because the commit is automatically executed after the BAdI and you cannot influence it, or can you?
I attached the dump as a .txt file.
Best regards
Sascha Röhm