‎2009 Jan 08 7:48 AM
Hi Gurus,
How can I debug the codes in business object events or methods?
Thanks.
‎2009 Jan 08 7:55 AM
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
‎2009 Jan 08 7:51 AM
HI,
Write the statement BREAK-POINT in the method from where you want to start debug and execute the method or bussiness object.
‎2009 Jan 08 7:55 AM
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
‎2009 Jan 08 8:03 AM
I know that it can be debuging.
Your suggestions doesnt debug the event, just debug other funtions or programs.
Any more idea???
‎2009 Jan 08 8:28 AM
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
‎2009 Jan 08 8:03 AM
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
‎2009 Jan 15 3:49 PM
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.