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

how to debug function module in update task ?

Hi ,

i have following code :

CALL FUNCTION 'ZSD_t_UPDATE' IN UPDATE TASK
             TABLES
                              it_xvbkd = xvbkd.

Inside this function module i have some code to debug . How can i debug it ?

I put the breakpoint in it but its not working .

It is triggered on save of a tcode .

Thanks and Regards .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

11 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 17, 2010 at 02:23 PM

    Hi,

    It is not possible to debug in update task. If it is a zprogram, I suggest you call the function module without the update task, debug and see what is the problem, once it is resolved you call it again using update task.

    Thanks

    Mani

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 17, 2010 at 11:58 AM

    hiii

    Set a breakpoint just before the FM. When in debug mode select the

    'update debugging' flag in the settings section then continue with

    your debugging.

    while debugging use F5 key to debug line by line ..... it will take you to source of that function module

    Edited by: topppi on Mar 17, 2010 12:58 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 17, 2010 at 12:34 PM

    [debug function module in update task|http://www.sdn.sap.com/irj/scn/advancedsearch?query=debugfunctionmoduleinupdate+task#ABAP,%20General]

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 17, 2010 at 02:39 PM

    hi ujjwal_dk,

    you can debug it in update task..

    first you should set update debugging active. you can do that from debugger screen with debug settings. than you say commit system closes normal debugging and will open for update debugging.

    best regards.

    Edited by: ERHAN YAZICI on Mar 17, 2010 3:40 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 17, 2010 at 11:57 AM

    jsut search with this text debug function module in update task

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 17, 2010 at 12:01 PM

    Hi,

    put the break point on the function module,

    when the cursur come to function module press f5, the cursur will go inside the function module then u can debug the function module.

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 17, 2010 at 02:52 PM

    My home-grown method:

    Set your breakpoint in the FM.

    In your transaction, just before you press save, enter hobble mode in your command box with '/h'.

    press save.

    In your first debug screen, toggle settings>system debugging ON (NetWeaver Drop-down menu) or see previous notes for earlier WebAS versions.

    Select continue (F8).

    The program should then stop at your break-point in the FM.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 17, 2010 at 03:30 PM

    Please search before posting.

    Keshav

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 19, 2010 at 07:16 AM

    Thanks all for your reply .....

    I removed the update task as suggested....

    also changing settings for update task is also valuable....

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 20, 2019 at 10:24 AM

    hi guy,

    could you please click this link. After, you can debug it, easly.

    https://saptechnical.com/Tutorials/ABAP/Debug/Index.htm

    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.