<?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: IDOC Has Wrong Status in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387142#M188393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if &lt;A __default_attr="63683" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Abdulbasit Gulsen" href="https://community.sap.com/" modifiedtitle="true" title="Abdulbasit Gulsen  "&gt;&lt;/A&gt;still remembers it after almost 10 years (either way not closing discussion seems very un-mentorly of him &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1322/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;), but I came across this error today and this is the first post found by Google, so just adding my solution for the future generations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this error while trying to debug in WE19 (Inbound function module) and it drove me insane. But thanks to this thread I took another look at control record and noticed the 'Test flag' there. Turns out this flag needs to be on when using 'inbound FM' process. If only SAP message could give us a hint... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. There is also the same flag in the partner profile. If you check this flag in the control record then it also needs to be checked in the profile. Otherwise you'll get 'profile not found' error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Aug 2015 03:18:39 GMT</pubDate>
    <dc:creator>Jelena_Perfiljeva</dc:creator>
    <dc:date>2015-08-19T03:18:39Z</dc:date>
    <item>
      <title>IDOC Has Wrong Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387133#M188384</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 are receiving an IDOC with message type Orders from another SAP system. &lt;/P&gt;&lt;P&gt;It the status records there is :&lt;/P&gt;&lt;P&gt;50 - Idoc Added&lt;/P&gt;&lt;P&gt;60 - Error During Syntax Check of IDOC &lt;/P&gt;&lt;P&gt;( I have disabled syntax check so it continues processing ) &lt;/P&gt;&lt;P&gt;61 - Processing despite syntax errors&lt;/P&gt;&lt;P&gt;64 - IDOC ready to be transferred to application&lt;/P&gt;&lt;P&gt;62 - IDOC passed to application&lt;/P&gt;&lt;P&gt;51 - Error : Application document not posted&lt;/P&gt;&lt;P&gt;( In detail there is a message &amp;lt;b&amp;gt;"IDOC has wrong status"&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I re-process IDOC it processes succesfully and creates an order. &lt;/P&gt;&lt;P&gt;I have debugged the code and seen that it gets wrong status error because of : &lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;FORM STATUS_CHECK USING    PI_IDOC_STATUS LIKE EDIDC-STATUS&lt;/P&gt;&lt;P&gt;                           PI_DIRECT_CALL LIKE BDWF_PARAM-DIRECTCALL&lt;/P&gt;&lt;P&gt;                  CHANGING PE_STATUS_OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF  (   PI_DIRECT_CALL =  C_TRUE&lt;/P&gt;&lt;P&gt;      AND PI_IDOC_STATUS &amp;lt;&amp;gt; C_IDOC_STATUS_READY_POST&lt;/P&gt;&lt;P&gt;      AND PI_IDOC_STATUS &amp;lt;&amp;gt; C_IDOC_STATUS_POSTPONED&lt;/P&gt;&lt;P&gt;      AND PI_IDOC_STATUS &amp;lt;&amp;gt; C_IDOC_STATUS_ERR_IDOC_TO_APPL )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    OR (   PI_DIRECT_CALL =  C_FALSE&lt;/P&gt;&lt;P&gt;       AND PI_IDOC_STATUS &amp;lt;&amp;gt; C_IDOC_STATUS_APPL_IN&lt;/P&gt;&lt;P&gt;       AND PI_IDOC_STATUS &amp;lt;&amp;gt; C_IDOC_STATUS_POSTPONED&lt;/P&gt;&lt;P&gt;       AND PI_IDOC_STATUS &amp;lt;&amp;gt; C_IDOC_STATUS_ERROR&lt;/P&gt;&lt;P&gt;       AND PI_IDOC_STATUS &amp;lt;&amp;gt; C_IDOC_STATUS_EDITED ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PE_STATUS_OK = C_FALSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PE_STATUS_OK = C_TRUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get rid of this error ? I have tried both processing from BD87 or processing with scheduled job. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 20:05:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387133#M188384</guid>
      <dc:creator>abdulbasit</dc:creator>
      <dc:date>2006-07-20T20:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Has Wrong Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387134#M188385</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;Syntax Check of IDOC fails due to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.IDOC comes with wrong structure means mismatch in parent-child relationship.&lt;/P&gt;&lt;P&gt;2. if any segment min and max values are maintained as 1 and 100 , in actual IDOC for this segment if we get segments more than 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the failure occured due to above cases ,open idoc in WE19 and remove extra segment or correct the structure (copy/paste segments) and reprocess the idoc. it will create new IDOC , but old idoc will be there in the system with errors only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you explain what you are looking for ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Appana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: L Appana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 20:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387134#M188385</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-20T20:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Has Wrong Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387135#M188386</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;Syntax error doesn't make problem since I have disabled the check syntax checkbox in the WE20.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 20:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387135#M188386</guid>
      <dc:creator>abdulbasit</dc:creator>
      <dc:date>2006-07-20T20:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Has Wrong Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387136#M188387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdulbasit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the IDoc Control Record for EDIDC-DIRECT. &lt;/P&gt;&lt;P&gt;It seems missing the value for direction for IDoc transmission. &lt;/P&gt;&lt;P&gt;It should be populated with value '1' (Inbound). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 20:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387136#M188387</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-07-20T20:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Has Wrong Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387137#M188388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ferry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIDC-DIRECT is 2 in the Control Record but in F4 it says 2 is inboud. &lt;/P&gt;&lt;P&gt;Is it 1 - inboud in your system ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 21:12:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387137#M188388</guid>
      <dc:creator>abdulbasit</dc:creator>
      <dc:date>2006-07-20T21:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Has Wrong Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387138#M188389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check for any NOTES available for this program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So If you re-process again does it create order??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 21:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387138#M188389</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-07-20T21:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Has Wrong Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387139#M188390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdulbasit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry ... typo error.&lt;/P&gt;&lt;P&gt;It should be '2' (inbound).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it solve the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 23:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387139#M188390</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-07-20T23:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Has Wrong Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387140#M188391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdulbasit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry ... typo error.&lt;/P&gt;&lt;P&gt;It should be '2' (inbound).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it solve the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 23:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387140#M188391</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-07-20T23:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Has Wrong Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387141#M188392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you resolved this issue. I am also facing same issue. Please guide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 11:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387141#M188392</guid>
      <dc:creator>pravesh_jain3</dc:creator>
      <dc:date>2010-06-11T11:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Has Wrong Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387142#M188393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if &lt;A __default_attr="63683" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Abdulbasit Gulsen" href="https://community.sap.com/" modifiedtitle="true" title="Abdulbasit Gulsen  "&gt;&lt;/A&gt;still remembers it after almost 10 years (either way not closing discussion seems very un-mentorly of him &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1322/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;), but I came across this error today and this is the first post found by Google, so just adding my solution for the future generations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this error while trying to debug in WE19 (Inbound function module) and it drove me insane. But thanks to this thread I took another look at control record and noticed the 'Test flag' there. Turns out this flag needs to be on when using 'inbound FM' process. If only SAP message could give us a hint... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. There is also the same flag in the partner profile. If you check this flag in the control record then it also needs to be checked in the profile. Otherwise you'll get 'profile not found' error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 03:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387142#M188393</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2015-08-19T03:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Has Wrong Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387143#M188394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, Jelena, thanks for the answer &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1322/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You made me think to check my old open threads. Who knows, someone might need the answer even after 10 years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've rewarded your points &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1322/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 22:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387143#M188394</guid>
      <dc:creator>abdulbasit</dc:creator>
      <dc:date>2015-08-19T22:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Has Wrong Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387144#M188395</link>
      <description>&lt;P&gt;Actually I find our project using the wrong message type deal with inbound idoc message,If you use DELFOR message type to deal DELINS message，you will also get 51 - Error : Application document not posted. when I changed the message type in WE20,status get green light.&lt;/P&gt;&lt;P&gt; Jelena Perfiljeva 's Best Answer is also a reason about this error,but not the only reason.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2037918-20220419201342.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 12:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-has-wrong-status/m-p/1387144#M188395</guid>
      <dc:creator>former_member600528</dc:creator>
      <dc:date>2022-04-19T12:16:25Z</dc:date>
    </item>
  </channel>
</rss>

