<?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 problem to get error message in IDOC_INPUT_ORDERS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-to-get-error-message-in-idoc-input-orders/m-p/2449204#M548823</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;I am trying to stop the idoc by some conditions like given below code in one of the user exit. I am able to append the error record in standard errtab internal table.&lt;/P&gt;&lt;P&gt;I could see the appended error record also. But it is not throwing any error message. IDOC is created successfully. Please check the given code and correct me where i went wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExitName: EXIT_SAPLVEDA_001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Check for existing Project Numbet and Version. If already exists in system throw the error in IDOC&lt;/P&gt;&lt;P&gt;    IF ZE1EDK02-QUALF EQ '001'.&lt;/P&gt;&lt;P&gt;      hxvbak = dxvbak.&lt;/P&gt;&lt;P&gt;      v_bstnk = ZE1EDK02-BELNR.&lt;/P&gt;&lt;P&gt;      select bstnk vsnmr_v into corresponding fields of table i_vbak from vbak&lt;/P&gt;&lt;P&gt;                                                        where bstnk = v_bstnk&lt;/P&gt;&lt;P&gt;                                                        and vsnmr_v = hxvbak-vsnmr_v.&lt;/P&gt;&lt;P&gt;      describe table i_vbak lines l_lines.&lt;/P&gt;&lt;P&gt;      if l_lines &amp;gt; 1.&lt;/P&gt;&lt;P&gt;        sy-msgno = '209'.&lt;/P&gt;&lt;P&gt;        sy-msgid = 'VG'.&lt;/P&gt;&lt;P&gt;        raise user_error.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      clear hxvbak.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2007 23:12:36 GMT</pubDate>
    <dc:creator>HariMaradana</dc:creator>
    <dc:date>2007-06-21T23:12:36Z</dc:date>
    <item>
      <title>problem to get error message in IDOC_INPUT_ORDERS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-to-get-error-message-in-idoc-input-orders/m-p/2449204#M548823</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;I am trying to stop the idoc by some conditions like given below code in one of the user exit. I am able to append the error record in standard errtab internal table.&lt;/P&gt;&lt;P&gt;I could see the appended error record also. But it is not throwing any error message. IDOC is created successfully. Please check the given code and correct me where i went wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExitName: EXIT_SAPLVEDA_001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Check for existing Project Numbet and Version. If already exists in system throw the error in IDOC&lt;/P&gt;&lt;P&gt;    IF ZE1EDK02-QUALF EQ '001'.&lt;/P&gt;&lt;P&gt;      hxvbak = dxvbak.&lt;/P&gt;&lt;P&gt;      v_bstnk = ZE1EDK02-BELNR.&lt;/P&gt;&lt;P&gt;      select bstnk vsnmr_v into corresponding fields of table i_vbak from vbak&lt;/P&gt;&lt;P&gt;                                                        where bstnk = v_bstnk&lt;/P&gt;&lt;P&gt;                                                        and vsnmr_v = hxvbak-vsnmr_v.&lt;/P&gt;&lt;P&gt;      describe table i_vbak lines l_lines.&lt;/P&gt;&lt;P&gt;      if l_lines &amp;gt; 1.&lt;/P&gt;&lt;P&gt;        sy-msgno = '209'.&lt;/P&gt;&lt;P&gt;        sy-msgid = 'VG'.&lt;/P&gt;&lt;P&gt;        raise user_error.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      clear hxvbak.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 23:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-to-get-error-message-in-idoc-input-orders/m-p/2449204#M548823</guid>
      <dc:creator>HariMaradana</dc:creator>
      <dc:date>2007-06-21T23:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem to get error message in IDOC_INPUT_ORDERS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-to-get-error-message-in-idoc-input-orders/m-p/2449205#M548824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think by using Raise you will be able to raise the error. Better write Meesage of type E or the best option is delete the entry from the IDOC for which you don't want IDOC to be generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 23:17:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-to-get-error-message-in-idoc-input-orders/m-p/2449205#M548824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T23:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: problem to get error message in IDOC_INPUT_ORDERS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-to-get-error-message-in-idoc-input-orders/m-p/2449206#M548825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Atish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply...Actually my logic is working. I haven't checked properly. we can throw the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Cris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 02:03:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-to-get-error-message-in-idoc-input-orders/m-p/2449206#M548825</guid>
      <dc:creator>HariMaradana</dc:creator>
      <dc:date>2007-06-22T02:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem to get error message in IDOC_INPUT_ORDERS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-to-get-error-message-in-idoc-input-orders/m-p/2449207#M548826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  cris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the same requirement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u help me out in this problem,i am very much new to ale/idoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if idoc_data-segnam = 'e1edk02'.&lt;/P&gt;&lt;P&gt;if e1edk02-qualf = '011'.&lt;/P&gt;&lt;P&gt;xvbak-xblnr = e1edk02-belnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waiting for your reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 04:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-to-get-error-message-in-idoc-input-orders/m-p/2449207#M548826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-23T04:33:02Z</dc:date>
    </item>
  </channel>
</rss>

