Hello Experts,
We have a custom functionality for credit card refunds. For account update during refunds a new debit document is created and force cleared with the credit card payment posted earlier on customer account. Logic for posting the debit document and clearing it with an already existing payment is in the same RFC Function module. Once the document is posted code issues COMMIT work and then goes for clearing.
We are facing intermittent failures during this process. Clearing fails to happen on some accounts.
Can this be because we are trying to do two types of database update on same document( i.e., creation and then clearing)?
Kindly advice.
Thanks,
Josep