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

Issue with ALV split

anilekar
Participant
0 Likes
549

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

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
519

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

3 REPLIES 3
Read only

Former Member
0 Likes
519

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.

Read only

MarcinPciak
Active Contributor
0 Likes
520

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

Read only

anilekar
Participant
0 Likes
519

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.