<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to debug Idoc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246578#M1382952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just like what others have said, you use tcode BD87 to reprocess an idoc. And one way to debug idocs is to change the processing mode of idoc to not trigger immediately and put a break point in the FM of your idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Oct 2009 11:37:54 GMT</pubDate>
    <dc:creator>aris_hidalgo</dc:creator>
    <dc:date>2009-10-05T11:37:54Z</dc:date>
    <item>
      <title>How to debug Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246572#M1382946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to debug Idoc please tell me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way I know ,( Going to we19 and after that giving idoc number, &lt;/P&gt;&lt;P&gt;                                      selecting inbound function module and after that giving that FM name callin that one in degug and Fore ground)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I dont want this one way because it was creating new idoc , please  Giude me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Durga Prasad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Oct 2009 12:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246572#M1382946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-03T12:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246573#M1382947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Durga,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because IDOCS are usually processed in background processes, it's not too simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I remember we included a waiting loop somewhere in the coding that is processed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:
    lv_run          TYPE     f,
    lv_end          TYPE     f,
    lv_wait_seconds TYPE    INT4.

      lv_wait_seconds = 60.
      GET RUN TIME FIELD  lv_run.
      lv_end = lv_run + 1000000 * lv_wait_seconds.
      WHILE lv_run &amp;lt;  lv_wait_seconds and lv_wait_seconds  &amp;gt; 0.
        GET RUN TIME FIELD  lv_run.
      ENDWHILE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The start your normal IDOC processing and start transaction SM50 process overview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your IDOC processing will loop endlessly for 60 seconds. During this time, you can swith on debugging for the process (Menu Program -&amp;gt; Program -&amp;gt; Debugging). In the WHILE LOOP, clear  lv_wait_seconds so that processing is continued. Now you can debug as you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. This solution for debugging in background was posted  so often that I wonder why your search was not successful &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Oct 2009 16:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246573#M1382947</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-10-03T16:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246574#M1382948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens  Thansk  for your inputs,&lt;/P&gt;&lt;P&gt;This is one is nothing but debugging of back ground job , this one i know, this is nothing but debugging of new idoc which is coming into our system via back ground,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But My point is , I have one idoc   posted that one but it contains some errors then, then i will go to the we19 there i will give this no through debug i will rectify error, every time if i go to debug the original idoc it will create duplicate idoc related to that idoc , But i dont want those duplicate idocs . is there any another way to over come this one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 05:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246574#M1382948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-05T05:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246575#M1382949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. What about transaction BD87. Select the IDoc you want to reprocess, press /h and process IDoc.&lt;/P&gt;&lt;P&gt;2. Process IDoc via debugging from report RBDPROCESS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 07:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246575#M1382949</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-10-05T07:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246576#M1382950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can very well check in WE02 , if there is any error in a segment..Please see if your idoc is failing due to this. WE19 is the way where we can debug the idoc . we can delete the idoc if we want, please use tcode -&amp;gt;WE11..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 07:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246576#M1382950</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-10-05T07:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246577#M1382951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use BD87 to reprocess the IDOC this will not create a new IDOC,If you use WE19 it will create a new IDoc which will be a copy of the exisiting IDOC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 11:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246577#M1382951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-05T11:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246578#M1382952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just like what others have said, you use tcode BD87 to reprocess an idoc. And one way to debug idocs is to change the processing mode of idoc to not trigger immediately and put a break point in the FM of your idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 11:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246578#M1382952</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2009-10-05T11:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug Idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246579#M1382953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the answers are good and informative for me too because i wanted to post the same question.&lt;/P&gt;&lt;P&gt;One tip i found and i want to share with is that, once you are inside in debuggin mode you can go to menu breakpoint==&amp;gt;Breakpoint at==&amp;gt;Breakpoint at Statement and then press F7. It will help you find quickly the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Umer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 13:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-idoc/m-p/6246579#M1382953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-23T13:27:44Z</dc:date>
    </item>
  </channel>
</rss>

