<?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: field exit check not triggering in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-check-not-triggering/m-p/3980008#M950583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT i_dynfields where fieldname = 'ERFMG'&lt;/P&gt;&lt;P&gt;                                    and  stepl = num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;IF i_dynfields-fieldvalue = 0 OR&lt;/P&gt;&lt;P&gt;i_dynfields-fieldvalue = space.&lt;/P&gt;&lt;P&gt;MESSAGE e004(zmsg2) WITH 'Quantity cannot be zero or empty'.&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;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the above....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points...if the ans is helpful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rudra Prasanna Mohapatra on Jun 21, 2008 8:07 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jun 2008 06:07:09 GMT</pubDate>
    <dc:creator>former_member195383</dc:creator>
    <dc:date>2008-06-21T06:07:09Z</dc:date>
    <item>
      <title>field exit check not triggering</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-check-not-triggering/m-p/3980007#M950582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;     I want to put check on quantity field of goods movement screen of co11n transaction if material exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the fiedexit &amp;amp; below code to read values &amp;amp; put check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_dynfields TYPE TABLE OF dynpread WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        num TYPE i,&lt;/P&gt;&lt;P&gt;        v_erfmg TYPE mb_erfmg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO 11 TIMES.&lt;/P&gt;&lt;P&gt;    num = sy-index.&lt;/P&gt;&lt;P&gt;    i_dynfields-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;    i_dynfields-stepl     = num.&lt;/P&gt;&lt;P&gt;    APPEND i_dynfields.&lt;/P&gt;&lt;P&gt;    i_dynfields-fieldname = 'ERFMG'.&lt;/P&gt;&lt;P&gt;    i_dynfields-stepl     = num.&lt;/P&gt;&lt;P&gt;    APPEND i_dynfields.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      dyname                         = 'SAPLCOWB'&lt;/P&gt;&lt;P&gt;      dynumb                         = '0500'&lt;/P&gt;&lt;P&gt;   translate_to_upper             = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REQUEST                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PERFORM_CONVERSION_EXITS       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PERFORM_INPUT_CONVERSION       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DETERMINE_LOOP_INDEX           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpfields                     = i_dynfields&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   invalid_abapworkarea           = 1&lt;/P&gt;&lt;P&gt;   invalid_dynprofield            = 2&lt;/P&gt;&lt;P&gt;   invalid_dynproname             = 3&lt;/P&gt;&lt;P&gt;   invalid_dynpronummer           = 4&lt;/P&gt;&lt;P&gt;   invalid_request                = 5&lt;/P&gt;&lt;P&gt;   no_fielddescription            = 6&lt;/P&gt;&lt;P&gt;   invalid_parameter              = 7&lt;/P&gt;&lt;P&gt;   undefind_error                 = 8&lt;/P&gt;&lt;P&gt;   double_conversion              = 9&lt;/P&gt;&lt;P&gt;   stepl_not_found                = 10&lt;/P&gt;&lt;P&gt;   OTHERS                         = 11&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT i_dynfields.&lt;/P&gt;&lt;P&gt;    IF i_dynfields-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;      IF i_dynfields-fieldvalue IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;        READ TABLE i_dynfields WITH KEY fieldname = 'ERFMG'&lt;/P&gt;&lt;P&gt;                                        stepl = num.&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;          IF i_dynfields-fieldvalue = 0 OR&lt;/P&gt;&lt;P&gt;             i_dynfields-fieldvalue = space.&lt;/P&gt;&lt;P&gt;            MESSAGE e004(zmsg2) WITH 'Quantity cannot be zero or empty'.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this is not executing the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls tell me where it is wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 06:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-check-not-triggering/m-p/3980007#M950582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T06:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: field exit check not triggering</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-check-not-triggering/m-p/3980008#M950583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT i_dynfields where fieldname = 'ERFMG'&lt;/P&gt;&lt;P&gt;                                    and  stepl = num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;IF i_dynfields-fieldvalue = 0 OR&lt;/P&gt;&lt;P&gt;i_dynfields-fieldvalue = space.&lt;/P&gt;&lt;P&gt;MESSAGE e004(zmsg2) WITH 'Quantity cannot be zero or empty'.&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;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the above....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points...if the ans is helpful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rudra Prasanna Mohapatra on Jun 21, 2008 8:07 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 06:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-check-not-triggering/m-p/3980008#M950583</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2008-06-21T06:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: field exit check not triggering</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-check-not-triggering/m-p/3980009#M950584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is solved i need to pass entire screen field instead of 'matnr' ie. 'COWB_COMP-MATNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but now the code is displaying error when quantity is not equal to zero also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be type mismatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone tell?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 10:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-check-not-triggering/m-p/3980009#M950584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-21T10:44:32Z</dc:date>
    </item>
  </channel>
</rss>

