<?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: Inbound IDoc w/message ORDERS - issues with error processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-w-message-orders-issues-with-error-processing/m-p/2007577#M409360</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2007 20:45:44 GMT</pubDate>
    <dc:creator>Jelena_Perfiljeva</dc:creator>
    <dc:date>2007-03-20T20:45:44Z</dc:date>
    <item>
      <title>Inbound IDoc w/message ORDERS - issues with error processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-w-message-orders-issues-with-error-processing/m-p/2007576#M409359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using inbound IDoc ORDERS05 with message type ORDERS to create the sales orders in SAP. In WE20 we have the following settings:&lt;/P&gt;&lt;P&gt;- partner type LS (= Sales Org VKORG)&lt;/P&gt;&lt;P&gt;- process code ORDE&lt;/P&gt;&lt;P&gt;- trigger by background program&lt;/P&gt;&lt;P&gt;- post-processing agent of type US (user) with a user ID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We create IDocs through an ABAP program and use RBDAPP01 to post the IDocs. When there is an application error in the IDoc posting we expect the designated user to receive a workflow item in the SAP Inbox, but for some reason this is not happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did some research and went through all the possible settings for workflow, task, etc. and everything seems to be set up correctly. When debugging RBDAPP01 I have noticed that it calls FM APPLICATION_IDOC_POST_IMMEDIAT, which, in turn, calls IDOC_START_INBOUND. If IDOC_START_INBOUND returns SY-SUBRC = 1 then the workflow item is sent correctly to the designated user, exactly as we want. But for some reason it returns 0 (I changed it to 1 in the debugger).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that IDOC_START_INBOUND reads TEDE2 records (TEVE2-EVCODE = ORDE) and sy-subrc = 1 is only possible when EDIVR2 is 1,2,3 or 4. In our case TEDE2-EDIVR2 = 6. It seems that TEDE2 is maintained in the transaction WE42. However, I tried to change the settings there but it affects the IDoc processing in whole (IDoc gets some odd status and doesn't get processed as before). I've also tried to use process code ORDE_BY_WORKFLOW in WE20 with the same "success".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do we need to do to get a workflow item for the errors that happen in the application layer when IDoc is posted? Is it even possible with this message type?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 18:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-w-message-orders-issues-with-error-processing/m-p/2007576#M409359</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2007-03-19T18:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound IDoc w/message ORDERS - issues with error processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-w-message-orders-issues-with-error-processing/m-p/2007577#M409360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 20:45:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-w-message-orders-issues-with-error-processing/m-p/2007577#M409360</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2007-03-20T20:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Inbound IDoc w/message ORDERS - issues with error processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-w-message-orders-issues-with-error-processing/m-p/2007578#M409361</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;Can you please share how do you overcome the problem, so that it can be helpful for others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 05:09:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inbound-idoc-w-message-orders-issues-with-error-processing/m-p/2007578#M409361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T05:09:24Z</dc:date>
    </item>
  </channel>
</rss>

