‎2007 Apr 26 3:29 PM
Hai all...
I have a screen which generates error message on checking a user input in one of the fields,and once the message is thrown out the user will not be able to re-enter the data in that screen.so any body please tell me what should i do to enable the user to re-enter the data after the error message.
Will be rewarded if helpful.
Thanks & regards,
Jhansikiran
‎2007 Apr 26 3:32 PM
Hi,
Enclose the field statement inbetween Chain -Endchain statements.
thanks,
sksingh
‎2007 Apr 26 3:32 PM
Hi,
Enclose the field statement inbetween Chain -Endchain statements.
thanks,
sksingh
‎2007 Apr 26 3:33 PM
Hi,
User just need to click "enter" once again and he will be able to enter the data once again.
Otherwise you can give a Information message instead of error messsage. Which will solve your probelm.
Award points if it helps.
-Gaurang
‎2007 Apr 26 3:35 PM
Hi
If you are doing this in a normal report.
Make the validation in the
AT SELECTION-SCREEN ON FIELD.
after generating the error messgae.
loop at screen.
give screen-name = 'Fieldname'.
screen-active = 1..
endloop.
Regards,
Sreeram
‎2007 Apr 26 3:48 PM
Hai sree ram....
Thank u for ur time but Its a dialog screen.....
‎2007 Apr 26 3:52 PM
Hi Jhansikiran,
just add the addtion
<b>FIELD <field name></b> before the module call which throws an error message in ur flow logic.
‎2007 Apr 26 3:56 PM
Hi,
U can also clear the field just before displaying the error message.
Eg:
If mara-mtart <> 'ZFIN'.
clear mara-mtart.
message 'Invalid Mat type ' TYPE 'E'.
endif.
‎2007 Apr 26 3:44 PM
Use AT SELECTION-SCREEN ON FIELD and enable the inputs in the SCREEN internal table....
e.g.,
AT SELECTION-SCREEN ON FIELD.
write 'message' type 'E'.
loop at screen.
screen-name = 'fieldname'.
screen-active = 1.
endloop.
Regards,
Pavan P.
‎2007 Apr 26 3:47 PM
Checking Single Fields
If you send a warning or error message from a module <mod> that you called using a FIELD statement as follows:
FIELD <f> MODULE <mod>.
the corresponding input field on the current screen (and only this field) is made ready for input again, allowing the user to enter a new value. If the field is only checked once, the PAI processing continues directly after the FIELD statement, and the preceding modules are not called again.