Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to see the exception raised in function module...

Former Member
0 Likes
818

DEAR ABAPERS,

how can i see that exception, when iam excuting

Regards,

veera

DEAR ABAPERS,

how can i see that exception, when iam excuting

Regards,

veera

2 REPLIES 2
Read only

h_senden2
Active Contributor
0 Likes
724

The exceptions are raised and cause a sy-subrc of 1, 2 or any other number. So during debugging you have to check the sy-subrc from the call function.

regards,

Hans

please give reward points for useful answers

Read only

Former Member
0 Likes
724

hi Veera,

Based on SY-SUBRC value we can handle those exception in this way ..

  if sy-subrc = 1.                     
    raise file_write_error.            
  elseif sy-subrc = 2.                 
    raise gui_refuse_filetransfer.     
  elseif sy-subrc = 3.                 
    raise gui_refuse_filetransfer.

Regards,

Santosh