<?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 Different IDoc behavior between Dev and Quality in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204447#M1910461</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our team is currently experiencing an issue between our Development and Quality systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system is currently configured to send an output via EDI using output type NEU whenever a PO is changed. This sends out an outbound IDoc that causes the generation of another IDoc which is inbound, and upon processing the Inbound IDoc using BD87, should save the applied changes to the counterpart Intercompany Sales Order of the PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working correctly in Development. However, in Quality it is behaving differently; instead of saving the counterpart Intercompany SO, it creates a new SO every time an Inbound IDoc is processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comparing how the IDocs are generated in both systems, we noticed that Dev was using the partner profile ORDCHG, whereas Quality was using ORDERS. We assume that it is this difference that is causing the difference in behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, checking the partner number in WE20, the partner number has both ORDCHG and ORDERS configured with the same Partner Role, Message Function, etc. &lt;STRONG&gt;How does the system choose between ORDCHG and ORDERS and if ever, can this be configured?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope my explanation of the issue was clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much, of course points will be given to relevant answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2015 19:42:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-06-23T19:42:54Z</dc:date>
    <item>
      <title>Different IDoc behavior between Dev and Quality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204447#M1910461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our team is currently experiencing an issue between our Development and Quality systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system is currently configured to send an output via EDI using output type NEU whenever a PO is changed. This sends out an outbound IDoc that causes the generation of another IDoc which is inbound, and upon processing the Inbound IDoc using BD87, should save the applied changes to the counterpart Intercompany Sales Order of the PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working correctly in Development. However, in Quality it is behaving differently; instead of saving the counterpart Intercompany SO, it creates a new SO every time an Inbound IDoc is processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comparing how the IDocs are generated in both systems, we noticed that Dev was using the partner profile ORDCHG, whereas Quality was using ORDERS. We assume that it is this difference that is causing the difference in behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, checking the partner number in WE20, the partner number has both ORDCHG and ORDERS configured with the same Partner Role, Message Function, etc. &lt;STRONG&gt;How does the system choose between ORDCHG and ORDERS and if ever, can this be configured?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope my explanation of the issue was clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much, of course points will be given to relevant answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 19:42:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204447#M1910461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-23T19:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Different IDoc behavior between Dev and Quality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204448#M1910462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the subsequent Inbound IDOC is getting generated, you would need to make sure that it being created with the proper partner profile. As you have suspected, Inbound Process code ORDERS would create a new order and ORDCHG would change the order. As both message types use different process code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDERS should use ORDE, to FM IDOC_INPUT_ORDERS&lt;/P&gt;&lt;P&gt;ORDCHG should use ORDC, to FM IDOC_INPUT_ORDCHG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your partner profile for the inbound IDOC, you need to make sure the partner has inbound process code as ORDC. &lt;/P&gt;&lt;P&gt;Inbound Parameters &amp;gt; Inbound Options (Tab) &amp;gt; Process Code field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Inbound IDOC generation program should also consider this setting. Generally the control record is populated with the details from the table EDP21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 20:04:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204448#M1910462</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2015-06-23T20:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Different IDoc behavior between Dev and Quality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204449#M1910463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hello Naimesh,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thank you for this input. We also assumed that this would be the case, but please take a look at the following: &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/731650" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;As you can see, there are multiple instances of each Message Type configured for the Partner Profile, and the Inbound Parameters within each are correct as well (ORDCHG has ORDC, ORDERS has ORDE). Our question would be, then, is how does the system pick which of these to choose from?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;We have assumed that a user exit may be involved. Are their exits that determine this selection?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 21:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204449#M1910463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-23T21:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Different IDoc behavior between Dev and Quality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204450#M1910464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since message function is used, there must be a call to the FM&amp;nbsp; IDOC_INBOUND_WRITE_TO_DB in the outbound message processing user exit. When the control record is built, a specific message function would be sent to the IDOC. Based on the setting in Partner profile, system would select the inbound processing code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The NEU would call process code ME10 (create) / ME11 (change). User-exit EXIT_SAPLEINM_011 would be most suitable place to start. If not, check EXIT_SAPLEINM_002 or EXIT_SAPLEINM_001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 21:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204450#M1910464</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2015-06-23T21:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Different IDoc behavior between Dev and Quality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204451#M1910465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for this input. However, we were not able to find any helpful bits of code in the three exits mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is the control record being built in the code? Perhaps there may be an answer there. Our instance of the FM IDOC_INBOUND_WRITE_TO_DB is being called in standard only:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/732503" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 17:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204451#M1910465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-24T17:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Different IDoc behavior between Dev and Quality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204452#M1910466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like your IDOC is being generated from the Remote call - could be from inside ECC or could be from outside ECC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the debugger, you would be able to see what data is coming in the control record. Based on that you would have to trace back the origin of the IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 18:03:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204452#M1910466</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2015-06-24T18:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Different IDoc behavior between Dev and Quality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204453#M1910467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It turns out that the only reason it was happening was because manually applying the output NEU in the Messages panel of the PO automatically triggers ORDERS. Our SD functional figured and it out and all is well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for all your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 19:37:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-idoc-behavior-between-dev-and-quality/m-p/11204453#M1910467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-24T19:37:52Z</dc:date>
    </item>
  </channel>
</rss>

