Skip to Content
author's profile photo Former Member
Former Member

Business Object Debuging??

Hi Gurus,

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

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2009 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2009 at 07: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2009 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 15, 2009 at 03: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.