<?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: Short Dump DYNPRO_MSG_IN_HELP in Conversion Exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-dynpro-msg-in-help-in-conversion-exit/m-p/8453185#M1649710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lars,&lt;/P&gt;&lt;P&gt;refering to OSS 84510 SAP does not allow error messages in this environment. However, to find out if you are in a F4- context you can use the kernel function 'DY_GET_DYNPRO_EVENT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; data: event(3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "check if we are in F4 environment&lt;/P&gt;&lt;P&gt;&amp;nbsp; call 'DY_GET_DYNPRO_EVENT' id 'EVENT' field event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if sy-subrc &amp;lt;&amp;gt; 0 or ( event &amp;lt;&amp;gt; 'PAI'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and event &amp;lt;&amp;gt; 'INP' )."PAI also POV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; " not F4 help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; message e000 raising input_not_valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp; else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "F4 help -&amp;gt; only S message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; message s000 display like 'E' raising input_not_valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, miro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2013 14:51:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-01-21T14:51:44Z</dc:date>
    <item>
      <title>Short Dump DYNPRO_MSG_IN_HELP in Conversion Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-dynpro-msg-in-help-in-conversion-exit/m-p/8453184#M1649709</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've written the following conversion exit: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION CONVERSION_EXIT_ZBZEI_INPUT.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(INPUT)
*"  EXPORTING
*"     VALUE(OUTPUT)
*"  EXCEPTIONS
*"      INPUT_NOT_VALID
*"----------------------------------------------------------------------
  DATA : CPI_OUT(4) type n, CPI_IN(5), cpi_in2(5), cpi_in3(5).
  DATA : CPI_YEAR(4), CPI_PERIOD(3).
  DATA : CPI_NUM2(2) TYPE N.
  DATA : CPI_NUM3(2) TYPE N,
         index(2)    type n,
         index2(2)   type n,
         merker(1).
  DATA : CPI_C8, CPI_C7, CPI_C6, CPI_C5.
  DATA: SONDERZ.                    "nimmt das Trennungszeichen auf
*-initializations-----------------------------------------------------*

  check not input is initial.

  CPI_IN2 = INPUT.
  CLEAR : cpi_in, cpi_in3, cpi_out, OUTPUT, index, index2, merker,
          cpi_num2, cpi_num3.

  do.
    if cpi_in2+index(1) co '0123456789' and merker ne 'X'.
      cpi_in+index2(1) = cpi_in2+index(1).
      add 1 to index2.
    endif.

    if cpi_in2+index(1) = ':'.
      merker = 'X'.
      clear index2.
    endif.

    if cpi_in2+index(1) co '0123456789' and merker = 'X'.
      cpi_in3+index2(1) = cpi_in2+index(1).
      add 1 to index2.
    endif.

    add 1 to index.
    if index = 5.
      exit.
    endif.
  enddo.

  if cpi_in3 is initial.
    cpi_out = cpi_in.
  else.
    cpi_num2     = cpi_in.
    cpi_num3     = cpi_in3.
    cpi_out(2)   = cpi_num2.
    cpi_out+2(2) = cpi_num3.
  endif.


  if cpi_out(2) &amp;gt; 23.
    message e000 raising input_not_valid.
  endif.

  if cpi_out+2(2) &amp;gt; 59.
    message e001 raising input_not_valid.
  endif.

  output   = cpi_out.
*  output+2(2) = cpi_in+3(2).

endfunction.
&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;The problem is when the user inputs an invalid value and presses directly after this F4 the conversion exit will call and I get the short dump DYNPRO_MSG_IN_HELP  when I trigger the error message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to know that the program is in value-request? Maybe a system field? Can I catch this error? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 15:19:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-dynpro-msg-in-help-in-conversion-exit/m-p/8453184#M1649709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-13T15:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Short Dump DYNPRO_MSG_IN_HELP in Conversion Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-dynpro-msg-in-help-in-conversion-exit/m-p/8453185#M1649710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lars,&lt;/P&gt;&lt;P&gt;refering to OSS 84510 SAP does not allow error messages in this environment. However, to find out if you are in a F4- context you can use the kernel function 'DY_GET_DYNPRO_EVENT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; data: event(3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "check if we are in F4 environment&lt;/P&gt;&lt;P&gt;&amp;nbsp; call 'DY_GET_DYNPRO_EVENT' id 'EVENT' field event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if sy-subrc &amp;lt;&amp;gt; 0 or ( event &amp;lt;&amp;gt; 'PAI'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and event &amp;lt;&amp;gt; 'INP' )."PAI also POV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; " not F4 help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; message e000 raising input_not_valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp; else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "F4 help -&amp;gt; only S message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; message s000 display like 'E' raising input_not_valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, miro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 14:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-dynpro-msg-in-help-in-conversion-exit/m-p/8453185#M1649710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-21T14:51:44Z</dc:date>
    </item>
  </channel>
</rss>

