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

Regarding Error in Function Module in Update Task

Former Member
0 Likes
1,721

Hi All,

If a function module is called in Update Task and there is some error generated from it, it comes as an exit message unlike in a normal function module.

Is there any possible way to avoid such an exit message?

Thanks in advance.

Regards,

Garima

7 REPLIES 7
Read only

Former Member
0 Likes
993

hi garima

could you please elaborate your problem in detail

Anit Gautam

Read only

Former Member
0 Likes
993

Hi,

Lot of threads availble in the forum. go go thru,

or give somebit clerance.

Thanks

Read only

Former Member
0 Likes
993

Hi Garima,

only way to avoid the exit message is to avoid the cause of it. There must be something wrong with the update you are doing to the data base, maybe a duplicate key, an invalid value in a field.

Hope this helps,

Gert.

Read only

Former Member
0 Likes
993

Hi,

The problem is I am updating Z tables in a function and also calling a function in Update task to update a different set of tables.

Now, if for some reason there is an error in Update Function module, then my requirement is that rather than throwing an Exit message (which it is presently doing) the errors coming from the function should be captured so that the user knows what was wrong with the data he entered.

Is there any work around to the above requirement? Either all the tables should be updated or none of them should be updated.

Regards,

Garima Thapar.

Read only

0 Likes
993

Hi,

You may create an application log in case there is an error.Ref to FM's in Function Group 'SBAL'. For a change All FM's are well documented. You may have a look @ demo programs SBAL_DEMO_* for more clarity.

I hope this helps,

Regards

Raju Chitale

Read only

0 Likes
993

Hi Garima,

your checks are in the wrong spot. Modules called in update task should only do the update. Any checks you want to do on the data need to happen before this. This will also give the user a chance to correct their mistakes.

Hope this helps,

Gert.

Read only

Former Member
0 Likes
993

solution not found