<?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 with  ERROR  MESSAGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-error-message/m-p/4385471#M1043060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i need some help plz,&lt;/P&gt;&lt;P&gt;i'm working in a user exit for transaction va41, the goal is to right an error message if the user tries to create more than one OTP element in the same Order of sale. Here is my program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : BEGIN OF EOTP OCCURS 0,    
        OTP TYPE  vbap-PS_PSP_PNR,
        END OF EOTP.
DATA : BEGIN OF NOTP OCCURS 0,    
       OTP TYPE  vbap-PS_PSP_PNR,
       END OF NOTP.


LOOP AT xvbap. 
APPEND xvbap-PS_PSP_PNR TO EOTP.
APPEND xvbap-PS_PSP_PNR TO NOTP.

delete ADJACENT DUPLICATES FROM notp.


describe table eotp lines no_lines.
describe table notp lines n_lines.

if no_lines &amp;lt;&amp;gt; n_lines.

   MESSAGE W011(zmap)  DISPLAY LIKE 'W'.

endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is: when it writes the error message in the va41, it throws me out of the transaction.&lt;/P&gt;&lt;P&gt;How can i avoid that? i would like to be able to change the OTP without having to set again the order of sale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2008 13:10:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-28T13:10:31Z</dc:date>
    <item>
      <title>Problem with  ERROR  MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-error-message/m-p/4385471#M1043060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i need some help plz,&lt;/P&gt;&lt;P&gt;i'm working in a user exit for transaction va41, the goal is to right an error message if the user tries to create more than one OTP element in the same Order of sale. Here is my program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : BEGIN OF EOTP OCCURS 0,    
        OTP TYPE  vbap-PS_PSP_PNR,
        END OF EOTP.
DATA : BEGIN OF NOTP OCCURS 0,    
       OTP TYPE  vbap-PS_PSP_PNR,
       END OF NOTP.


LOOP AT xvbap. 
APPEND xvbap-PS_PSP_PNR TO EOTP.
APPEND xvbap-PS_PSP_PNR TO NOTP.

delete ADJACENT DUPLICATES FROM notp.


describe table eotp lines no_lines.
describe table notp lines n_lines.

if no_lines &amp;lt;&amp;gt; n_lines.

   MESSAGE W011(zmap)  DISPLAY LIKE 'W'.

endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is: when it writes the error message in the va41, it throws me out of the transaction.&lt;/P&gt;&lt;P&gt;How can i avoid that? i would like to be able to change the OTP without having to set again the order of sale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 13:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-error-message/m-p/4385471#M1043060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T13:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with  ERROR  MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-error-message/m-p/4385472#M1043061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with the syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE &lt;STRONG&gt;E&lt;/STRONG&gt; 011(zmap)  .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 13:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-error-message/m-p/4385472#M1043061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T13:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with  ERROR  MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-error-message/m-p/4385473#M1043062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use E in place of W&lt;/P&gt;&lt;P&gt;E for error&lt;/P&gt;&lt;P&gt;and W is used for warning &lt;/P&gt;&lt;P&gt;first u deside which type of message u want to display than use the letter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;D T K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 13:17:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-error-message/m-p/4385473#M1043062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T13:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with  ERROR  MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-error-message/m-p/4385474#M1043063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i did that, but it doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 13:58:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-error-message/m-p/4385474#M1043063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T13:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with  ERROR  MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-error-message/m-p/4385475#M1043064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the pb was the place of the progrm in the user exit &lt;/P&gt;&lt;P&gt;At first i wrote the program in FORM USEREXIT_SAVE_DOCUMENT.&lt;/P&gt;&lt;P&gt;Then i moved it to FORM USEREXIT_SAVE_DOCUMENT_PREPARE and now it's all right.&lt;/P&gt;&lt;P&gt;thanks all for seeing my pb,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2008 14:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-error-message/m-p/4385475#M1043064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-28T14:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with  ERROR  MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-error-message/m-p/4385476#M1043065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i also using the exit(USEREXIT_SAVE_DOCUMENT_PREPARE) to loop through the xlips table and do a checking upon user click the PGR button in VL02N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i want to throw a error message with message e001(zxxx). it does not throw to the standard error log screen we have in the vl01n/vl02n. (the one which prompt up when we don't key in location,pick qty, batch...etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it simply throw the error message at the bottom bar of the screen. And once i click any button in screen, it will throw another error message "Risk of posting several mat.documents for one delivery-&amp;gt;long text" and exit from the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise how to avoid this and get the standard error log screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 03:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-error-message/m-p/4385476#M1043065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-22T03:23:28Z</dc:date>
    </item>
  </channel>
</rss>

