Skip to Content

CL_SALV_TABLE - re-use created object

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 22, 2016 at 05:33 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.