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

ERROR MESSAGE

Former Member
0 Likes
986

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
964

Hi,

Enclose the field statement inbetween Chain -Endchain statements.

thanks,

sksingh

8 REPLIES 8
Read only

Former Member
0 Likes
965

Hi,

Enclose the field statement inbetween Chain -Endchain statements.

thanks,

sksingh

Read only

Former Member
0 Likes
964

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

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
964

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

Read only

0 Likes
964

Hai sree ram....

Thank u for ur time but Its a dialog screen.....

Read only

0 Likes
964

Hi Jhansikiran,

just add the addtion

<b>FIELD <field name></b> before the module call which throws an error message in ur flow logic.

Read only

0 Likes
964

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.

Read only

Former Member
0 Likes
964

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.

Read only

Former Member
0 Likes
964

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.