‎2008 May 05 1:54 PM
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
‎2008 May 05 3:14 PM
hi garima
could you please elaborate your problem in detail
Anit Gautam
‎2008 May 05 3:14 PM
Hi,
Lot of threads availble in the forum. go go thru,
or give somebit clerance.
Thanks
‎2008 May 05 3:15 PM
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.
‎2008 May 06 5:02 AM
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.
‎2008 May 06 5:36 AM
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
‎2008 May 06 8:22 AM
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.
‎2008 Jul 08 7:57 AM