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 message in BADI

Former Member
0 Likes
823

Hi all,

I am using a BADI which is called while doing MIGO. I have a method which is called in update task and in this method i am using a function module to create a TO. When the TO is not created i want to handle the error message. How to handle this.

Regards,

Sowmya.

4 REPLIES 4
Read only

Former Member
0 Likes
775

Hi,

Just put an error message (MESSAGE type E) as you know when the TO is not created.

The log will be stored in SM13 and all database actions will be cancelled (the material document will not be created).

Issa

Read only

former_member404244
Active Contributor
0 Likes
775

Hi,

can i know where did u stuck up??If possible paste ur code.

Regards,

Nagaraj

Read only

Former Member
0 Likes
775

Hi,

If the application fails to save the transaction, then it will cause the runtime error, and this will cancel any database updates, including your custom code in the BADI which called in update task. Unfortunately, you can NOT handle this kind of error inside the BADI, and you will have to rely on SM13 for the update termination reason.

Regards,

Lim...

Read only

0 Likes
775

Hi Ruslim,

I am getting the update termination error ir express document error but i wanted to kow if this can be bypassed and an error message displayed. Let me know if there is any way to achieve this.

Thank you.

Regards,

Sowmya.