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

displaying std field in enable mode after throwing error msg

Former Member
0 Likes
433

Hi experts,

I have a requirement where i need to check the value enterred in standard field (final grade) of infotype 0022 and need to throw error message, when the user click save button in PA30.

But the problem is, if i throw Error message, that field becomes disable and the user have to go back and come back for entering the correct value. So, my requirement is taht the field should still be in enable mode even after getting the error message.

pls tell me how to achive the same?

2 REPLIES 2
Read only

Former Member
0 Likes
407

Hi Shanti,

You don't need to display a message of type ERROR as this will lock the screen and will prevent the user from providing further input. You can use the following thing

MESSAGE i001 DISPLAY LIKE 'E'.

This will serve your purpose by displaying the error but will not lock the screen field and thus will not prevent the user from further input.

Have a look at the following link for more details : [ MESSAGE KEYWORD|http://help.sap.com/abapdocu_70/en/ABAPMESSAGE_OPTIONS.htm]

Hope this will help.

Thanks,

Samantak.

Read only

Former Member
0 Likes
407

Dear Shanti,

After throwing error massege , use the LEAVE SCREEN statement.

Thank you.