Application Development 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: 

CL_SALV_TABLE - re-use created object

Clemenss
Active Contributor
0 Kudos

Hi,

after creating a couple of CL_SALV_TABLE grids placed in the cells of a grid container, I would like to create a function in the grids to either display the content as a (larger) popup or a new dialog control of full screen size.

But after creating the CL_SALV_TABLE grid object with relation to a certain (splitter cell) control, I don't know how to re-use the object for another control or how to use it as popup,


Thank you for meaningful hints (after try hint works)

Regards Clemens

1 ACCEPTED SOLUTION

ŁukaszPęgiel
Contributor
0 Kudos

Hi Clemens,

I usually don't work with SALV but what I've noticed is that unless you're using grids directly in custom container, then it's not possible to reuse it in different screen, cause then you're reusing container. I was trying to achieve it in FALV but I failed.

As long as others doesn't have any experience here I can give you three propositions:

1) If you want to stick to SALV then you'd need to create a custom method to copy and object, means to create new one with same field catalog, sorting, filters, layout.....and then reuse it

2) Instead of splitter create screen with sub-screens, then you'll be able to reuse SALV but with a cost of possibility to manipulate the size

3) You can try FALV and use method create_by_copy, but here you would need to rewrite the part of creating your grids.

Cheers

Łukasz

1 REPLY 1

ŁukaszPęgiel
Contributor
0 Kudos

Hi Clemens,

I usually don't work with SALV but what I've noticed is that unless you're using grids directly in custom container, then it's not possible to reuse it in different screen, cause then you're reusing container. I was trying to achieve it in FALV but I failed.

As long as others doesn't have any experience here I can give you three propositions:

1) If you want to stick to SALV then you'd need to create a custom method to copy and object, means to create new one with same field catalog, sorting, filters, layout.....and then reuse it

2) Instead of splitter create screen with sub-screens, then you'll be able to reuse SALV but with a cost of possibility to manipulate the size

3) You can try FALV and use method create_by_copy, but here you would need to rewrite the part of creating your grids.

Cheers

Łukasz