Skip to Content
0
Former Member
Jan 05, 2010 at 09:43 AM

Focus to a webdynpro alv grid column after report_element_t100_message

116 Views

Hi All,

I have an alv grid on my view. When I click a button, I'm making some checks for editable cells and if necessary giving a message to the user by using report_element_t100_message method. After the message, I'm setting focus to the alv grid cell . If I don't give a message, my set_focus code works fine, but I must give a message , so how can I achive this? Isn't it possible setting to a cell after a message?

Followings are some parts from my source code .

Thanks in advance,

MERAL

-

-


-

-


THESE CODES ARE IN MY VIEW -

-


-

-


*-- GIVE MESSAGE

CALL METHOD wd_assist->mesaj_ver

EXPORTING

in_api_controller = lo_api_controller

in_el_context = lo_el_context

in_msgty = 'E'

in_msgno = wd_assist->msg_boskalamaz

in_msgv1 = cmsg

in_msgv2 = 'Geçerlilik BaÅŸlama Tarihi'.

strFocusColumn = 'GECERLIBASTARIH'.

.........................

*-- SET FOCUS

lr_salv_wd_table = wd_this->wd_cpifc_alv_molekul_selected( ).

lr_salv_wd_table->set_focus(

index = itabix

column = strFocusColumn ).

-

-


-

-


THIS METHOD IS IN MY ASSISTANCE CLASS -

-


-

-


method MESAJ_VER.

data lo_message_manager type ref to if_wd_message_manager.

data message type SYMSG.

*-- Get message manager

CALL METHOD in_api_controller->GET_MESSAGE_MANAGER

RECEIVING

MESSAGE_MANAGER = lo_message_manager.

message-MSGTY = IN_MSGTY.

message-MSGID = 'Z_BYY_CLS_AYYA_MSG'.

message-MSGNO = IN_MSGNO.

message-MSGV1 = IN_MSGV1.

message-MSGV2 = IN_MSGV2.

message-MSGV3 = IN_MSGV3.

message-MSGV4 = IN_MSGV4.

  • report message

CALL METHOD lo_message_manager->report_element_t100_message

EXPORTING

msg = message

element = in_el_context

cancel_navigation = in_cancel_navigation.

endmethod.