<?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 Error Logic Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684448#M1576359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kris,&lt;/P&gt;&lt;P&gt;I have a break point at NAST_PROTOCOL_UPDATE  and this FM is triggered even before my exit is triggered where i have the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Feb 2011 18:26:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-15T18:26:36Z</dc:date>
    <item>
      <title>IDOC Error Logic Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684443#M1576354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends, For an outbound Delivery IDOC in the user Exit I need to check a condition where the IDOC is created and then if everything looks good in my codition the IDOC needs to be generated and in the delivery the status should change to Green from Yellow.    This piece works fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if the condition is not fulfilled the Status should remain Yellow Color and no IDOC should be generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is what I do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how my Outbound IDOC FM is called. withhing the function module if my condition is not fulfilled, I raise an exception and pass a 'sy-subrc = ,01, - data not relevent.&lt;/P&gt;&lt;P&gt;By doing so the IDOC is not created, how ever the status turns to green and a pop message with processed sucessfully is shown. I dont want the status to be green. It should still remain Yellow or turn RED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any IDEA.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL FUNCTION TEDE1-ROUTID
           EXPORTING
                CONTROL_RECORD_IN      = EDIDC
                OBJECT                 = NAST
           IMPORTING
                CONTROL_RECORD_OUT     = EDIDC
                OBJECT_TYPE            = HELP_OBJECT_TYPE
           TABLES
                INT_EDIDD              = INT_EDIDD
           EXCEPTIONS
                DATA_NOT_RELEVANT_FOR_SENDING = 01
                OTHERS                 = 04.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajeev_D on Feb 14, 2011 10:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 21:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684443#M1576354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-14T21:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error Logic Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684444#M1576355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you raise exception, are you passing error message? Something like this, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE EXXX RAISING DATA_NOT_RELEVANT_FOR_SENDING&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 21:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684444#M1576355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-14T21:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error Logic Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684445#M1576356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do as kris suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 05:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684445#M1576356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T05:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error Logic Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684446#M1576357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Kris I have done exactly the same as you did, but unoftunately the status at the delivery output turns green indication a succesful. however the IDOC is not created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 15:57:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684446#M1576357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T15:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error Logic Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684447#M1576358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put  a breakpoint in NAST_PROTOCOL_UPDATE and see how this FM is getting executed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 16:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684447#M1576358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T16:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error Logic Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684448#M1576359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kris,&lt;/P&gt;&lt;P&gt;I have a break point at NAST_PROTOCOL_UPDATE  and this FM is triggered even before my exit is triggered where i have the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 18:26:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684448#M1576359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T18:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error Logic Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684449#M1576360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not an issue with NAST_PROTOCOL_UPDATE or the message type though.  That function only logs messages; it does not set the status of the output processing.  Follow the EDI_PROCESSING code in RSNASTED and you'll see how the code flips the return code value to '0' if the value is '1'.  That basically means it processed successfuly but there was no need to send an IDOC.  You need to force a different exception which would be caught by 'OTHERS' and log a message if you want the status to go to red.  You can't really keep it at yellow without a hack.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 19:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684449#M1576360</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-02-15T19:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error Logic Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684450#M1576361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Brad for pointing it out... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajiv, Please check out the following threads; As Brad pointed out , you would probably need to create a custom Z Program  or go with the option of supressing your output via requirements (when condition is not satisfied)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="8596303"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1865068"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 19:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684450#M1576361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T19:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error Logic Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684451#M1576362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks BRAD...changing the exception to OTHERS fixes it all...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just Curios for my Understanding when is the IDOC generated?&lt;/P&gt;&lt;P&gt;if I want the IDOC to be generated with status Fail what do I need to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 16:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-logic-issue/m-p/7684451#M1576362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-16T16:20:28Z</dc:date>
    </item>
  </channel>
</rss>

