cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to set focus on input field after displaying any type of message...

Former Member
0 Kudos

Dear friends,

I managed to set focus in the input fields on the screen even a single input field or in a normal table or an ALV.

But noew i faced a problem that i have an input field on the screen and have an action at ONENTER event. If i enter an input and click enter the data is validated and a success or an error message is shown. After displaying the error/ success message i am unable to again set the focus in the same input field. Plz help me??

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI,

can you please tell me what have you done so far ,because your description is more on generic way.

If you use REPORT_ATTRIBUTE messages you would get the focus on the UI element concerning the error message.

see this thread [|] for request_focus

Former Member
0 Kudos

Hi,

Please check the type of message...if it is of 'RAISE_ERROR MESSAGE' or 'REPORTSUCCESS', its working fine.

CALL METHOD L_MESSAGE_MANAGER->RAISE_ERROR_MESSAGE

EXPORTING

MESSAGE_TEXT = 'error please check'

  • PARAMS =

  • MSG_USER_DATA =

.