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

How do you debug an iDoc?

I have an OUTBOUND idoc created via WE19 and wish to debug it as it is created. I have put soft break points in all of the code but it never hits one of these points.

Also - how do you run WE19 in the foreground?

Thanks.

Scott

Edited by: Alvaro Tejada Galindo on Jan 21, 2008 5:54 PM

Edited by: Scott Strong on Jan 22, 2008 9:25 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 22, 2008 at 02:54 PM

    Hi Scott,

    You can debug the IDoc processing like this,

    1.Find the Inbound/Outbound Processing function (using t-code WE41/WE42 respectively)

    2. put a break-point at the 1st executable staement in the the function module

    3. In WE19, click Inbound Function or Outbound processing button and execute in 'foreground' mode and also dont forget to select check box 'call in debuggin mode'.

    Execution will stop at the break-point.

    Regards,

    SR

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      You cannot use WE19 to debug the outbound IDoc being created. It is already created. What you need to do is to repeat the output of the sap document in question and set it to 1 ( output via batch job ) or what ever the option is called.

      Then run program RSNAST00.

      Dont forget to put a break point in the function module that creates the IDoc though.

      Edited by: Martin Shinks on Jan 22, 2008 4:05 PM

  • author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 10:11 PM

    If it is inbound Idoc then go to WE19 and after entering the data click on inbound function module button and give the function module name and then select the check box Call in debugging mode and click on continue button. It will stop at the related function module in the debug mode.

    And select the radio button In foreground.

    Hope it helps.

    Thanks,

    Srinivas

    Edited by: Srinivas R on Jan 21, 2008 11:12 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 10:12 PM

    Hi Scott,

    In we19, once you click 'Inbound Function Module', you will get an check box for 'Call in Debugging Mode'.

    Enable the check box, it will let you debug the application.

    For collecting IDOCs in WE20,

    you have to enable the radio button 'Trigger by background program'.

    It can be viewed in this path,

    we20-> create inbound parameter ... In this screen, you can find the above option.

    shylesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 10:13 PM

    WE19 tcode is the Test tool for IDOC. You can put a break-point in the correspond inboound or outbound function module for that IDOC and debug it

    Also check this thread.

    how to debug IDoc and waht about WE19

    Regards,

    Maha

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 10:14 PM

    Hello Scott,

    You can debug IDOC processing in the following way in WE19:

    (1) Find the Inbound/Outbound Processing function (WE41/WE42)

    (2) Apply break-point at the debugging location inside the function

    (3) In WE19, click Inbound Function or Outbound processing button and execute in 'foreground' mode.

    You will find that the program flow stops at break-point.

    Thanks,

    Venu

    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.