Application Development 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: 

Business Object Debuging??

Former Member
0 Kudos

Hi Gurus,

How can I debug the codes in business object events or methods?

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ümit.

Actually an event cannot be debugged. But, when that action is performed that method can be debugged which is executed.

Secondly, If in your method you are using a standard or a custom BAPI/FM or any report then you need to place the Break-point there.

If you can describe your application what functionality do you want to debug?

Best regards,

Harsh Dave

6 REPLIES 6

Former Member
0 Kudos

HI,

Write the statement BREAK-POINT in the method from where you want to start debug and execute the method or bussiness object.

Former Member
0 Kudos

Hi Ümit.

Actually an event cannot be debugged. But, when that action is performed that method can be debugged which is executed.

Secondly, If in your method you are using a standard or a custom BAPI/FM or any report then you need to place the Break-point there.

If you can describe your application what functionality do you want to debug?

Best regards,

Harsh Dave

0 Kudos

I know that it can be debuging.

Your suggestions doesnt debug the event, just debug other funtions or programs.

Any more idea???

0 Kudos

Hi Ümit,

If it is regarding Workflow then or any kind of BAckground Process you can define an endless loop in your program then goto Transaction SM50 and do the debugging or you have to use code like insert into table and pass some values to check the process.

You can also try with External Debugging (a button next to Internal Debugging).

Hope this might have helped you.

Thanks,

Prashanth

Former Member
0 Kudos

hi

please use break point like we use

you can also test BO by executing directly .

it will go into the debbuger.


breakpoint.
GET_PROPERTY ZTOT_VALUE CHANGING CONTAINER.                                             
    SWC_SET_ELEMENT CONTAINER 'ZTOT_VALUE' TVAL.                                          
  END_PROPERTY.                                                                                
GET_PROPERTY ZNO_OF_PUR CHANGING CONTAINER.       

regards

Prashant

Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 4:10 PM

Former Member
0 Kudos

I just want to debug the codes in the method of a business object as a normal program or a function.

Is it possible?

If you never do that debuging please dont answer.

Thanks.