<?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: stop IDOC processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-idoc-processing/m-p/7021833#M1498133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                    I am adding 'exit' at the begining of the code which i have done in an enhancement option available at the begining of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;idoc_status-docnum = idoc_contrl-docnum.
      idoc_status-status = '68'.
      idoc_status-msgv1 = 'No need to process'.
      append idoc_status.
      exit.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jun 2010 09:44:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-14T09:44:50Z</dc:date>
    <item>
      <title>stop IDOC processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-idoc-processing/m-p/7021830#M1498130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;                            I am using 'INPUT_IDOC_MATMAS01' as my inbound function module. I want to add one condition at the starting of this function module, if this condition turns true then IDOC_STATUS-STATUS shoud be set to '68' and then IDOC should be generated and then control should exit the function module. I am not able to do so. Even when I use 'exit' keyword, the code is getting run somewhere and hence IDOC is generated with '68' and '53'(Success) as well. I dont want to do further processing once that condition gets true.&lt;/P&gt;&lt;P&gt;Please guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jun 2010 18:03:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-idoc-processing/m-p/7021830#M1498130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-12T18:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: stop IDOC processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-idoc-processing/m-p/7021831#M1498131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you add one EXIT statement at the beginning of INPUT_IDOC_MATMAS01, it means the IDoc won't be processed.&lt;/P&gt;&lt;P&gt;If you placed your EXIT in a loop, it exits the loop, but doesn't exit the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure this FM is really called. You may use an SQL trace (ST05) to identify the ABAP code which updates the EDIDC table (containing the status).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that 68 status is reserved to IDocs created by WE19 test tool for inbound file test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paste your code if you need further assistance (no more than 2500 characters, as usually, please)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jun 2010 11:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-idoc-processing/m-p/7021831#M1498131</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-06-13T11:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: stop IDOC processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-idoc-processing/m-p/7021832#M1498132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sandra,&lt;/P&gt;&lt;P&gt;                      below is the code used in  the enhancement portion of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF  ERROR_FLAG = 'C'.
      IDOC_STATUS-STATUS = '68'.       "ERROR!
      IDOC_STATUS-DOCNUM = IDOC_CONTRL-DOCNUM.
      IDOC_STATUS-MSGTY = 'E'.
      IDOC_STATUS-MSGV1 = 'NO PROCESSING'.
      APPEND IDOC_STATUS.
     EXIT
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jun 2010 07:48:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-idoc-processing/m-p/7021832#M1498132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-14T07:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: stop IDOC processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-idoc-processing/m-p/7021833#M1498133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                    I am adding 'exit' at the begining of the code which i have done in an enhancement option available at the begining of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;idoc_status-docnum = idoc_contrl-docnum.
      idoc_status-status = '68'.
      idoc_status-msgv1 = 'No need to process'.
      append idoc_status.
      exit.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jun 2010 09:44:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-idoc-processing/m-p/7021833#M1498133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-14T09:44:50Z</dc:date>
    </item>
  </channel>
</rss>

