<?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: DYNPRO_MSG_IN_HELP Error in Custom Code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059472#M1612575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the note it would get fixed if no message gets dispayed, but how do I make sure the sales order is not saved? Do I just add an EXIT command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2013 15:25:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-01-30T15:25:47Z</dc:date>
    <item>
      <title>DYNPRO_MSG_IN_HELP Error in Custom Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059468#M1612571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are getting an error in user exit MV45AFZZ, the dump indicates that the error is after some conditions and an error message if those conditions are not met:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ENDLOOP.

*--&amp;gt; CS 11/12/10

IF vbak-auart = 'PEFV'.
  IF xvbkd-zterm &amp;lt;&amp;gt; 'Z003' AND xvbkd-zterm &amp;lt;&amp;gt; 'Z004'.
    MESSAGE e398(00) WITH 'Condicion de Pago no permitida en PEFV'.
  ENDIF.
ENDIF.

DATA p_zterm LIKE knvv-zterm.

SELECT SINGLE zterm FROM knvv INTO p_zterm
WHERE kunnr = vbak-kunnr.

IF vbak-auart = 'PCON'.
  IF xvbkd-zterm &amp;lt;&amp;gt; 'Z002' AND xvbkd-zterm &amp;lt;&amp;gt; 'ZG01'.
    IF NOT ( p_zterm = 'Z001' AND xvbkd-zterm = 'Z001' ).
      MESSAGE e398(00) WITH 'Condiciones de Pago no permitidas'.
    ENDIF.
  ENDIF.
ENDIF.

*--&amp;gt; CS 18/07/11

* HML TS - 18/05/2011
*}   INSERT

&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;ENDFORM.
*eject&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I read the error message must be wrong, but I am not sure how to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 13:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059468#M1612571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-02T13:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: DYNPRO_MSG_IN_HELP Error in Custom Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059469#M1612572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF xvbkd-zterm  'Z003' AND xvbkd-zterm  'Z004'.  &lt;/P&gt;&lt;P&gt;. . . &lt;/P&gt;&lt;P&gt; IF xvbkd-zterm  'Z002' AND xvbkd-zterm  'ZG01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Single field cannot contain both values!....did you mean to use an OR?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, what does your dump say is wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: DaveL on Aug 2, 2011 4:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 14:40:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059469#M1612572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-02T14:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: DYNPRO_MSG_IN_HELP Error in Custom Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059470#M1612573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something happen in my copy-paste but the "not equal" signs did not paste.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dump says the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program attempted to issue a " " message during "Exit Command" processing.&lt;/P&gt;&lt;P&gt;This is an illegal operation.&lt;/P&gt;&lt;P&gt;The program was terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen name.............. "SAPMV45A"&lt;/P&gt;&lt;P&gt;Screen number............ 4001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 15:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059470#M1612573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-02T15:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: DYNPRO_MSG_IN_HELP Error in Custom Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059471#M1612574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the dump says that you tried to send a E message during exit processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exit processing means that the function code that was used has an "E" type (see current GUI status assigned, using the System menu -&amp;gt; Status information).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually, an exit command means that the processing is cancelled by the user, so the values entered on the screen are ignored (the exit processing does not pass the field values back to the program).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you should bypass your processing in that case, by testing the function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, see note 84510 - Rabax DYNPRO_MSG_IN_HELP: Causes, elimin.n and so on, and ABAP documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 17:01:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059471#M1612574</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-02T17:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: DYNPRO_MSG_IN_HELP Error in Custom Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059472#M1612575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the note it would get fixed if no message gets dispayed, but how do I make sure the sales order is not saved? Do I just add an EXIT command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 15:25:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059472#M1612575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-30T15:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: DYNPRO_MSG_IN_HELP Error in Custom Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059473#M1612576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In which form of MV45AFZZ did you or your &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;colleagues put this code &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;USEREXIT_SAVE_DOCUMENT_PREPARE would be a correct form to raise an error, but not &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;USEREXIT_SAVE_DOCUMENT. &lt;/SPAN&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt; (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm"&gt;User Exits In Sales Document Processing&lt;/A&gt;) You could also consider also &lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;USEREXIT_CHECK_VBAK in include &lt;/SPAN&gt;MV45AFZB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Raymond&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 15:40:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059473#M1612576</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-01-30T15:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: DYNPRO_MSG_IN_HELP Error in Custom Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059474#M1612577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We did it in USERXIT_SAVE_DOCUMENT_PREPARE, I will check include MV45AFZB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 16:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-msg-in-help-error-in-custom-code/m-p/8059474#M1612577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-30T16:04:06Z</dc:date>
    </item>
  </channel>
</rss>

