I have the following problem.
I am calling a SAP function module which is duing some arithmetic operations. Sometimes the function module dumps with COMPUTE_BCD_OVERFLOW.
The problem is that this error is not catched in the function module.
So my idea was to catch it in my program.
I tried the following code:
CATCH SYSTEM-EXCEPTIONS COMPUTE_BCD_OVERFLOW = 1.
CALL FUNCTION 'SAPTUNE_GET_SUMMARY_STATISTIC'
DESTINATION = 'NONE'
BUFFER_STATISTIC = LT_BUFF_STATS
NO_AUTHORIZATION = 01
OTHERS = 99.
IF SY-SUBRC <> 0.
But it doesn't work.
So is there a way how I can catch an exception which is thrown in a SAP function module ?