<?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: Exit in Idoc processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-in-idoc-processing/m-p/5483337#M1255241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* after every segement append in idoc FM there is Customer exit and badi available to add your custom code
IDOC_INPUT_COND_A

please check the customer exit after whcih segment you want to add status..

then read the segment and ..
   LOOP AT it_edidd INTO idoc_data.
      CASE idoc_data-segnam.
        WHEN 'Z1PROCORD'.   "example add you segment here 
                  ---&amp;lt;&amp;lt;&amp;lt; add your Logic
    End case.
endloop.              
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2009 16:30:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-15T16:30:07Z</dc:date>
    <item>
      <title>Exit in Idoc processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-in-idoc-processing/m-p/5483336#M1255240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new on Idocs and maybe it's a silly question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to send a custom Idoc with the result status from an inbound standard Idoc COND_A04. It's like some kind of acknowledge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of a requirement, I'm unable to use custom process code, and I'm finding the best-standard solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched exits in standard process code IDOC_INPUT_COND_A but I've only found pre-input enhancements points (at this time I'm unable to get the final status) and a exit for custom segments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone faced a similar problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 16:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-in-idoc-processing/m-p/5483336#M1255240</guid>
      <dc:creator>former_member220911</dc:creator>
      <dc:date>2009-04-15T16:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Exit in Idoc processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-in-idoc-processing/m-p/5483337#M1255241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* after every segement append in idoc FM there is Customer exit and badi available to add your custom code
IDOC_INPUT_COND_A

please check the customer exit after whcih segment you want to add status..

then read the segment and ..
   LOOP AT it_edidd INTO idoc_data.
      CASE idoc_data-segnam.
        WHEN 'Z1PROCORD'.   "example add you segment here 
                  ---&amp;lt;&amp;lt;&amp;lt; add your Logic
    End case.
endloop.              
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 16:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-in-idoc-processing/m-p/5483337#M1255241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T16:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exit in Idoc processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-in-idoc-processing/m-p/5483338#M1255242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhudas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry, I don't understand you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've to process a standard Idoc COND_A04 in a standard way (using FM IDOC_INPUT_COND_A). When Idoc is completely processed, I need to retrieve the return message of the standard input (error code or succes) and send it to PI with a standard Idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to put my custom code, after the processing of the Idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I put your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 16:47:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-in-idoc-processing/m-p/5483338#M1255242</guid>
      <dc:creator>former_member220911</dc:creator>
      <dc:date>2009-04-15T16:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exit in Idoc processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-in-idoc-processing/m-p/5483339#M1255243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi David,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
after Processing the idoc you can read the status by using this function module..

*** Read idoc status

    CALL FUNCTION 'IDOC_STATUS_VALUES_READ'
         EXPORTING 
              idoc_number               = s_edidc-docnum 
         TABLES 
              idoc_status               = itab_edids 
         EXCEPTIONS 
              idoc_foreign_lock         = 1 
              idoc_not_found            = 2 
              idoc_status_records_empty = 3 
              idoc_status_invalid       = 4 
              db_error                  = 5 
              OTHERS                    = 6. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after reading the statusa and send it to PI with a standard Idoc...&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;Prabhudas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prabhu Das on Apr 15, 2009 10:28 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prabhu Das on Apr 15, 2009 10:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 16:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-in-idoc-processing/m-p/5483339#M1255243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T16:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exit in Idoc processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exit-in-idoc-processing/m-p/5483340#M1255244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry, I've not explained the question correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is &lt;EM&gt;where&lt;/EM&gt;, not &lt;EM&gt;how&lt;/EM&gt;. The Idoc must be send &lt;STRONG&gt;immediatly&lt;/STRONG&gt; after input processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this requirement can be only be achieved using events?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for my bad explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 17:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exit-in-idoc-processing/m-p/5483340#M1255244</guid>
      <dc:creator>former_member220911</dc:creator>
      <dc:date>2009-04-15T17:07:59Z</dc:date>
    </item>
  </channel>
</rss>

