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

Error handling in Update Task

Former Member
0 Likes
2,987

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

1 ACCEPTED SOLUTION
Read only

former_member210541
Active Participant
0 Likes
1,312

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.

2 REPLIES 2
Read only

former_member210541
Active Participant
0 Likes
1,313

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.

Read only

0 Likes
1,312

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