‎2011 Oct 03 5:42 AM
Hello All,
I have a requirement to have 2 interactive ALVs on same screen. I have coded that using " cl_gui_easy_splitter_container".
The appearance works really fine the issue I am facing is I am not able to read 2nd alv contents/events. It works fine on the screen however in debug mode when I see I can capture addition or changes only for 1st ALV.
I think this has to do something with shifting focus between two alvs. Can you please provide your inputs on "How to handle focus change between 2 ALVs displayed on same screen and same container?"
Please take a note that user can navigate between these alvs number of times before clicks on save.
Please provide inputs specific to the issue, general information on alv split not need.
Thanks
‎2011 Oct 03 10:50 AM
the issue I am facing is I am not able to read 2nd alv contents/events.
By reading content what do you excatly mean. In which program block you are doing this. I guess this is a matter of correct event registrations for each instance separately and then correct handling in respective method.
If you share your code and share details maybe some more clues can come here.
Regards
Marcin
‎2011 Oct 03 6:12 AM
Hello,
Try with Set focus and get focus methods..
CALL METHOD cl_gui_control=>get_focus
IMPORTING control = control
EXCEPTIONS cntl_error = 1
cntl_system_error = 2.
CALL METHOD cl_gui_control=>set_focus
EXPORTING control = control
EXCEPTIONS cntl_error = 1
cntl_system_error = 2.
Regards,
Ravi.
‎2011 Oct 03 10:50 AM
the issue I am facing is I am not able to read 2nd alv contents/events.
By reading content what do you excatly mean. In which program block you are doing this. I guess this is a matter of correct event registrations for each instance separately and then correct handling in respective method.
If you share your code and share details maybe some more clues can come here.
Regards
Marcin
‎2011 Oct 03 8:49 PM
The events of both alvs were overriding data, i think it is possible to handle both alvs through same event handler class. I will have to check that.
I resolved it by separating event handling for both alvs.