Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Set focus for input field in webdynpro abap

Hi Friends

I am validating an input field(mandataory), when i get error message, it should set focus for this input field, can any one pls let me know how to do this

Thanks

Vijaya

Former Member
Former Member replied

Hi Vijaya,

Just write the below code

DATA ls_msg                      TYPE symsg.

ls_msg1-msgid = '<message_class_name>'.
ls_msg1-msgty = 'E'.
ls_msg1-msgno = <message no>.

CALL METHOD lo_message_manager->report_attribute_t100_message
          EXPORTING
            msg                   = ls_msg
            element            =  lo_el_header
            attribute_name = 'PD_ACCNO'

Thanks

KH

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question