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

Call ALV gid inside Method using class

Former Member
0 Likes
649

Hi all,

I have created one method in my ZClass, in that i need to write code for display a pop-up(ALV) that should contain the internal table records. Also if i double click a cell in that popup then a transaction(say ztest) should be called..

How to do this inside the method?

Thanks,

Ranjith C.

3 REPLIES 3
Read only

Former Member
0 Likes
613

catch the event at double click and perform your code.

Read only

kerem_kayacan
Active Participant
0 Likes
613

What is the exact problem here? Displaying ALV or displaying ALV in popup? Which approach are you using for alv (reuse, lvc, cl_gui_alv_grid, cl_salv_table)?

Read only

ravi_lanjewar
Contributor
0 Likes
613

Hi,

You can call screen in you class and assign the custum container to the screen, using cl_gui_alv_grid class assing created object to container and create fields catlog and internal table with data to display in alv. call the method set_table_for_first_display to display data.

You can also used the method get_selected_rows to read current selected line data can use call transaction.

For more details you can used the pakage slis there are may program are avaible to resolve your problem.