‎2015 Sep 14 3:38 PM
Hi Gurus,
I have a specific requirement. I need to execute some BAPI for dismantling equipments only when the Order status is TECO.
The only thing which looks feasible is to call this BAPI in a custom function module in Update Task.
Now my requirement is that , whenever there is error in BAPI it should be captured for future reference.
Can we use Application Log or any other Concept to store Error as i cannot issue any Error Message in Updates Task.
Also can anyone give me pointers to debug Update Task function module.
Can someone please provide inputs if someone has implemented the same and how to do it.
Thanking You.
Best Regards,
Navin
‎2015 Sep 14 5:06 PM
1. two catch error in your FM you can check for the exceptions defined in the FM and try to catch it within a try endtry. and store it in log using FM bal_log_msg_add.
2. to debug an update task just put a /h and start normal debugging and then go to the menu option-
Settings->Change Debugger Profile / Settings and check update debugging.
Once this done, do a F8 and make sure you have free sessions, as update starts in a new window.
Update debugging is about calling FMs in a sequence, you need to find a VBMOD_TABLE, in which all the FMs to be called are stored in sequence.
‎2015 Sep 14 5:06 PM
1. two catch error in your FM you can check for the exceptions defined in the FM and try to catch it within a try endtry. and store it in log using FM bal_log_msg_add.
2. to debug an update task just put a /h and start normal debugging and then go to the menu option-
Settings->Change Debugger Profile / Settings and check update debugging.
Once this done, do a F8 and make sure you have free sessions, as update starts in a new window.
Update debugging is about calling FMs in a sequence, you need to find a VBMOD_TABLE, in which all the FMs to be called are stored in sequence.
‎2015 Sep 16 11:29 AM
Hi Tee Gee,
Thanks for guidance.
Is application log the only way to record messages in update task or Is there any other mechanism ?
Best Regards,
Navin