<?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: How to make a field editable again after displaying error msg (validation) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643945#M286705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi alok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try putting in &amp;lt;b&amp;gt;Chain and Endchain&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2006 10:53:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-13T10:53:26Z</dc:date>
    <item>
      <title>How to make a field editable again after displaying error msg (validation)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643940#M286700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In dialog programming, I have written a validation on a text field that it should not be left blank by the user, but after displaying the message the field becomes gray (non-editable). How can I make it editable once again after displaying the error message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***INCLUDE MZFBPS1_SAVE_DATAF01 .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  save_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM save_data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************Check For Empty Fields Start&lt;/P&gt;&lt;P&gt;if ZFBPS_GATE_IN-truck_code is INITIAL&lt;/P&gt;&lt;P&gt;or ZFBPS_GATE_IN-truck_no is INITIAL&lt;/P&gt;&lt;P&gt;or ZFBPS_GATE_IN-transporter_code is INITIAL.&lt;/P&gt;&lt;P&gt;MESSAGE e020(zmatlist).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************Check For Empty Fields Start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643940#M286700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T10:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field editable again after displaying error msg (validation)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643941#M286701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to through error in the 'FIELD' module in this way field will be available for entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*write this in PAI flow logic and create the module in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD: ZFBPS_GATE_IN-truck_code &lt;/P&gt;&lt;P&gt;  MODULE process_truckcode ON REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*In screen program.&lt;/P&gt;&lt;P&gt;MODULE process_truckcode INPUT.&lt;/P&gt;&lt;P&gt;IF ZFBPS_GATE_IN-truck_code IS INITIAL.&lt;/P&gt;&lt;P&gt; MESSAGE e000(SU) with 'please enter value'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643941#M286701</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-11-13T10:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field editable again after displaying error msg (validation)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643942#M286702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can do it in chanin end chain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if there are 10 fields in the screen and for 5 fields whenever the user enters wrong values u like to give some error message. You can declare that fields in the chain enchain so that only those fields will be input enabled and all other fields will disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CHAIN.
FIELD chk_connobj.
FIELD chk_inst.
FIELD chk_devloc.
FIELD ehaud-haus.
FIELD eanl-anlage.
MODULE modify_screenfields.
ENDCHAIN.
 
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Module modify_screenfields INPUT
*&amp;amp;---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
 
MODULE modify_screenfields INPUT.
CLEAR okcode.
okcode = sy-ucomm.
CASE okcode.
WHEN 'ENTER' OR 'EXECUTE'.
 
IF chk_connobj IS INITIAL AND chk_inst EQ c_x AND
chk_devloc EQ c_x.      -----------&amp;gt; ur condition
IF ehaud-haus IS INITIAL.
SET CURSOR FIELD 'EHAUD-HAUS'.
MESSAGE e000(zo_spa) WITH text-017. " message obj
ELSE

loop at screen.
if screen-name = 'FIELD_NAME'.
field-name-input = 1. -----------&amp;gt; chnges to non-edit mod
modify screen.
endloop.
ENDIF.
ENDIF.
 
ENDMODULE. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped pls mark points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:43:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643942#M286702</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-13T10:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field editable again after displaying error msg (validation)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643943#M286703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ALok,&lt;/P&gt;&lt;P&gt;Try giving warning message to validate, message w000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:44:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643943#M286703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T10:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field editable again after displaying error msg (validation)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643944#M286704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the form is called in the PAI of the screen, the E msg automatically returns to the screen and the field is editable as before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For validation of three fields, better enclode the parameters within a block&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection screen begin of block truck.&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;  p_trkcod type ZFBPS_GATE_IN-truck_code,&lt;/P&gt;&lt;P&gt;  p_trknum type ZFBPS_GATE_IN-truck_no,&lt;/P&gt;&lt;P&gt;  p_tracod type ZFBPS_GATE_IN-transporter_code.&lt;/P&gt;&lt;P&gt;selection screen end of block truck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT selection-screen on  Block truck.&lt;/P&gt;&lt;P&gt;perform save_data. "Although this name is confusing and the contents must be adapted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If error message is issued, only this block's will be coloured red and open for input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:49:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643944#M286704</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-11-13T10:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field editable again after displaying error msg (validation)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643945#M286705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi alok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try putting in &amp;lt;b&amp;gt;Chain and Endchain&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643945#M286705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T10:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a field editable again after displaying error msg (validation)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643946#M286706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the flow logic of ur screen write the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field:ZFBPS_GATE_IN-truck_code ,&lt;/P&gt;&lt;P&gt;ZFBPS_GATE_IN-truck_no,&lt;/P&gt;&lt;P&gt;ZFBPS_GATE_IN-transporter_code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make your fields input-enabled even when u throw a error mess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 11:09:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-make-a-field-editable-again-after-displaying-error-msg-validation/m-p/1643946#M286706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T11:09:18Z</dc:date>
    </item>
  </channel>
</rss>

