Application Development 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: 

Exceptions in FM in update task

Former Member
0 Kudos

Hi,

Do you know if it's possible to raise excptions in a Function Module called in Update Task mode ?

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You cannot catch exceptions for the function modules that are called in update task.

Generally you will be raising an abort message inside the Update function module..

Ex..

IF sy-subrc <> 0.

MESSAGE a208(00) with 'Update failed' RAISING update_failed.

ENDIF.

In case if the function module is not called in update task...Then the above raise an exception which can be caught in the calling place..

Thanks

Naren

2 REPLIES 2

Former Member
0 Kudos

Hi,

You cannot catch exceptions for the function modules that are called in update task.

Generally you will be raising an abort message inside the Update function module..

Ex..

IF sy-subrc <> 0.

MESSAGE a208(00) with 'Update failed' RAISING update_failed.

ENDIF.

In case if the function module is not called in update task...Then the above raise an exception which can be caught in the calling place..

Thanks

Naren

Former Member
0 Kudos

I'm not entirely sure, but I think the user will get express mail informing him or her of the failure and there will either be a dump (ST22) or an error message in the system log (SM21).

SM13 and SM14 will also give information.

Rob

Edited by: Rob Burbank on Oct 3, 2008 2:11 PM