‎2008 Nov 18 7:36 AM
Hi Friends,
In dialog Programming, i have screen fields. if the user enters some thing other than the required in the screen fields.
Program shows a error message showing that 'screen field entered wrong'. then the whole screen disables and user cannot enter anything.
i need a functionality so that if he entered a wrong in screen field . it should give error and here if he press back button . the previously entered screen field should be cleared and enabled so that he can reenter the correct value.
thanks and regards,
kat.
‎2008 Nov 18 8:11 AM
Hi,
You need to use the dialog command CHAIN to enable fields to be editable after issuing an error message.
eg.
chain.
field: vbak-vkorg,
vbak-vtweg,
vbak-spart.
module validate_salesarea.
endchain.
If you issue an error messge in the validate_salesarea module the fields will be represented for input.
Darren
‎2008 Nov 18 8:17 AM
Hi
use
pAI.
chain.
field input_field.
module validation.
endchain.
module validation.
if value is wrong.
message 'screen field entered wrong' type 'W'.
set cursor field input_field.
endif.
endmodule .
‎2008 Nov 18 8:47 AM
just given status message 'wrong value entered'
and cleared that particular field to reenter.