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

Debugging BADI

Former Member
0 Likes
1,268

hi all,

how to debug a BADI in SRM system 4.0

thanks.

6 REPLIES 6
Read only

jyotheswar_p2
Active Participant
0 Likes
993

Put a break-point in the BADI implementation.where you have added the custom code.And run the transaction.

Thanks

Jyo

Read only

Former Member
0 Likes
993

hi,

write BREAK-POINT. in ur code and execute the transaction.

Regards,

Read only

Former Member
0 Likes
993

Hi

If it runs in foreground, then put the external break point and run your transcation

else.

in the custom code, put the endless loop like

data : lv_cnt type char01

do.

if lv_cnt is not initial.

exit.

endif.

enddo.

Activate and run your transcation , go in sm50 and search your process in running mode

select the row and program/session-program-debugging -> it would come directly in loop, put the value for lv_cnt then it would come out from here.

Enjoying the debugging

Regards

Shashi

Read only

Former Member
0 Likes
993

You have to activate external debugging first.

These are the few steps how to activate debugging

Go to SE19 > Provide implemented Badi name >click on display

then you will find the methods are available for your BADI

Click on suitable method means it will goes to your code.

in menu bar you can find menu item ( UTILITIES)

Select Utilities and select sub menu item settings then (USER SPECIFIC SETTINGS Pop-up box will display)

select tab ABAP EDITOR and select tab DEBUGGING

CLICK activ debugging and IP checkbox and select radio button new classic debugger.

Now go to your code and select your statement and put break point

A pop-up box will appear ,in that select HTTP Break point.

now external debugging activated.

Hope this Help ful

Read only

Former Member
0 Likes
993

Hi,

In the BADI Implementation , keep a break point or write a statement "BREAK your user Id". It will stop at that point.

Thanks,

Sowmya

Read only

Former Member
0 Likes
993

hello,

Put the External Break point in the BADI.

U will find a option in Debugging setting to give the user name also.

Utilities->Setting->Debugging option in the give u r User id.

Run the SRM application.