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

Re: Determine memory allocation to the current work process during report execution.

$
0
0

Hi Saurabh,

 

The first one should be possible. Generally you can catch the exception in Try......Enddtry block and call the get_text() method to display the error text. This will prevent the program from dumping.

 

Sample snippet - >

 

Assuming TSV_TNEW_PAGE_ALLOC_FAILED is exception class's name

 

data :

         lv_ref               TYPE REF TO TSV_TNEW_PAGE_ALLOC_FAILED,

         lv_err_txt         TYPE        string.

 

      TRY.

*-- Your code which can cause exception         

        CATCH TSV_TNEW_PAGE_ALLOC_FAILED INTO lv_ref.

          lv_err_txt = lv_ref->get_text( ).

      ENDTRY.

      IF lv_err_txt IS NOT INITIAL.

        MESSAGE lv_err_txt TYPE 'E'.

      ENDIF.

 

 

Revert if i didn't understand you correctly.

 

BR.


Viewing all articles
Browse latest Browse all 9091

Trending Articles



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