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

MB_DOCUMENT_BADI

Former Member
0 Likes
1,447

I am using BADI MB_DOCUMENT_BADI.

There are two method in the BADI

MB_DOCUMENT_BEFORE_UPDATE

MB_DOCUMENT_UPDATE

The First method is not in update task and second one is in Update task. If i want to debug the second method how can i do that. Where I need to change the variable in the debuger to call that method in the forground.

Please help.

Aman

5 REPLIES 5
Read only

Former Member
0 Likes
1,007

If you want to debug the method in the update task, you need to into debugging and then in the menu, choose "Settings-->Update Debugging". That will take you to all the update modules.

I don't think you can do anything to make that method to be called in the foreground.

Srinivas

Read only

0 Likes
1,007

I tried, but still not able to debugg that method.

any other idea...Or I am doing osme thing wrong ?

Read only

0 Likes
1,007

I am assuming you have a breakpoint in your method. Then you run the transaction. Get into normal debugging by entering '/h' in the command window. Once you get into debugging, you activate the update debugging as mentioned previously.

After this you need to step through the transaction completely by pressing the "return" option instead of single step option or execute option. If return option is not available(as is normally the case when debugging the screen flow logic) then use "execute" option.

See if this works.

Srinivas

Read only

Former Member
0 Likes
1,007

You might double check to make sure that your implementation of the BADI is activated? It won't hit the badi unless it's activated

Read only

0 Likes
1,007

Its activated.. its alreadt kicking the first method.