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

Question with append row in ALV

Hi experts,

I had in one of the column of my ALV a drop down list which I have done setting up the DRDN_TABLE. However, when I use the g_grid->append_row to add a new row, the drop down list does not appear in this new row. How can I include the drop down list to the required field of this new row? Many thanks in advance. I will reward point accordingly.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    Posted on Mar 02, 2007 at 03:21 PM

    Hi,

    Check whether you are calling method "g_grid->refresh_table_display" after row has been inserted?

    Thanks

    aRs

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 03, 2007 at 01:22 AM

    Hi,

    I try to add the REFRESH_TABLE_DISPLAY after that, but the new row do not even come out now. That's what I have

    CALL METHOD V_GRID->APPEND_ROWS

    EXPORTING

    I_ROW_COUNT = 1.

    CALL METHOD V_GRID->REFRESH_TABLE_DISPLAY.

    Please help.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 03, 2007 at 09:04 AM

    Unfortunately, I couldn't find any example or program use the method APPEND_ROWS of the ALV. What I need now is actually to add back the dropdown list to the new row, and that will solve my problem. It's quite urgent and I had ran out of ideas as of how to do it. Hope to get some help from you experts out there. Thanks in advance. Will reward points for any helpful hints.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 04, 2007 at 01:23 AM

    Sorry but I couldn't find the method APPEND_ROWS being called in the program BCALV_TEST_GRID_EVENTS.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 04, 2007 at 04:57 PM

    You have to synchronize your table model and the ALV internal table, i.e. if you append the row in the ALV instance you have to add it also in your internal table. Afterwards, you do a refresh. But wouldn't it be easier not to call at all the 'add_row' method, add adding instead a new empty row to your table model and doing then a refresh.

    Best regards,

    Thomas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 05, 2007 at 08:12 AM

    Hi Thomas,

    How can that be done? Please bare with me since I'm quite new to ALV.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 05, 2007 at 08:41 AM

    Hi Thomas,

    Nevermind, I think I know what your saying. Thanks a lot. You had my reward points.

    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.