Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Where I should put the CATCH sentence in a TRY...ENDTRY

$
0
0

Hi,

 

I need to catch some exceptions which appear when I do some file sentences like:

 

OPEN DATASET, CLOSE DATASET, TRANSFER, READ, DELETE

 

 

But my doubt is that: Should I put the sentence CATCH inmediatly after one of these sentences? or I can put this sentence in a random place of the TRY...ENDTRY block.

 

 

I ask this because I have a problem with some exception: DATASET_CAN_CLOSE and I put the CATCH at the end of the block TRY...ENDTRY, but the dump still appears.

 

Thanks for your time.

 

 

Best regards,

 

ADRIAN MEJIDO


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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