Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

modifing ERROR message

Former Member
0 Likes
454

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.

3 REPLIES 3
Read only

Former Member
0 Likes
434

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

Read only

Former Member
0 Likes
434

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 .

Read only

Former Member
0 Likes
434

just given status message 'wrong value entered'

and cleared that particular field to reenter.