Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9190

TRY. SUBMIT PROG. CATCH.. fails to stop short dump

$
0
0

Hi

 

I tried the following code and was hoping to catch the runtime error so it does not create a short dump, but it still dumps..?

 

DATA OREF TYPE REF TO CX_ROOT.
   DATA TEXT TYPE STRING.
   TRY.
       SUBMIT RPTIME00 AND RETURN
                       EXPORTING LIST TO MEMORY
                       WITH PNPPERNR = I_PERNR
                       WITH SCHEMA   = P_SNAME
                       WITH BEGDATE  = LD_BEGDA
                       WITH ENDDATE  = I_ENDDA.
     CATCH CX_SY_ARITHMETIC_OVERFLOW INTO OREF.
       TEXT = OREF->GET_TEXT( ).
   ENDTRY.

 

This error happens with dev data and should never happen in production, but I'd like to prevent a dump if it does.

 

Any ideas?

 

Thanks,

Adrian


Viewing all articles
Browse latest Browse all 9190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>