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

debugging user exit

Hi all,

could anybody of you tell me how can I debug a user exit?

Thanks much,

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Posted on Aug 02, 2006 at 03:01 PM

    Make sure that you have activated your project in cmod for the user exit.

    then you can place a break point in the user exit.(You can see a red button on the application toolbar )in the user exit include.

    Run the transaction in which the user exit is triggered from.

    It will stop at the braek point.

    Regards,

    ravi

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 04:38 AM

    Hi !

    It depends if it is a "Dialog" Userexit or a "Updatetask" Userexit.

    If it is "dialog" you could set an break-point or put a break-point in your code. It will stop then !

    If it is "updatetask" you could check out this:

    put this into your code:

    BREAK-POINT log_text.

    where log_text has to be defined as log_text(40) type c.

    put anything you want to see into log_text.

    Then execute your program.

    After that - go to the SM21. There should now be an entry like "BREAK-POINT"....reached...

    That indicates that it is a updatetask-userexit.

    You may debug it as any other updatetask-module (see online-help for that.

    If there is no entry in your SM21 it is an indication that your userexit was not called.

    Regards

    Rainer

    Some points would be fine if that helped a bit.

    Add comment
    10|10000 characters needed characters exceeded