Skip to Content
author's profile photo Former Member
Former Member

ALV Grid- copy part of cell content

Hi experts,

I have a question regarding ALV Grid.In alv grid, when i select a cell,it selects the whole cell.Whereas in ALV List, user can select portion of a cell content for copying purpose. Is this function possible in ALV Grid? If yes, how to implement this function in ALV Grid?

Thanks,

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2012 at 05:24 AM

    I dont think you can do that in a Grid.

    You can only copy whole cell content in a grid. Using Ctrl + Y selects a cell.

    You can go to Change Layout->View->Preferred View and make it as Microsoft Excel and then select a sections from a cell.

    Thanks,

    Shambu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2012 at 05:04 AM

    Hi Sowmya!

    To copy the selected fields in ALV please use Ctrl + Y after making your selection on the field then it will Select only the vlaue U have selected.

    Regards,

    Srik.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2012 at 05:43 AM

    Hi Sowmya,

    Copy the standard program BCALV_DEMO_TOOLTIP to a ‘Z’ program and make the following modifications:

    data: ls_layout type lvc_s_layo,
    lt_fcat type lvc_t_fcat,
    ls_fcat type lvc_s_fcat.

    ls_layout-excp_fname = 'LIGHTS'.
    ls_layout-ctab_fname = 'TABCOL'.

    * Begin of Modification.

    ls_layout-SEL_MODE = 'D'.

    * End of Modification.

    Then you will be able to select the particular cell as requested.If this answers your question correctly please mark answered.



    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.