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

CL_GUI_ALV_GRID: insert, duplicate after the current row

Hi,

How can I configure to insert or duplicate a row after the current row not before the current one?

Best regards,

ts

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2013 at 12:23 PM

    Hi,

    In ALV if you click + button in toolbar it will create a empty records before the current row. if your requirement to display a empty row use APPEND INITIAL LINES OF itab for the internal table you are displaying in ALV grid.

    Reward points if answer is helpful..

    Regards,

    Lokesh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 09, 2013 at 12:13 PM

    You could try to hanle the event BEFORE_USER_COMMAND to append/insert yourself the new record then clear OK_CODE with CALL METHOD o_alv->set_user_command exporting i_ucomm = space.

    Regards,

    Raymond

    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.