Hi Ümit
Unfortunately, we don't have the code version you have, but an older one. So I have to guess a little.
Error R1 588 is linked to a INSERT DUPLICATE KEY error. This is probably linked to an internal table not being cleared at the end of execution ISU_M_PARTNER_CREATE_DARK (maybe, because it's done at a commit work).
For example on the code version we have, there was a performance problem with internal table GT_GLOBAL_LOCKS of function group BUPA_BUTX_DIALOG.
Try to identify the internal table causing the problem.
Is there a function, within the same function group, you can call in an EMIGALL event to clear the table?
If not, there's the option to clear the table with some custom code, in our example:
field-symbols: <table> type any table.
assign ('(SAPLBUPA_BUTX_DIALOG)GT_GLOBAL_LOCKS') to <table>.
if sy-subrc eq 0.
refresh: <table>.
endif.
SAP is almost certainly not supporting such code and therefore you have to thoroughly test such a solution.
Yep
Jürgen